浏览代码

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

#!/bin/bash

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

+ 0
- 1
terraform/vars.tf 查看文件

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

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

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

正在加载...
取消
保存