blob: d0d90fad1a546bc9bf5d548c09ef146ded00aaf6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
output "rds_hostname" {
description = "RDS instance hostname"
value = aws_db_instance.mastodon.address
}
output "rds_port" {
description = "RDS instance port"
value = aws_db_instance.mastodon.port
}
output "rds_username" {
description = "RDS instance username"
value = aws_db_instance.mastodon.username
}
output "rds_password" {
description = "RDS instance password"
value = random_password.rds_password.result
sensitive = true
}
output "instance" {
description = "The main EC2 instance."
value = {
arn = aws_instance.mastodon.arn
public_ip = aws_eip.mastodon.public_ip
private_ip = aws_instance.mastodon.private_ip
}
}
|