mirror of
https://github.com/farcasclaudiu/terraform-course.git
synced 2026-06-29 07:01:53 +03:00
terraform packer demo
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
AMI_ID=`packer build -machine-readable packer.json | awk -F, '$0 ~/artifact,0,id/ {print $6}'`
|
||||
echo 'variable "AMI_ID" { default = "'${AMI_ID}'" }' > amivar.tf
|
||||
terraform apply
|
||||
Reference in New Issue
Block a user