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

Support AWS_CONTAINER_CREDENTIALS_FULL_URI for long-running operations #359

Open
hammondr opened this issue Oct 2, 2024 · 0 comments
Open

Comments

@hammondr
Copy link

hammondr commented Oct 2, 2024

Summary

Update terraspace so it can operate with AWS CLI session tokens provided by AWS_CONTAINER_CREDENTIALS_FULL_URI

Motivation

Due to organizational policies, I can only assume a role suitable for terraspace deployments for one hour. However, some of our terraspace stack operations take longer than that. We use aws-vault to establish AWS CLI sessions. aws-vault has a --server option that refreshes credentials on-demand, avoiding the 1-hour limitation. However, terraspace does not support this mechanism (AWS_CONTAINER_CREDENTIALS_FULL_URI) yet.

Reference-level explanation

Today, we run terrapace like this:

aws-vault exec test -- TS_ENV=test terraspace up my-stack

We would like to run it like this for long-running operations:

aws-vault exec test --server -- TS_ENV=test terraspace up my-stack

Drawbacks

N/A

Unresolved Questions

N/A

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

No branches or pull requests

1 participant