Complete the code to allocate a new Elastic IP address using AWS CLI.
aws ec2 allocate-address --domain [1]The vpc domain is used to allocate Elastic IPs for VPCs, which is the modern and common setup.
Complete the code to associate an Elastic IP address with an instance using AWS CLI.
aws ec2 associate-address --instance-id [1] --allocation-id eipalloc-12345678
The instance-id requires the EC2 instance identifier, which starts with 'i-'.
Fix the error in the command to release an Elastic IP address.
aws ec2 release-address --allocation-id [1]The allocation-id for releasing an Elastic IP starts with 'eipalloc-'.
Fill both blanks to create a tag for an Elastic IP address using AWS CLI.
aws ec2 create-tags --resources [1] --tags Key=[2],Value=Production
You tag the Elastic IP using its allocation ID and a key like 'Name' to identify it.
Fill all three blanks to describe the correct AWS CLI command to disassociate an Elastic IP address.
aws ec2 disassociate-address --[1] [2] --region [3]
To disassociate an Elastic IP, you use the association-id with its value and specify the region.