-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathredshift_extended.json
121 lines (121 loc) · 3.28 KB
/
redshift_extended.json
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "EMR Cluster for use in a VPC",
"Parameters": {
"AllowVersionUpgrade": {
"Type": "String",
"Description": "Allow minor version upgrades",
"Default": "True"
},
"SnapshotRetentionPeriod": {
"Type": "Number",
"Description": "period of time to keep snapshots",
"Default": "7"
},
"AvailabilityZone": {
"Type": "String",
"Description": "AZ to reside in",
"Default": "us-east-1c"
},
"ClusterType": {
"Type": "String",
"Description": "Single or multi-node",
"Default": "multi-node",
"AllowedValues": ["single-node","multi-node"]
},
"DBName": {
"Type": "String",
"Description": "name of database to create",
"Default": "test"
},
"MasterUser": {
"Type": "String",
"Description": "Master RedShift Username",
"Default": "admin"
},
"MasterPassword": {
"Type": "String",
"Description": "Master user password",
"Default": "PassyMcPassword1"
},
"InstanceType": {
"Type": "String",
"Description": "instance size to use for nodes",
"Default": "dc1.large"
},
"NodeCount": {
"Type": "Number",
"Description": "number of nodes in cluster",
"Default": "2"
},
"PublicAccess": {
"Type": "String",
"Description": "to be public or not",
"Default": "True",
"AllowedValues": ["True","False"]
},
"VPCSecurityGroups": {
"Type": "CommaDelimitedList",
"Description": "VPC Security Groups to use",
"Default": "sg-6e7bed15"
},
"VPCSubnetIds": {
"Type": "CommaDelimitedList",
"Description": "Subnets for the Redshift Cluster",
"Default": "subnet-75cf825f"
},
"VPCId": {
"Type": "String",
"Description": "VPC To associate the EIP with",
"Default": "vpc-3c1abe5b"
},
"IAMTemplate": {
"Type": "String",
"Description": "s3 URL for IAM permissions"
}
},
"Resources": {
"Redshift": {
"Type": "AWS::Redshift::Cluster",
"Properties": {
"AllowVersionUpgrade": { "Ref": "AllowVersionUpgrade" },
"AutomatedSnapshotRetentionPeriod": { "Ref": "SnapshotRetentionPeriod" },
"AvailabilityZone": { "Ref": "AvailabilityZone" },
"ClusterSubnetGroupName": { "Ref": "RedshiftSubnets" },
"ClusterType" : { "Ref": "ClusterType" },
"DBName" : { "Ref": "DBName" },
"ElasticIp": { "Ref": "RedShiftEIP" },
"MasterUsername" : { "Ref": "MasterUser" },
"MasterUserPassword" : { "Ref": "MasterPassword" },
"NodeType" : { "Ref": "InstanceType" },
"NumberOfNodes": { "Ref": "NodeCount" },
"PubliclyAccessible": { "Ref": "PublicAccess" },
"VpcSecurityGroupIds": { "Ref": "VPCSecurityGroups" }
}
},
"RedshiftSubnets": {
"Type": "AWS::Redshift::ClusterSubnetGroup",
"Properties": {
"Description": "Subnet for the Redshift Cluster",
"SubnetIds": { "Ref": "VPCSubnetIds" }
}
},
"RedShiftEIP": {
"Type": "AWS::EC2::EIP",
"Properties": {
"Domain": { "Ref": "VPCId" }
}
},
"IAM": {
"Type": "AWS::CloudFormation::Stack",
"Properties": {
"TemplateURL": { "Ref": "IAMTemplate" },
"Tags": []
}
},
"Route53Endpoint": {
}
},
"Outputs": {
}
}