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

update to aws-cli v2 to use eks iam serviceaccount oidc roles #25

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mikansoro
Copy link

@mikansoro mikansoro commented Jun 13, 2022

Switches to v2 of awscli to properly support IAM roles assumed by a kubernetes service account (a web identity token assumed by an OIDC connector). V1 of the awscli does not support web identity tokens or the AWS_WEB_IDENTITY_TOKEN_FILE environment variable, leading to the cli using the EKS node role instead of the role provided by the service account. V2 also provides ecr get-login-password, which replaces ecr get-login --no-include-email | awk '{print $6}'.

No native alpine or pip support/packages are provided for the awscli, so the package must be downloaded directly from AWS, and installed alongside with the appropriate c libraries to ensure proper function.

Tested & running on EKS 1.21 with an OIDC service account IAM role.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant