mirror of
https://github.com/farcasclaudiu/terraform-course.git
synced 2026-06-28 17:02:05 +03:00
added terraform init
This commit is contained in:
@@ -2,4 +2,5 @@
|
|||||||
packer build -machine-readable packer-example.json | tee build.log
|
packer build -machine-readable packer-example.json | tee build.log
|
||||||
AMI_ID=`egrep -oe 'ami-.{8}' build.log |tail -n1`
|
AMI_ID=`egrep -oe 'ami-.{8}' build.log |tail -n1`
|
||||||
echo 'variable "AMI_ID" { default = "'${AMI_ID}'" }' > amivar.tf
|
echo 'variable "AMI_ID" { default = "'${AMI_ID}'" }' > amivar.tf
|
||||||
|
terraform init
|
||||||
terraform apply
|
terraform apply
|
||||||
|
|||||||
Reference in New Issue
Block a user