Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Relevant Issue: #2576
The resources relating to the
testing-ci
user, policies, secrets and keys have been moved to the GitHub folder because that is where they're chiefly consumed. Managing the aws access keys of the testing-ci user in the same folder where the github secrets are managed minimises the chance of drift between the actual key values and the contents of the github secrets.The rotation works as follows:
time_rotating
resource is created which (right now) is set to recreate every 30 minutes but once tested will recreate every 7 days.time_rotating
resource can't trigger a recreation of another resource directly. Therefore an intermediatetime_static
resource is required which is changed rather than recreated every rotation period.time_static
resource is linked to theaws_iam_access_key
resource via areplace_triggered_by
lifecycle rule, triggering a replace operation every rotation period.secrets_manager_secret_version
are recreated at the same time.Changes:
To do: