Bläddra i källkod

Bash script to create property via TF

main
Andrés Meseguer 1 år sedan
förälder
incheckning
c146e675e4
3 ändrade filer med 10 tillägg och 3 borttagningar
  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 Visa fil

@@ -0,0 +1,8 @@
#!/bin/bash

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

+ 0
- 1
terraform/vars.tf Visa fil

@@ -37,5 +37,4 @@ variable "edge_hostname" {
}
variable "program" {
type = string
default = "terraform"
}

terraform/vars.auto.tfvars → terraform/vars.tfvars.dst Visa fil

@@ -3,10 +3,10 @@ section = ""
contract_id = ""
group_id = ""
origin = ""
cpcode =0000
cpcode =00000
secure = true
network= "STAGING"
hostname= ""
edge_hostname = ""
program=""
program="devops"
prefix=""

Laddar…
Avbryt
Spara