aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorclarkzjw <[email protected]>2023-01-31 14:24:47 -0800
committerclarkzjw <[email protected]>2023-01-31 14:24:47 -0800
commit55bf0526c86c88f5ae0d20bad6587c72cd91e835 (patch)
tree286340ac38a8f4558baa985fe6f364a9d8261a63 /infra/output.tf
parent0d9b8b4a4a2bb936744a338d1e7a42f2bd2272c9 (diff)
downloadzjw.social-55bf0526c86c88f5ae0d20bad6587c72cd91e835.tar.gz
add ec2, rds
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)