Skip to content

Commit

Permalink
Update alb controller policy (#22)
Browse files Browse the repository at this point in the history
* Update alb controller policy

* 1.1.1
  • Loading branch information
harryttd committed Jan 13, 2023
1 parent 223e69b commit 30cf8d7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
13 changes: 12 additions & 1 deletion aws/components/AlbIngressController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ export default class AlbIngressController extends pulumi.ComponentResource {
this.registerOutputs()
}

// https://github.com/kubernetes-sigs/aws-load-balancer-controller/blob/a92e689dfe464f5b24784f398947e0fef31dc470/docs/install/iam_policy.json
private createPolicy() {
return new aws.iam.Policy(
"alb-ingress-controller",
Expand All @@ -138,15 +139,25 @@ export default class AlbIngressController extends pulumi.ComponentResource {
policy: {
Version: "2012-10-17",
Statement: [
{
Effect: "Allow",
Action: ["iam:CreateServiceLinkedRole"],
Resource: "*",
Condition: {
StringEquals: {
"iam:AWSServiceName": "elasticloadbalancing.amazonaws.com",
},
},
},
{
Effect: "Allow",
Action: [
"iam:CreateServiceLinkedRole",
"ec2:DescribeAccountAttributes",
"ec2:DescribeAddresses",
"ec2:DescribeAvailabilityZones",
"ec2:DescribeInternetGateways",
"ec2:DescribeVpcs",
"ec2:DescribeVpcPeeringConnections",
"ec2:DescribeSubnets",
"ec2:DescribeSecurityGroups",
"ec2:DescribeInstances",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@oxheadalpha/tezos-pulumi",
"version": "1.1.0",
"version": "1.1.1",
"author": "Aryeh Harris <aryeh.harris@oxheadalpha.com>",
"license": "MIT",
"description": "Deploy Tezos Infrastructure in the Cloud",
Expand Down

0 comments on commit 30cf8d7

Please sign in to comment.