Skip to content

Commit 0f2cbe7

Browse files
authored
Merge pull request #1971 from alphagov/fix-correct-root-dns-workspace-name-ephemeral
Fix correct root dns workspace name for ephemeral
2 parents 5d3b9f5 + 330bc8b commit 0f2cbe7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • terraform/deployments/cluster-infrastructure

terraform/deployments/cluster-infrastructure/remote.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ data "aws_caller_identity" "current" {}
55

66
data "tfe_outputs" "root_dns" {
77
organization = "govuk"
8-
workspace = "root-dns-${var.govuk_environment}"
8+
workspace = startswith(var.govuk_environment, "eph-") ? "root-dns-ephemeral" : "root-dns-${var.govuk_environment}"
99
}
1010

1111
data "tfe_outputs" "vpc" {

0 commit comments

Comments
 (0)