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: Add support for AWS Gateway controller (VPC Lattice) to IRSA module #378

Conversation

bryantbiggs
Copy link
Member

@bryantbiggs bryantbiggs commented May 11, 2023

Description

  • Add support for AWS Gateway controller (VPC Lattice) to IRSA module
  • Add new variables cluster_autoscaler_cluster_names and karpenter_controller_cluster_name which shadow their current equivalents (cluster_autoscaler_cluster_ids and karpenter_controller_cluster_id). Users should now use the cluster_name output from the EKS module (starting in v19.x) since cluster_id now has a different meaning on local clusters on Outposts. This change starts to correct that behavior and align the inputs/outputs to reduce confusion but without breaking compatibility. The _id equivalents will be removed at the next breaking change
  • Updated the VPC and EKS module versions to the latest major versions; example has been updated and validated to reflect these changes

Motivation and Context

  • IRSA role and policy support for AWS Gateway controller - this is used for VPC Lattice integration

Breaking Changes

  • No

How Has This Been Tested?

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

@bryantbiggs
Copy link
Member Author

pending name clarification

@bryantbiggs bryantbiggs force-pushed the feat/gateway-api-controller branch from 9e18878 to cd08216 Compare May 22, 2023 14:34
@bryantbiggs bryantbiggs marked this pull request as ready for review May 22, 2023 18:22
@bryantbiggs bryantbiggs changed the title feat: Add support for AWS Gateway API controller (VPC Lattice) to IRSA module feat: Add support for AWS Gateway controller (VPC Lattice) to IRSA module May 22, 2023
@bryantbiggs bryantbiggs requested a review from antonbabenko May 22, 2023 18:23
@bryantbiggs bryantbiggs marked this pull request as draft May 22, 2023 18:23
@bryantbiggs bryantbiggs removed the request for review from antonbabenko May 22, 2023 18:24
data "aws_iam_policy_document" "api_gateway_controller" {
count = var.create_role && var.attach_api_gateway_controller_policy ? 1 : 0

# https://github.com/aws/aws-application-networking-k8s/blob/main/examples/recommended-inline-policy.json
Copy link
Member

Choose a reason for hiding this comment

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

In the comment, does it make sense to point to a tag/release instead of a moving main branch?

The rest LGTM.

Copy link
Member Author

Choose a reason for hiding this comment

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

good point - corrected in 5ca15c6

@bryantbiggs bryantbiggs marked this pull request as ready for review May 22, 2023 18:53
@bryantbiggs bryantbiggs requested a review from antonbabenko May 22, 2023 18:54
@bryantbiggs bryantbiggs merged commit fdee003 into terraform-aws-modules:master May 22, 2023
@bryantbiggs bryantbiggs deleted the feat/gateway-api-controller branch May 22, 2023 19:55
antonbabenko pushed a commit that referenced this pull request May 22, 2023
## [5.20.0](v5.19.0...v5.20.0) (2023-05-22)

### Features

* Add support for AWS Gateway controller (VPC Lattice) to IRSA module ([#378](#378)) ([fdee003](fdee003))
@antonbabenko
Copy link
Member

This PR is included in version 5.20.0 🎉

@github-actions
Copy link

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 Jun 22, 2023
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.

3 participants