Skip to content

VED-000 Improve tf stability on first apply#924

Merged
dlzhry2nhs merged 3 commits intomasterfrom
feature/VED-000-improve-tf-stability
Oct 21, 2025
Merged

VED-000 Improve tf stability on first apply#924
dlzhry2nhs merged 3 commits intomasterfrom
feature/VED-000-improve-tf-stability

Conversation

@dlzhry2nhs
Copy link
Collaborator

@dlzhry2nhs dlzhry2nhs commented Oct 21, 2025

Summary

  • Routine Change

The Azure pipelines would retry the terraform apply step twice, and I think that was papering over some cracks.

On retry it is okay, but the first time building a completely fresh environment almost always seems to fail with:

image

Solution:

  • include a hard dependency on the policy attachment being in place. There is a race condition where the role exists and you attempt to create the event bridge pipe, but it does not yet have the required policy attached to the actual role.
  • also saw one instance of the config notification bucket failing. I would have thought it would already have a dependency on that Lambda function. Anyway, making the dependency explicit caused the pipeline to work first time.

Reviews Required

  • Dev

Review Checklist

ℹ️ This section is to be filled in by the reviewer.

  • I have reviewed the changes in this PR and they fill all or part of the acceptance criteria of the ticket, and the code is in a mergeable state.
  • If there were infrastructure, operational, or build changes, I have made sure there is sufficient evidence that the changes will work.
  • I have ensured the changelog has been updated by the submitter, if necessary.

@github-actions
Copy link
Contributor

This branch is working on a ticket in the NHS England VED JIRA Project. Here's a handy link to the ticket:

VED-000

@sonarqubecloud
Copy link

@dlzhry2nhs dlzhry2nhs merged commit aae8113 into master Oct 21, 2025
17 checks passed
@dlzhry2nhs dlzhry2nhs deleted the feature/VED-000-improve-tf-stability branch October 21, 2025 10:58
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.

2 participants