-
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
Assuming IAM role from within a EKS Pod Identity-enabled container does not work using named profile #8912
Comments
experiencing this as well using after installing the aws cli and running
|
Same error as #8913, replied there:
|
But the original issue here looks related to #3875 and aws/aws-sdk#350. |
I am encountering this as well, which is breaking our gitlab CI that uses Here is the relevant section from a working run from yesterday:
The CI job then goes on to use the AWS CLI successfully. And here is a broken one today:
Which then fails with The difference I'm seeing is python 3.11.10-r0 is used now, instead of 3.11.8, so maybe this is a new issue there? |
We are seeing this across our CICD. All versions of 1.5.x are impacted. So far in our brief testing 1.6 through 1.9 are not impacted. We're scrambling to test newer versions and update our shared templates. Likely that Python 3 version from Alpine is the issue. The timestamp is 9/11: https://dl-cdn.alpinelinux.org/alpine/v3.18/main/x86_64/ |
Here is a similar issue with Alpine 3.18 via Terraform 1.5.7: |
For those using Terraform have you referred to: hashicorp/terraform#35715? |
Guys, this is not about terraform or any other library, or even python versions. This is about the missing configuration parameter for The scenario has been described in the first post. We need to be able to use |
My bad @rkubik-hostersi, the timing of when you submitted this issue and the environment you described, then followed by what drunkensway said made me think we were encountering different versions of the same problem. I see now that your submission is actually different. Just to update anyone who happens upon this issue who makes the same mistake, the issue we were encountering appears to have been resolved in Python build 3.11.10-r1. |
@tim-finnigan I just don't understand this is being marked as feature request. IMO it's a bug as it does not allow to use EKS Pod Identity feature fully with |
The #3875 is not exactly about the same behavior, it's more generic case. |
100% agree with @rkubik-hostersi that this is not a feature request. It is a bug. Please label it accordingly and please prioritize it. |
Checking in again — can you specify which documentation is not accurate? Here is the EKS User Guide on Pod Identities: https://docs.aws.amazon.com/eks/latest/userguide/pod-id-how-it-works.html , and the AWS CLI documentation on authentication and access credentials: https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-authentication.html |
Describe the bug
When working on a pod in EKS with Pod Identity assigned, it is not possible to assume another role using
~/.aws/config
and profiles.When specifying
role_arn
in~/.aws/config
, it is required to providesource_profile
orcredential_source
. Since we are in the pod,source_profile
is not an option. Unfortunatelycredential_source
is pretty limited:Environment
value does not work as there is no env variablesEc2InstanceMetadata
points to the IAM role attached to the EC2, Pod Identity is not being usedEcsContainer
is for ECSExpected Behavior
It should be possible to instruct
aws-cli
to use EKS Pod Identity as acredential_source
.Current Behavior
It is not possible to utilize
aws-cli
with Assume Role mechanism using named profiles within~/.aws/config
when working on a EKS Pod Identity-enabled pods.Reproduction Steps
sts:assumeRole
permission to the pod~/.aws/config
aws --profile
Possible Solution
No response
Additional Information/Context
No response
CLI version used
2.15.57
Environment details (OS name and version, etc.)
aws-cli/2.15.57 Python/3.12.6 Linux/6.8.0-41-generic source/x86_64.alpine.3
The text was updated successfully, but these errors were encountered: