Browse Source

Bash script to create property via TF

main
Andrés Meseguer 1 year ago
parent
commit
c146e675e4
3 changed files with 10 additions and 3 deletions
  1. 8
    0
      scripts/create_property.sh
  2. 0
    1
      terraform/vars.tf
  3. 2
    2
      terraform/vars.tfvars.dst

+ 8
- 0
scripts/create_property.sh View File

#!/bin/bash

echo $PWD &&
cd terraform &&
terraform init &&
terraform plan -out=.plan &&
terraform apply .plan &&
cd $OLDPWD

+ 0
- 1
terraform/vars.tf View File

} }
variable "program" { variable "program" {
type = string type = string
default = "terraform"
} }

terraform/vars.auto.tfvars → terraform/vars.tfvars.dst View File

contract_id = "" contract_id = ""
group_id = "" group_id = ""
origin = "" origin = ""
cpcode =0000
cpcode =00000
secure = true secure = true
network= "STAGING" network= "STAGING"
hostname= "" hostname= ""
edge_hostname = "" edge_hostname = ""
program=""
program="devops"
prefix="" prefix=""

Loading…
Cancel
Save