-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathawsqs-kubernetes-helm.json
202 lines (202 loc) · 6.57 KB
/
awsqs-kubernetes-helm.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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
{
"typeName": "AWSQS::Kubernetes::Helm",
"description": "A resource provider for managing helm.",
"sourceUrl": "https://github.com/aws-quickstart/quickstart-helm-resource-provider.git",
"definitions": {
"Arn": {
"type": "string",
"pattern": "^arn:aws(-(cn|gov))?:[a-z-]+:(([a-z]+-)+[0-9])?:([0-9]{12})?:[^.]+$"
}
},
"properties": {
"ClusterID": {
"description": "EKS cluster name",
"type": "string"
},
"KubeConfig": {
"description": "Secrets Manager ARN for kubeconfig file",
"$ref": "#/definitions/Arn"
},
"RoleArn": {
"description": "IAM to use with EKS cluster authentication, if not resource execution role will be used",
"$ref": "#/definitions/Arn"
},
"Repository": {
"description": "Repository url. Defaults to kubernetes-charts.storage.googleapis.com",
"type": "string"
},
"Chart": {
"description": "Chart name",
"type": "string"
},
"Namespace": {
"description": "Namespace to use with helm. Created if doesn't exist and default will be used if not provided",
"type": "string"
},
"Name": {
"description": "Name for the helm release",
"type": "string"
},
"Values": {
"description": "Custom Values can optionally be specified",
"type": "object",
"patternProperties": {
"^.+$": {"type": "string"}
}
},
"ValueYaml": {
"description": "String representation of a values.yaml file",
"type": "string"
},
"Version": {
"description": "Version can be specified, if not latest will be used",
"type": "string"
},
"ValueOverrideURL": {
"description": "Custom Value Yaml file can optionally be specified",
"type": "string",
"pattern": "^[sS]3://[0-9a-zA-Z]([-.\\w]*[0-9a-zA-Z])(:[0-9]*)*([?/#].*)?$"
},
"ID": {
"description": "Primary identifier for Cloudformation",
"type": "string"
},
"Resources": {
"description": "Resources from the helm charts",
"type": "object"
},
"TimeOut": {
"description": "Timeout for resource provider. Default 60 mins",
"type": "integer"
},
"VPCConfiguration": {
"type": "object",
"description": "For network connectivity to Cluster inside VPC",
"properties": {
"SecurityGroupIds": {
"description": "Specify one or more security groups",
"type": "array",
"items": {
"type": "string"
}
},
"SubnetIds": {
"description": "Specify one or more subnets",
"type": "array",
"items": {
"type": "string"
}
}
}
}
},
"additionalProperties": false,
"required": [
"Chart"
],
"readOnlyProperties": [
"/properties/Name",
"/properties/Namespace",
"/properties/Chart",
"/properties/Version",
"/properties/Resources"
],
"primaryIdentifier": [
"/properties/ID"
],
"createOnlyProperties": [
"/properties/Name",
"/properties/Namespace",
"/properties/ClusterID"
],
"handlers": {
"create": {
"permissions": [
"secretsmanager:GetSecretValue",
"kms:Decrypt",
"eks:DescribeCluster",
"s3:GetObject",
"sts:AssumeRole",
"iam:PassRole",
"iam:ListRolePolicies",
"iam:ListAttachedRolePolicies",
"iam:GetRole",
"iam:GetPolicy",
"iam:GetPolicyVersion",
"ec2:CreateNetworkInterface",
"ec2:DeleteNetworkInterface",
"ec2:Describe*",
"logs:CreateLogGroup",
"logs:CreateLogStream",
"logs:PutLogEvents",
"lambda:*"
]
},
"read": {
"permissions": [
"secretsmanager:GetSecretValue",
"kms:Decrypt",
"eks:DescribeCluster",
"s3:GetObject",
"sts:AssumeRole",
"iam:PassRole",
"iam:ListRolePolicies",
"iam:ListAttachedRolePolicies",
"iam:GetRole",
"iam:GetPolicy",
"iam:GetPolicyVersion",
"ec2:CreateNetworkInterface",
"ec2:DeleteNetworkInterface",
"ec2:Describe*",
"logs:CreateLogGroup",
"logs:CreateLogStream",
"logs:PutLogEvents",
"lambda:*"
]
},
"update": {
"permissions": [
"secretsmanager:GetSecretValue",
"kms:Decrypt",
"eks:DescribeCluster",
"s3:GetObject",
"sts:AssumeRole",
"iam:PassRole",
"iam:ListRolePolicies",
"iam:ListAttachedRolePolicies",
"iam:GetRole",
"iam:GetPolicy",
"iam:GetPolicyVersion",
"ec2:CreateNetworkInterface",
"ec2:DeleteNetworkInterface",
"ec2:Describe*",
"logs:CreateLogGroup",
"logs:CreateLogStream",
"logs:PutLogEvents",
"lambda:*"
]
},
"delete": {
"permissions": [
"secretsmanager:GetSecretValue",
"kms:Decrypt",
"eks:DescribeCluster",
"s3:GetObject",
"sts:AssumeRole",
"iam:PassRole",
"iam:ListRolePolicies",
"iam:ListAttachedRolePolicies",
"iam:GetRole",
"iam:GetPolicy",
"iam:GetPolicyVersion",
"ec2:CreateNetworkInterface",
"ec2:DeleteNetworkInterface",
"ec2:Describe*",
"logs:CreateLogGroup",
"logs:CreateLogStream",
"logs:PutLogEvents",
"lambda:*"
]
}
}
}