aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'infra/output.tf')
-rw-r--r--infra/output.tf29
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 @@
1output "rds_hostname" {
2 description = "RDS instance hostname"
3 value = aws_db_instance.mastodon.address
4}
5
6output "rds_port" {
7 description = "RDS instance port"
8 value = aws_db_instance.mastodon.port
9}
10
11output "rds_username" {
12 description = "RDS instance username"
13 value = aws_db_instance.mastodon.username
14}
15
16output "rds_password" {
17 description = "RDS instance password"
18 value = random_password.rds_password.result
19 sensitive = true
20}
21
22output "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}
Powered by cgit v1.2.3 (git 2.41.0)