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 timeout for Terraform #509

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

Conversation

stephen-harris
Copy link
Contributor

A number of teams are switching to using OIDC session tokens for their pipelines. Unlike the previously used IAM credentials these have a short duration (default 1 hour). If Terraform apply takes longer than the duration of the session token it will not be able to update remote state.

Although this is rare (typically when starting up a new environment) it is time consuming for teams to recover.

This PR adds the option to gracefully terminate Terraform after the specified period, and thus ensuring it does not try to run beyond the lifespan of the session tokens.

A number of teams are switching to using OIDC session tokens for
their pipelines. Unlike the previously used IAM credentials these
have a short duration (default 1 hour). If Terraform apply takes
longer than the duration of the session token it will not be able
to update remote state.

Although this is rare (typically when starting up a new environment)
it is time consuming for teams to recover.

This PR adds the option to gracefully terminate Terraform after the
specified period, and thus ensuring it does not try to run beyond
the lifespan of the session tokens.
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