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

Fix #288: not able to use AWS Profiles #310

Merged
merged 8 commits into from
Sep 21, 2021

Conversation

mrmarcsmith
Copy link
Contributor

Description

Many companies use the AWS best practice of requiring users to assume into a role that grants access to a given account representing an environment (dev, stage, prod etc). When I tried to spin up a cluster using the jx3-terraform-eks repo, it failed because in this module, there is a direct call to AWS that doesn't honor the profile I set in the jx3-terraform-eks terraform variables. This PR adds a conditional flag on the only direct AWS call I could find. Please point out if there are more.

Special notes for the reviewer(s)

In theory this should be backwards compatible because if the variable isn't set the flag wouldn't be added. If this is pulled in I will need to make a separate PR in jx3-terraform-eks for forwarding the profile to this modules, but first things first.

Which issue this PR fixes

fixes #288

@mrmarcsmith
Copy link
Contributor Author

@ankitm123 Thank you for the ENV_VAR workaround for issue #288. This PR is designed to be a permanent fix. do you have any feedback?

@ankitm123 ankitm123 merged commit e5d3da2 into jenkins-x:master Sep 21, 2021
@ankitm123
Copy link
Member

do you have any feedback?

Looks good to me!

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.

Deploy fails when using aws profile
2 participants