forked from HariSekhon/DevOps-Python-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcentos7-1node.json
More file actions
97 lines (97 loc) · 2.63 KB
/
centos7-1node.json
File metadata and controls
97 lines (97 loc) · 2.63 KB
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "MyCluster Description",
"Parameters": {
"MyInstanceType": {
"Default": "m4.2xlarge",
"Description": "Instance Type",
"Type": "String"
},
"MyAMI": {
"Default": "ami-33734044",
"Description": "AMI (CentOS 7 by default)",
"Type": "String"
},
"MySSHKeyPairName": {
"Default": "hari",
"Description": "SSH Key",
"Type": "AWS::EC2::KeyPair::KeyName"
},
"MyAvailabilityZone": {
"Default": "eu-west-1a",
"Description": "Availability Zone",
"Type": "AWS::EC2::AvailabilityZone::Name"
},
"MySecurityGroup": {
"Default": "sg-XXXXXXXX",
"Description": "Security Group ID",
"Type": "String"
},
"MyPlacementGroup": {
"Default": "MyExistingPlacementGroup",
"Description": "Placement Group",
"Type": "String"
},
"MyRootVolumeSize": {
"Default": 50,
"Description": "EBS Root Volume Size",
"Type": "Number"
},
"MyDataVolumeSize": {
"Default": 100,
"Description": "EBS Data Volume Size",
"Type": "Number"
},
"MyTag": {
"Default": "MyHadoopCluster1",
"Description": "Tag for convenience",
"Type": "String"
}
},
"Resources": {
"instance01": {
"Type": "AWS::EC2::Instance",
"Properties": {
"AvailabilityZone": { "Ref": "MyAvailabilityZone" },
"DisableApiTermination": "false",
"InstanceInitiatedShutdownBehavior": "stop",
"EbsOptimized": "true",
"ImageId": { "Ref": "MyAMI" },
"InstanceType": { "Ref": "MyInstanceType" },
"KeyName": { "Ref" : "MySSHKeyPairName" },
"Monitoring": "false",
"PlacementGroupName": { "Ref": "MyPlacementGroup" },
"Tags": [
{
"Key": "Name",
"Value": "hadoop-node01"
},
{
"Key": "name",
"Value": { "Ref": "MyTag" }
}
],
"BlockDeviceMappings": [
{
"DeviceName" : "/dev/sda1",
"Ebs" : { "VolumeSize" : { "Ref": "MyRootVolumeSize" } }
},
{
"DeviceName" : "/dev/sdb",
"Ebs" : { "VolumeSize" : { "Ref": "MyDataVolumeSize" } }
}
],
"NetworkInterfaces": [
{
"DeleteOnTermination": "true",
"Description": "Primary network interface",
"DeviceIndex": 0,
"SubnetId": "subnet-XXXXXXXX",
"GroupSet": [ { "Ref": "MySecurityGroup" } ],
"AssociatePublicIpAddress": "true"
}
]
}
}
}
}