forked from aws-cloudformation/cfn-lint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfunctions_ref.yaml
69 lines (69 loc) · 1.76 KB
/
functions_ref.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
---
AWSTemplateFormatVersion: "2010-09-09"
Parameters:
myVpcId:
Description: MyVpc Id
Type: AWS::EC2::VPC::Id
Resources:
mySecurityGroupVpc1:
Type: AWS::EC2::SecurityGroup
Properties:
GroupDescription: 'Security Group Vpc 1'
VpcId: !Ref myVpcId
SecurityGroupIngress:
-
IpProtocol: 1
SourceSecurityGroupId: 'sg-1234567'
-
IpProtocol: 1
SourceSecurityGroupId: !Ref mySecurityGroupVpc2
mySecurityGroupVpc2:
Type: AWS::EC2::SecurityGroup
Properties:
GroupDescription: 'Security Group Vpc 2'
VpcId: !Ref myVpcId
SecurityGroupIngress:
-
IpProtocol: 1
SourceSecurityGroupId: !Ref mySecurityGroupVpc1
MyEC2Instance:
Type: "AWS::EC2::Instance"
Properties:
ImageId: "ami-2f726546"
InstanceType: t1.micro
KeyName: testkey
BlockDeviceMappings:
-
DeviceName: /dev/sdm
Ebs:
VolumeType: io1
Iops: !Ref pIops
DeleteOnTermination: false
VolumeSize: 20
NetworkInterfaces:
- DeviceIndex: "1"
# Package doesn't exist as parameter
UserData: !Sub |
yum install ${Package}
AnotherInstance:
Type: "AWS::EC2::Instance"
Properties:
ImageId: "ami-2f726546"
InstanceType: t1.micro
KeyName: testkey
BlockDeviceMappings:
-
DeviceName: /dev/sdm
Ebs:
VolumeType: io1
Iops: !Ref pIops
DeleteOnTermination: false
VolumeSize: 20
NetworkInterfaces:
- DeviceIndex: "1"
# Package doesn't exist as parameter
UserData:
Fn::Sub:
- "yum install ${myPackage} ${Package}"
-
myPackage: !Ref httpdPackage