1 #######################################################################################
2 # Copyright ETSI Contributors and Others.
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16 #######################################################################################
19 apiVersion: iam.aws.upbound.io/v1beta1
20 kind: RolePolicyAttachment
22 name: ${cluster_resource_name}-cluster
25 cluster: ${cluster_resource_name}
28 policyArn: arn:aws:iam::aws:policy/AmazonEKSClusterPolicy
32 cluster: ${cluster_resource_name}
34 # Use in case you wanted to use different credentials (i.e., ProviderConfig different than default)
36 name: ${providerconfig_name}
39 apiVersion: iam.aws.upbound.io/v1beta1
40 kind: RolePolicyAttachment
42 name: ${cluster_resource_name}-service
45 cluster: ${cluster_resource_name}
48 policyArn: arn:aws:iam::aws:policy/AmazonEKSServicePolicy
52 cluster: ${cluster_resource_name}
54 # Use in case you wanted to use different credentials (i.e., ProviderConfig different than default)
56 name: ${providerconfig_name}
59 apiVersion: iam.aws.upbound.io/v1beta1
60 kind: RolePolicyAttachment
62 name: ${cluster_resource_name}-vpccontroller
65 cluster: ${cluster_resource_name}
68 policyArn: arn:aws:iam::aws:policy/AmazonEKSVPCResourceController
72 cluster: ${cluster_resource_name}
74 # Use in case you wanted to use different credentials (i.e., ProviderConfig different than default)
76 name: ${providerconfig_name}
79 apiVersion: iam.aws.upbound.io/v1beta1
80 kind: RolePolicyAttachment
82 name: ${cluster_resource_name}-worker
85 cluster: ${cluster_resource_name}
88 policyArn: arn:aws:iam::aws:policy/AmazonEKSWorkerNodePolicy
92 cluster: ${cluster_resource_name}
94 # Use in case you wanted to use different credentials (i.e., ProviderConfig different than default)
96 name: ${providerconfig_name}
99 apiVersion: iam.aws.upbound.io/v1beta1
100 kind: RolePolicyAttachment
102 name: ${cluster_resource_name}-cni
105 cluster: ${cluster_resource_name}
108 policyArn: arn:aws:iam::aws:policy/AmazonEKS_CNI_Policy
112 cluster: ${cluster_resource_name}
114 # Use in case you wanted to use different credentials (i.e., ProviderConfig different than default)
116 name: ${providerconfig_name}
119 apiVersion: iam.aws.upbound.io/v1beta1
120 kind: RolePolicyAttachment
122 name: ${cluster_resource_name}-registry
125 cluster: ${cluster_resource_name}
128 policyArn: arn:aws:iam::aws:policy/AmazonEC2ContainerRegistryReadOnly
132 cluster: ${cluster_resource_name}
134 # Use in case you wanted to use different credentials (i.e., ProviderConfig different than default)
136 name: ${providerconfig_name}