Skip to content

Support timeout for Terraform#509

Open
stephen-harris wants to merge 1 commit into
masterfrom
feat/support-timeout-for-tf
Open

Support timeout for Terraform#509
stephen-harris wants to merge 1 commit into
masterfrom
feat/support-timeout-for-tf

Conversation

@stephen-harris

Copy link
Copy Markdown
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