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

Create a profile rather than export env vars #800

Closed
2 tasks
Moulick opened this issue Aug 25, 2023 · 2 comments
Closed
2 tasks

Create a profile rather than export env vars #800

Moulick opened this issue Aug 25, 2023 · 2 comments
Labels
duplicate This issue or pull request already exists feature-request A feature should be added or improved.

Comments

@Moulick
Copy link

Moulick commented Aug 25, 2023

Describe the feature

Add a new option to create a profile with the credentials rather than exporting the credentials as ENV Vars

Use Case

Many times, there is a need to have multiple credentials configured for jobs. This is particularly necessary when running some IAC tools and scripts across several AWS accounts at once. The best way to use multiple short-lived credentials is via profiles as supported by the AWS SDK(s).

Proposed Solution

Have a new flag profile-name that creates a profile with the name and sets the credentials. I think setting the profile-name should also disable setting the env vars to prevent both profile and env vars being set at the same time, leading to confusion if the action is used multiple times and incorrect credentials being used in the subsequent steps.

Other Information

Currently I am using a custom composite action based on aws-actions/configure-aws-credentials@v3 forked from https://github.com/mcblair/configure-aws-profile-action to achieve this.

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change
@Moulick Moulick added feature-request A feature should be added or improved. needs-triage This issue still needs to be triaged labels Aug 25, 2023
@peterwoodworth peterwoodworth added duplicate This issue or pull request already exists and removed needs-triage This issue still needs to be triaged labels Aug 25, 2023
@peterwoodworth
Copy link
Contributor

Thanks for the request - this should be a duplicate with #112

@github-actions
Copy link

** Note **
Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists feature-request A feature should be added or improved.
Projects
None yet
Development

No branches or pull requests

2 participants