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