terraform

terraform scripts
Log | Files | Refs | README

README (632B)


      1 terraform
      2 ---------
      3 
      4 An archive of my terraform configs.
      5 
      6 
      7 Usage
      8 -----
      9 
     10 Relevant API keys will need to be set for these to work.
     11 $ export VULTR_API_KEY=[PERSONAL API KEY]
     12 
     13 
     14 Digital Ocean
     15 -------------
     16 
     17 terraform init
     18 
     19 terraform plan \
     20       -var "do_token=${DO_PAT}" \
     21       -var "pvt_key=$HOME/.ssh/id_rsa"
     22 
     23 terraform apply \
     24       -var "do_token=${DO_PAT}" \
     25       -var "pvt_key=$HOME/.ssh/id_rsa"
     26 
     27 Vultr
     28 -----
     29 
     30 terraform init
     31 
     32 terraform plan \
     33       -var "vultr_token=${VULTR_API_KEY}" \
     34       -var "pvt_key=$HOME/.ssh/id_rsa"
     35 
     36 terraform apply \
     37       -var "vultr_token=${VULTR_API_KEY}" \
     38       -var "pvt_key=$HOME/.ssh/id_rsa"