Fix: Add redirect of landing page to terraform #850
Merged
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.
Overview
Addresses ticket #234508
Adds the url redirect to terraform as a configuration option per environment
Depends on a PR for the waf module
Also depends on Jims PR for the client id
Changes
How to review the PR
To test this locally, you can update your
terraform-dev.tfvars
to includeand then look at the plan/apply for the waf module
terraform plan -var-file=terraform-${TERRAFORM_ENVIRONMENT}.tfvars -target=module.waf
From running this, in the Azure portal front door a new rule set should have been added called
s190d01plantechurlpathredirects
which has the exact same redirect that we have in production, but for dev instead, and the dev homepage should start being redirected to the guidance pageRelease requirements
The above config just needs adding to the prod tfvars in the keyvault
Checklist