This repository has been archived by the owner on Dec 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from aws-samples/1.1.0
1.1.0
- Loading branch information
Showing
13 changed files
with
27,079 additions
and
234 deletions.
There are no files selected for viewing
121 changes: 0 additions & 121 deletions
121
cloudformation/eks-ingress-controller-iam.template.yaml
This file was deleted.
Oops, something went wrong.
150 changes: 150 additions & 0 deletions
150
cloudformation/eks-loadbalancer-controller-iam-policy.template.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,150 @@ | ||
############################################################# | ||
## NOT FOR PRODUCTION USE. ## | ||
## THE CONTENT OF THIS FILE IS FOR LEARNING PURPOSES ONLY ## | ||
## created by David Surey, Amazon Web Services, 2021 ## | ||
############################################################# | ||
|
||
AWSTemplateFormatVersion: "2010-09-09" | ||
Resources: | ||
|
||
EKSloadbalancerControllerPolicy: | ||
Type: 'AWS::IAM::ManagedPolicy' | ||
Properties: | ||
ManagedPolicyName: EKSloadbalancerControllerPolicy | ||
PolicyDocument: | ||
Version: 2012-10-17 | ||
Statement: | ||
- Effect: Allow | ||
Action: | ||
- iam:CreateServiceLinkedRole | ||
- ec2:DescribeAccountAttributes | ||
- ec2:DescribeAddresses | ||
- ec2:DescribeInternetGateways | ||
- ec2:DescribeVpcs | ||
- ec2:DescribeSubnets | ||
- ec2:DescribeSecurityGroups | ||
- ec2:DescribeInstances | ||
- ec2:DescribeNetworkInterfaces | ||
- ec2:DescribeTags | ||
- elasticloadbalancing:DescribeLoadBalancers | ||
- elasticloadbalancing:DescribeLoadBalancerAttributes | ||
- elasticloadbalancing:DescribeListeners | ||
- elasticloadbalancing:DescribeListenerCertificates | ||
- elasticloadbalancing:DescribeSSLPolicies | ||
- elasticloadbalancing:DescribeRules | ||
- elasticloadbalancing:DescribeTargetGroups | ||
- elasticloadbalancing:DescribeTargetGroupAttributes | ||
- elasticloadbalancing:DescribeTargetHealth | ||
- elasticloadbalancing:DescribeTags | ||
Resource: "*" | ||
- Effect: Allow | ||
Action: | ||
- cognito-idp:DescribeUserPoolClient | ||
- acm:ListCertificates | ||
- acm:DescribeCertificate | ||
- iam:ListServerCertificates | ||
- iam:GetServerCertificate | ||
- waf-regional:GetWebACL | ||
- waf-regional:GetWebACLForResource | ||
- waf-regional:AssociateWebACL | ||
- waf-regional:DisassociateWebACL | ||
- wafv2:GetWebACL | ||
- wafv2:GetWebACLForResource | ||
- wafv2:AssociateWebACL | ||
- wafv2:DisassociateWebACL | ||
- shield:GetSubscriptionState | ||
- shield:DescribeProtection | ||
- shield:CreateProtection | ||
- shield:DeleteProtection | ||
Resource: "*" | ||
- Effect: Allow | ||
Action: | ||
- ec2:AuthorizeSecurityGroupIngress | ||
- ec2:RevokeSecurityGroupIngress | ||
Resource: "*" | ||
- Effect: Allow | ||
Action: | ||
- ec2:CreateSecurityGroup | ||
Resource: "*" | ||
- Effect: Allow | ||
Action: | ||
- ec2:CreateTags | ||
Resource: arn:aws:ec2:*:*:security-group/* | ||
Condition: | ||
StringEquals: | ||
ec2:CreateAction: CreateSecurityGroup | ||
'Null': | ||
aws:RequestTag/elbv2.k8s.aws/cluster: 'false' | ||
- Effect: Allow | ||
Action: | ||
- ec2:CreateTags | ||
- ec2:DeleteTags | ||
Resource: arn:aws:ec2:*:*:security-group/* | ||
Condition: | ||
'Null': | ||
aws:RequestTag/elbv2.k8s.aws/cluster: 'true' | ||
aws:ResourceTag/elbv2.k8s.aws/cluster: 'false' | ||
- Effect: Allow | ||
Action: | ||
- ec2:AuthorizeSecurityGroupIngress | ||
- ec2:RevokeSecurityGroupIngress | ||
- ec2:DeleteSecurityGroup | ||
Resource: "*" | ||
Condition: | ||
'Null': | ||
aws:ResourceTag/elbv2.k8s.aws/cluster: 'false' | ||
- Effect: Allow | ||
Action: | ||
- elasticloadbalancing:CreateLoadBalancer | ||
- elasticloadbalancing:CreateTargetGroup | ||
Resource: "*" | ||
Condition: | ||
'Null': | ||
aws:RequestTag/elbv2.k8s.aws/cluster: 'false' | ||
- Effect: Allow | ||
Action: | ||
- elasticloadbalancing:CreateListener | ||
- elasticloadbalancing:DeleteListener | ||
- elasticloadbalancing:CreateRule | ||
- elasticloadbalancing:DeleteRule | ||
Resource: "*" | ||
- Effect: Allow | ||
Action: | ||
- elasticloadbalancing:AddTags | ||
- elasticloadbalancing:RemoveTags | ||
Resource: | ||
- arn:aws:elasticloadbalancing:*:*:targetgroup/*/* | ||
- arn:aws:elasticloadbalancing:*:*:loadbalancer/net/*/* | ||
- arn:aws:elasticloadbalancing:*:*:loadbalancer/app/*/* | ||
Condition: | ||
'Null': | ||
aws:RequestTag/elbv2.k8s.aws/cluster: 'true' | ||
aws:ResourceTag/elbv2.k8s.aws/cluster: 'false' | ||
- Effect: Allow | ||
Action: | ||
- elasticloadbalancing:ModifyLoadBalancerAttributes | ||
- elasticloadbalancing:SetIpAddressType | ||
- elasticloadbalancing:SetSecurityGroups | ||
- elasticloadbalancing:SetSubnets | ||
- elasticloadbalancing:DeleteLoadBalancer | ||
- elasticloadbalancing:ModifyTargetGroup | ||
- elasticloadbalancing:ModifyTargetGroupAttributes | ||
- elasticloadbalancing:DeleteTargetGroup | ||
Resource: "*" | ||
Condition: | ||
'Null': | ||
aws:ResourceTag/elbv2.k8s.aws/cluster: 'false' | ||
- Effect: Allow | ||
Action: | ||
- elasticloadbalancing:RegisterTargets | ||
- elasticloadbalancing:DeregisterTargets | ||
Resource: arn:aws:elasticloadbalancing:*:*:targetgroup/*/* | ||
- Effect: Allow | ||
Action: | ||
- elasticloadbalancing:SetWebAcl | ||
- elasticloadbalancing:ModifyListener | ||
- elasticloadbalancing:AddListenerCertificates | ||
- elasticloadbalancing:RemoveListenerCertificates | ||
- elasticloadbalancing:ModifyRule | ||
Resource: "*" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.