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

Update data.gov.uk #52

Merged
merged 11 commits into from
Jan 26, 2024
Merged

Update data.gov.uk #52

merged 11 commits into from
Jan 26, 2024

Conversation

AgaDufrat
Copy link
Contributor

@AgaDufrat AgaDufrat commented Jan 24, 2024

Addressed discrepancies in the plan diff.

Depends on

DGU has two domains www.data.gov.uk and data.gov.uk

I’m not using `toset` as according to the docs explicit type conversions are
rarely necessary in Terraform because it will convert types automatically where
required.

I’m using value because according to the dynamic block documentation:
- key is the map key or list element index for the current element. If
  the `for_each` expression produces a set value then key is identical
to value and should not be used
- value is the value of the current element

https://developer.hashicorp.com/terraform/language/expressions/dynamic-blocks
Since we only have one back end (no mirrors) for DGU those conditions are
obsolete.  `beresp.saintmode` marks the backend that was used for this request
as unhealthy for the period of time specified.
Since we are using the default there's no need to declare it explicitly.
This subroutine is executed when Fastly needs to calculate the address of an object in the cache.
@AgaDufrat AgaDufrat force-pushed the update-dgu branch 2 times, most recently from 66aa4cf to 0df8f5b Compare January 25, 2024 13:38
to be able to import the terraform state.
`terraform import module.datagovuk-integration.fastly_service_vcl.service $FASTLY_SERVICE_ID`
was failing with "Value for undeclared variable" errors.
Generated with:
`terraform import module.datagovuk-integration.fastly_service_vcl.service $FASTLY_SERVICE_ID`
@AgaDufrat AgaDufrat changed the title Use a dynamic block for DGU domain Update data.gov.uk Jan 26, 2024
@AgaDufrat AgaDufrat marked this pull request as ready for review January 26, 2024 11:40
@AgaDufrat AgaDufrat merged commit 20b7f01 into main Jan 26, 2024
4 checks passed
@AgaDufrat AgaDufrat deleted the update-dgu branch January 26, 2024 14:16
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