mirror of
https://github.com/hashicorp/packer.git
synced 2026-09-27 02:04:01 -04:00
backport of commit 0c21871e7c
This commit is contained in:
@@ -201,7 +201,7 @@ build.
|
||||
|
||||
#!/bin/bash
|
||||
|
||||
AMI_ID=$(jq -r '.builds[-1].artifact_id' manifest.json | cut -d ":" -f2)
|
||||
AMI_ID=$(jq -r '.builds[-1].artifact_id | split(": ") | .[1]' manifest.json)
|
||||
echo $AMI_ID
|
||||
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user