Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Update IAM policy for AWS Load Balancer Controller to support Listener Attributes #525

Conversation

jstewart612
Copy link
Contributor

@jstewart612 jstewart612 commented Oct 4, 2024

Description

This PR is to update the iam-role-for-service-accounts-eks module to add additional permissions when attach_load_balancer_controller_policy is set to true.

Motivation and Context

Addresses #524. Stems from upstream updates to https://github.com/kubernetes-sigs/aws-load-balancer-controller/blob/main/docs/install/iam_policy.json that have not yet been ported into this module.

Resolves #524

Breaking Changes

None

How Has This Been Tested?

  • [ x ] I have updated at least one of the examples/* to demonstrate and validate my change(s)
  • [ x ] I have tested and validated these changes using one or more of the provided examples/* projects
  • [ x ] I have executed pre-commit run -a on my pull request

@jstewart612 jstewart612 changed the title feat: update IAM policy for AWS Load Balancer Controller to support Listener Attributes feat: Update IAM policy for AWS Load Balancer Controller to support Listener Attributes Oct 4, 2024
Copy link
Contributor

@aleskiontherun aleskiontherun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commas are missing in the end of the items. Technically it's correct, but having the commas after every element simplifies git history, e.g. when someone adds another element to the list, they wouldn't have to edit other lines.

modules/iam-role-for-service-accounts-eks/policies.tf Outdated Show resolved Hide resolved
modules/iam-role-for-service-accounts-eks/policies.tf Outdated Show resolved Hide resolved
jstewart612 and others added 2 commits October 4, 2024 15:32
chore: Requested comma addition for git history simplification

Co-authored-by: Aleksei Vesnin <aleksei@vesnin.me>
chore: Requested comma addition for git history simplification

Co-authored-by: Aleksei Vesnin <aleksei@vesnin.me>
@jstewart612
Copy link
Contributor Author

@aleskiontherun suggestions committed.

Copy link
Member

@bryantbiggs bryantbiggs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you!

would you mind submitting a similar PR to https://github.com/terraform-aws-modules/terraform-aws-eks-pod-identity as well?!

@bryantbiggs bryantbiggs merged commit 966c4f8 into terraform-aws-modules:master Oct 4, 2024
35 checks passed
antonbabenko pushed a commit that referenced this pull request Oct 4, 2024
## [5.46.0](v5.45.0...v5.46.0) (2024-10-04)

### Features

* Update IAM policy for AWS Load Balancer Controller to support Listener Attributes ([#525](#525)) ([966c4f8](966c4f8))
@antonbabenko
Copy link
Member

This PR is included in version 5.46.0 🎉

@jstewart612 jstewart612 deleted the js/aws-load-balancer-listener-attributes branch October 5, 2024 00:28
@jstewart612
Copy link
Contributor Author

@bryantbiggs will do shortly

@jstewart612
Copy link
Contributor Author

terraform-aws-modules/terraform-aws-eks-pod-identity#18 filed to address it there. PR to fix it there will be linked there @bryantbiggs .

Copy link

github-actions bot commented Nov 4, 2024

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update data.aws_iam_policy_document.load_balancer_controller to include latest updates from upstream
4 participants