-
Notifications
You must be signed in to change notification settings - Fork 1
/
cfn-intrinsic-functions.yaml
52 lines (41 loc) · 1 KB
/
cfn-intrinsic-functions.yaml
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
AWSTemplateFormatVersion: "2010-09-09"
Description: Intrinsic Functions
Parameters:
InputText:
Type: String
Default: Text Value
Description: "Text Value"
Resources:
DummyResourceRole:
Type: "AWS::IAM::Role"
Properties:
Path: "/"
AssumeRolePolicyDocument:
Version: "2012-10-17"
Statement:
-
Effect: "Allow"
Principal:
Service:
- "ec2.amazonaws.com"
Action:
- "sts:AssumeRole"
Outputs:
DemoRef:
Value: !Ref InputText
#DemoCidr:
# Value: !Cidr [ "192.168.0.0/24", 6, 8 ]
DemoCidrSelect0:
Value: !Select [ 0, !Cidr [ "10.0.0.0/16", 4, 8 ]]
DemoCidrSelect1:
Value: !Select [ 1, !Cidr [ "10.0.0.0/16", 4, 8 ]]
ListAZGet0:
Value:
!Select
- 0
- Fn::GetAZs: !Ref 'AWS::Region'
ListAZGet1:
Value:
!Select
- 1
- Fn::GetAZs: !Ref 'AWS::Region'