浏览代码

Bash script to create property via TF

main
Andrés Meseguer 1年前
父节点
当前提交
c146e675e4
共有 3 个文件被更改,包括 10 次插入3 次删除
  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 查看文件

@@ -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 查看文件

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

terraform/vars.auto.tfvars → terraform/vars.tfvars.dst 查看文件

@@ -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=""

正在加载...
取消
保存