Skip to content

Commit 90377bf

Browse files
Get rid of extensions
1 parent 11d86a0 commit 90377bf

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

modules/foundational.cft.yaml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
AWSTemplateFormatVersion: '2010-09-09'
2-
Transform: 'AWS::LanguageExtensions'
32
Description: Sysdig Secure Onboarding
43
Metadata:
54
AWS::CloudFormation::Interface:
@@ -93,15 +92,15 @@ Conditions:
9392
- !Condition IsOrganizational
9493
- !Not
9594
- !Equals
96-
- Fn::Length: !Ref IncludeOUIDs
97-
- 0
95+
- !Join ["", !Ref IncludeOUIDs]
96+
- ''
9897
AccountInclusionsConfigured:
9998
!And
10099
- !Condition IsOrganizational
101100
- !Not
102101
- !Equals
103-
- Fn::Length: !Ref IncludeAccounts
104-
- 0
102+
- !Join ["", !Ref IncludeAccounts]
103+
- ''
105104
# -----------------------------------------------------------------------------------------------------
106105
# Remove below condition once AWS issue is fixed and replace with using UNION filter -
107106
# https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-cloudformation/issues/100
@@ -120,12 +119,12 @@ Conditions:
120119
!And
121120
- !Condition IsOrganizational
122121
- !Equals
123-
- Fn::Length: !Ref IncludeAccounts
124-
- 0
122+
- !Join ["", !Ref IncludeAccounts]
123+
- ''
125124
- !Not
126125
- !Equals
127-
- Fn::Length: !Ref ExcludeAccounts
128-
- 0
126+
- !Join ["", !Ref ExcludeAccounts]
127+
- ''
129128
Resources:
130129
ConfigPostureRole:
131130
Type: AWS::IAM::Role

0 commit comments

Comments
 (0)