-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
fix: Invoke aws_iam_session_context
data source only when required
#3058
fix: Invoke aws_iam_session_context
data source only when required
#3058
Conversation
This PR has been automatically marked as stale because it has been open 30 days |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you!
aws_iam_session_context
data resource only if neededaws_iam_session_context
data source only when required
## [20.17.1](v20.17.0...v20.17.1) (2024-07-05) ### Bug Fixes * Invoke `aws_iam_session_context` data source only when required ([#3058](#3058)) ([f02df92](f02df92))
This PR is included in version 20.17.1 🎉 |
This seems to break our EKS use:
I confirmed pinning the module to |
Confirming the same. Felt a wave of panic briefly when I got the random error. 🤣 Thanks for the quick resolution though! |
My apologies - we have reverted the commit |
Thanks @bryantbiggs! Can also confirm all is good again with 20.17.2. |
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. |
Description
Terraform fails to read
aws_iam_session_context
data resource when you are running your Terraform code inside a private VPC in AWS as IAM has no service endpoint to attach:https://docs.aws.amazon.com/vpc/latest/privatelink/aws-services-privatelink-support.html
Motivation and Context
Since KMS key creation and cluster admin permissions where this data resource referenced are conditional, we can use the same condition for
aws_iam_session_context
data resource.Breaking Changes
Not a breaking change.
How Has This Been Tested?
examples/*
to demonstrate and validate my change(s)examples/*
projectspre-commit run -a
on my pull request