Skip to content

Commit

Permalink
updated aws_ec2_clone_instance.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
HariSekhon committed Nov 13, 2024
1 parent 1a41cb0 commit b93cbe4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions aws/aws_ec2_clone_instance.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ ami_name="instance-$instance_name-$(date '+%F_%H%M%S')"
ami_id="$("$srcdir/aws_ec2_create_ami_from_instance.sh" "$instance_name" "$ami_name")"
echo >&2

if ! is_ami_id "$ami_id"; then
die "Invalid AMI ID returned, failed regex validation: $ami_id"
fi

timestamp "Determining instance ID of original EC2 instance '$instance_name'"
instance_id="$("$srcdir/aws_ec2_instance_name_to_id.sh" "$instance_name")"
timestamp "Determined instance ID to be: $instance_id"
Expand Down

0 comments on commit b93cbe4

Please sign in to comment.