-
Notifications
You must be signed in to change notification settings - Fork 14
/
test.yml
31 lines (28 loc) · 889 Bytes
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
InstanceId:
Condition: DoLaunchInstance
Description: Stack Instance ID
Value: !<!Ref> Box
LaunchConfig: !ImportValue "my-import-value"
UserData: !If
- DoWriteConnectionString
- !Base64
Fn::Sub:
- |
#!/bin/bash -xe
cfn-init -v --stack ${AWS::StackName} --resource Box --region ${AWS::Region}
cfn-signal -e 0 --stack ${AWS::StackName} --resource Box --region ${AWS::Region}
Outputs:
Output1:
Description: "Some quoted string"
Value: !Sub
- Instance ID is ${SomeVar}
- {SomeVar: !Ref InstanceId}
Output2:
Description: Some unquoted string
Value: !Sub Instance ID is ${InstanceId}
Output3:
Description:
Fn::ImportValue:
"Fn::Join": ["", [My-, !FindInMap [Very, !Ref Long, String]]]
Value: !ImportValue
"Fn::Join": ["", [My-, !FindInMap [Very, !Ref Long, String]]]