File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -284,7 +284,7 @@ import_snapshot_n_wait() {
284
284
echo " Importing image file into snapshot"
285
285
286
286
local image_import_json_file=$( mktemp)
287
- cat << EOF >" image_import_json_file"
287
+ cat << EOF > " ${ image_import_json_file} "
288
288
{
289
289
"Description": "Peer Pod VM image",
290
290
"Format": "RAW",
@@ -321,10 +321,11 @@ EOF
321
321
aws ec2 wait snapshot-completed --snapshot-ids ${SNAPSHOT_ID} --region ${AWS_REGION} || exit $?
322
322
}
323
323
324
+
324
325
register_ami () {
325
326
echo " Registering AMI with Snapshot $SNAPSHOT_ID "
326
327
local register_json_file=$( mktemp)
327
- cat << EOF >"${register_json_file} "
328
+ cat << EOF > "${register_json_file} "
328
329
{
329
330
"Architecture": "x86_64",
330
331
"BlockDeviceMappings": [
@@ -343,7 +344,7 @@ register_ami() {
343
344
"BootMode": "uefi"
344
345
}
345
346
EOF
346
- AMI_ID=$( aws ec2 register-image --name ${AMI_NAME} --cli-input-json=" file://${register_json_file} " --tpm-support v2.0 --output json --region ${REGION } | jq -r ' .ImageId' )
347
+ AMI_ID=$( aws ec2 register-image --name ${AMI_NAME} --cli-input-json=" file://${register_json_file} " --tpm-support v2.0 --output json --region ${AWS_REGION } | jq -r ' .ImageId' )
347
348
echo " AMI name: ${AMI_NAME} "
348
349
echo " AMI ID: ${AMI_ID} "
349
350
}
You can’t perform that action at this time.
0 commit comments