aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'photo.jinwei.me/infra/outputs.tf')
-rw-r--r--photo.jinwei.me/infra/outputs.tf29
1 files changed, 29 insertions, 0 deletions
diff --git a/photo.jinwei.me/infra/outputs.tf b/photo.jinwei.me/infra/outputs.tf
new file mode 100644
index 0000000..d24426f
--- /dev/null
+++ b/photo.jinwei.me/infra/outputs.tf
@@ -0,0 +1,29 @@
1output "rds_hostname" {
2 description = "RDS instance hostname"
3 value = aws_db_instance.jinwei-me.address
4}
5
6output "rds_port" {
7 description = "RDS instance port"
8 value = aws_db_instance.jinwei-me.port
9}
10
11output "rds_username" {
12 description = "RDS instance username"
13 value = aws_db_instance.jinwei-me.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.jinwei_me.arn
26 public_ip = aws_eip.jinwei-me.public_ip
27 private_ip = aws_instance.jinwei_me.private_ip
28 }
29}
Powered by cgit v1.2.3 (git 2.41.0)