Skip to content

Commit 90511a9

Browse files
fix: update documentation
Co-authored-by: Copilot <[email protected]>
1 parent 8498a23 commit 90511a9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ locals {
1414

1515
zone_id = module.dns_gbl_delegated.outputs.default_dns_zone_id
1616

17-
# 1. If manage_admin_user_password is not null, AWS manages the password (admin_password must be null)
18-
# 2. If admin_password is provided, that value is used (manage_admin_user_password must be null)
19-
# 3. If both are null, the module creates a random password
17+
# 1. If manage_admin_user_password is true, AWS manages the password (admin_password must be empty)
18+
# 2. If admin_password is provided, that value is used (manage_admin_user_password must be false)
19+
# 3. If both are unset/false/empty, the module creates a random password
2020
create_password = local.enabled && var.admin_password == "" && var.manage_admin_user_password == null
2121
admin_password = local.create_password ? one(random_password.admin_password[*].result) : var.admin_password
2222

0 commit comments

Comments
 (0)