Skip to content

Commit e6defc7

Browse files
committed
in script thinko re: object vs. output
1 parent a3d8e02 commit e6defc7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export AWS_SECRET_ACCESS_KEY=$(jq -r .source.aws_secret_access_key < /tmp/input)
99
export AWS_DEFAULT_REGION=$(jq -r .source.region < /tmp/input)
1010

1111
aws ec2 describe-images --image-ids "$AMI" --query 'Images[0]' \
12-
| tee "$DEST/object.json" \
12+
| tee "$DEST/output.json" \
1313
| jq -r '.ImageId' > "$DEST/id"
1414

15-
jq -M '.ImageId as $image | {Name, CreationDate, VirtualizationType, RootDeviceType} | to_entries | {metadata: map({name:.key, value:.value}), version: {ami: $image}}' < "$DEST/object.json"
15+
jq -M '.ImageId as $image | {Name, CreationDate, VirtualizationType, RootDeviceType} | to_entries | {metadata: map({name:.key, value:.value}), version: {ami: $image}}' < "$DEST/output.json"

0 commit comments

Comments
 (0)