This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
cloud:oracle_bmcs:terraform [2017/07/31 16:14] frank created |
cloud:oracle_bmcs:terraform [2017/07/31 16:17] (current) frank |
||
|---|---|---|---|
| Line 13: | Line 13: | ||
| $ cd single_instance | $ cd single_instance | ||
| </code> | </code> | ||
| - | - Edit env-vars<code> | + | - Edit file env-vars<code> |
| ### Authentication details | ### Authentication details | ||
| export TF_VAR_tenancy_ocid=ocid1.tenancy.oc1..aaaaaaaaunn55c5wycmmr6i23saassro6fimf5gsxiye7ibh3x53y3fuldhq | export TF_VAR_tenancy_ocid=ocid1.tenancy.oc1..aaaaaaaaunn55c5wycmmr6i23saassro6fimf5gsxiye7ibh3x53y3fuldhq | ||
| - | # user frank | ||
| - | #export TF_VAR_user_ocid=ocid1.user.oc1..aaaaaaaatpooulnfgj6na62xdxzl2xpiy45wnmyewuycyjfsxsux7ieazclq #frank frank.deng: ocid1.user.oc1..aaaaaaaanusjfetj7kzp73haciwlevxjzyms7sxrtzbewl2y3z2xltnjcjpq | ||
| # user frank.deng@oracle.com (admin) | # user frank.deng@oracle.com (admin) | ||
| export TF_VAR_user_ocid=ocid1.user.oc1..aaaaaaaanusjfetj7kzp73haciwlevxjzyms7sxrtzbewl2y3z2xltnjcjpq | export TF_VAR_user_ocid=ocid1.user.oc1..aaaaaaaanusjfetj7kzp73haciwlevxjzyms7sxrtzbewl2y3z2xltnjcjpq | ||
| Line 27: | Line 25: | ||
| ### Compartment | ### Compartment | ||
| - | export TF_VAR_compartment_ocid=$C | + | export TF_VAR_compartment_ocid=ocid1.compartment.oc1..aaaaaaaazi6xt3lj6ugjnbsdf3egk7srjl7qcguxyft4afi26qmnvrwbiraq |
| ### Public/private keys used on the instance | ### Public/private keys used on the instance | ||
| Line 37: | Line 35: | ||
| export TF_VAR_SubnetOCID="ocid1.subnet.oc1.iad.aaaaaaaaravcsmdmj3gksfn6ft36lzl3z75b325ol5ifgrd5sfldvgcrfyqq" | export TF_VAR_SubnetOCID="ocid1.subnet.oc1.iad.aaaaaaaaravcsmdmj3gksfn6ft36lzl3z75b325ol5ifgrd5sfldvgcrfyqq" | ||
| </code> | </code> | ||
| + | - Source env-vars ". ./env-vars" | ||
| - Run "terraform plan" | - Run "terraform plan" | ||
| - Run "terraform apply" | - Run "terraform apply" | ||
| - To destroy the deployment, run "terraform plan -destroy" and "terraform destroy" | - To destroy the deployment, run "terraform plan -destroy" and "terraform destroy" | ||