Skip to content

Commit 145a218

Browse files
EvyBongersEvy Bongers
authored and
Evy Bongers
committed
Output instance IP addresses
1 parent 2c5fb47 commit 145a218

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

outputs.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
output "ip_addresses" {
2+
value = {
3+
for addr in google_sql_database_instance.instance.ip_address : addr.type => addr.ip_address
4+
}
5+
}
6+
17
output "passwords" {
28
sensitive = true
39
value = { for user, pwd in random_password.sql_user : user => pwd.result }

0 commit comments

Comments
 (0)