added terraform init

This commit is contained in:
Edward Viaene
2018-06-16 06:44:22 +00:00
parent a192d0b94e
commit e4ae2ee048
+1
View File
@@ -2,4 +2,5 @@
packer build -machine-readable packer-example.json | tee build.log
AMI_ID=`egrep -oe 'ami-.{8}' build.log |tail -n1`
echo 'variable "AMI_ID" { default = "'${AMI_ID}'" }' > amivar.tf
terraform init
terraform apply