Skip to content

Commit 2035566

Browse files
fix for help deployer
1 parent 72481b0 commit 2035566

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

helpers/foundation-deployer/stages/apply.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,14 @@ func DeployNetworksStage(t testing.TB, s steps.Steps, tfvars GlobalTFVars, outpu
294294
if err != nil {
295295
return err
296296
}
297+
// production
298+
productionTfvars := NetProductionTfvars{
299+
TargetNameServerAddresses: tfvars.TargetNameServerAddresses,
300+
}
301+
err = utils.WriteTfvars(filepath.Join(c.FoundationPath, step, "production.auto.tfvars"), productionTfvars)
302+
if err != nil {
303+
return err
304+
}
297305
// common
298306
commonTfvars := NetCommonTfvars{
299307
Domain: tfvars.Domain,

helpers/foundation-deployer/stages/data.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,10 @@ type NetSharedTfvars struct {
246246
TargetNameServerAddresses []ServerAddress `hcl:"target_name_server_addresses"`
247247
}
248248

249+
type NetProductionTfvars struct {
250+
TargetNameServerAddresses []ServerAddress `hcl:"target_name_server_addresses"`
251+
}
252+
249253
type NetAccessContextTfvars struct {
250254
AccessContextManagerPolicyID string `hcl:"access_context_manager_policy_id"`
251255
}

0 commit comments

Comments
 (0)