Skip to content

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