File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -114,7 +114,11 @@ Conditions:
114114 !Not [ !Equals [ !Ref BucketAccountId, !Ref "AWS::AccountId" ] ],
115115 !Not [ !Equals [ !Ref TopicAccountId, !Ref "AWS::AccountId" ] ]
116116 ]
117- BucketInTargetAccount : !Equals [ !Ref BucketAccountId, !Ref "AWS::AccountId" ]
117+
118+ DeployRole : !And [
119+ !Equals [ !Ref BucketAccountId, !Ref "AWS::AccountId" ] ,
120+ !Equals [ DeployStackSet, "false" ]
121+ ]
118122
119123 NeedKMSPolicy : !And [
120124 !Not [ !Equals [ !Ref KMSKeyARN, "" ] ],
@@ -126,7 +130,7 @@ Resources:
126130 # Role and resources for same-account deployments
127131 CloudLogsRole :
128132 Type : " AWS::IAM::Role"
129- Condition : BucketInTargetAccount
133+ Condition : DeployRole
130134 Properties :
131135 RoleName : !Sub sysdig-secure-cloudlogs-${NameSuffix}
132136 AssumeRolePolicyDocument :
You can’t perform that action at this time.
0 commit comments