Skip to content

Commit e0cded6

Browse files
committed
Make the if condition multi-line
1 parent 28a111c commit e0cded6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

templates/aws-stack.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1167,7 +1167,10 @@ Resources:
11671167
- Effect: Allow
11681168
Action: ssm:StartAutomationExecution
11691169
Resource:
1170-
- !If [ UseWarmPool, !Sub arn:${AWS::Partition}:ssm:${AWS::Region}:${AWS::AccountId}:automation-definition/${BootHookAutomation}:$DEFAULT, !Ref "AWS::NoValue" ]
1170+
- !If
1171+
- UseWarmPool
1172+
- !Sub arn:${AWS::Partition}:ssm:${AWS::Region}:${AWS::AccountId}:automation-definition/${BootHookAutomation}:$DEFAULT
1173+
- !Ref "AWS::NoValue"
11711174
- !Sub arn:${AWS::Partition}:ssm:${AWS::Region}:${AWS::AccountId}:automation-definition/${ShutdownHookAutomation}:$DEFAULT
11721175
- !Sub arn:${AWS::Partition}:ssm:${AWS::Region}:${AWS::AccountId}:automation-definition/${SpotInteruptionAutomation}:$DEFAULT
11731176
- Effect: Allow

0 commit comments

Comments
 (0)