mirror of
https://github.com/floci-io/floci.git
synced 2026-11-24 06:20:24 -05:00
feat(iam): seed standard EKS cluster and node group managed policies (#1216)
EKS cluster creation and managed node groups attach a set of AWS managed policies that floci did not seed, so GetPolicy / AttachRolePolicy failed with NoSuchEntity (e.g. AmazonEKSClusterPolicy, AmazonEKSVPCResourceController), breaking the terraform-aws-modules/eks module and the EKS console flow. Add the standard set to the seeded catalog (all path "/"): AmazonEKSClusterPolicy, AmazonEKSServicePolicy, AmazonEKSVPCResourceController, AmazonEKSWorkerNodePolicy, AmazonEKS_CNI_Policy. Documented in the IAM managed policy catalog (docs/services/iam.md). Closes #1092
This commit is contained in:
1 parent
ec8e1cf85e
commit
e3c19461db
3 files changed
+44
No files matched your search
@@ -72,6 +72,19 @@ final class AwsManagedPolicies {
|
||||
new ManagedPolicyDef("AmazonEKSFargatePodExecutionRolePolicy", "/",
|
||||
"Provides access to other AWS service resources required to run Amazon EKS pods on AWS Fargate."),
|
||||
|
||||
// EKS cluster and node group policies (required by the EKS console/SDK and
|
||||
// the terraform-aws-modules/eks module — see #1092).
|
||||
new ManagedPolicyDef("AmazonEKSClusterPolicy", "/",
|
||||
"Provides Kubernetes the permissions it requires to manage resources on your behalf."),
|
||||
new ManagedPolicyDef("AmazonEKSServicePolicy", "/",
|
||||
"This policy allows Amazon Elastic Container Service for Kubernetes to create and manage the necessary resources to operate EKS Clusters."),
|
||||
new ManagedPolicyDef("AmazonEKSVPCResourceController", "/",
|
||||
"Policy used by VPC Resource Controller to manage ENI and IPs for worker nodes."),
|
||||
new ManagedPolicyDef("AmazonEKSWorkerNodePolicy", "/",
|
||||
"This policy allows Amazon EKS worker nodes to connect to Amazon EKS Clusters."),
|
||||
new ManagedPolicyDef("AmazonEKS_CNI_Policy", "/",
|
||||
"Provides the Amazon VPC CNI Plugin the permissions it requires to modify the IP address configuration on your EKS worker nodes."),
|
||||
|
||||
// S3 Object Lambda execution role policy
|
||||
new ManagedPolicyDef("AmazonS3ObjectLambdaExecutionRolePolicy", "/service-role/",
|
||||
"Provides write permissions to CloudWatch Logs for S3 Object Lambda access points."),
|
||||
|
||||
Reference in new issue
Block a user