Skip to content

Commit eebf60a

Browse files
fix: catch empty shared_account_ids
1 parent 5e62f0b commit eebf60a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cloudformation.yml.tpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Resources:
1515
%{~ endif ~}
1616
AmiTags:
1717
${ indent(14, chomp(yamlencode(tags))) }
18+
%{~ if public == true || chomp(yamlencode(shared_account_ids)) != "[]" ~}
1819
LaunchPermissionConfiguration:
1920
%{~ if public == false ~}
2021
UserIds:
@@ -23,6 +24,7 @@ Resources:
2324
UserGroups:
2425
- all
2526
%{~ endif ~}
27+
%{~ endif ~}
2628
%{~ if license_config_arns != null ~}
2729
LicenseConfigurationArns:
2830
${ indent(12, chomp(yamlencode(license_config_arns)))}

0 commit comments

Comments
 (0)