diff options
Diffstat (limited to 'infra/output.tf')
-rw-r--r-- | infra/output.tf | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/infra/output.tf b/infra/output.tf new file mode 100644 index 0000000..d0d90fa --- /dev/null +++ b/infra/output.tf | |||
@@ -0,0 +1,29 @@ | |||
1 | output "rds_hostname" { | ||
2 | description = "RDS instance hostname" | ||
3 | value = aws_db_instance.mastodon.address | ||
4 | } | ||
5 | |||
6 | output "rds_port" { | ||
7 | description = "RDS instance port" | ||
8 | value = aws_db_instance.mastodon.port | ||
9 | } | ||
10 | |||
11 | output "rds_username" { | ||
12 | description = "RDS instance username" | ||
13 | value = aws_db_instance.mastodon.username | ||
14 | } | ||
15 | |||
16 | output "rds_password" { | ||
17 | description = "RDS instance password" | ||
18 | value = random_password.rds_password.result | ||
19 | sensitive = true | ||
20 | } | ||
21 | |||
22 | output "instance" { | ||
23 | description = "The main EC2 instance." | ||
24 | value = { | ||
25 | arn = aws_instance.mastodon.arn | ||
26 | public_ip = aws_eip.mastodon.public_ip | ||
27 | private_ip = aws_instance.mastodon.private_ip | ||
28 | } | ||
29 | } | ||