Complete the code to define an output that shows the instance ID.
output "instance_id" { value = [1] }
The output value should be the instance ID property to show the unique identifier after apply.
Complete the output block to display the public IP of the instance.
output "public_ip" { value = [1] }
The public IP address is accessed with .public_ip on the instance resource.
Fix the error in the output block to correctly show the subnet ID.
output "subnet_id" { value = [1] }
The correct attribute for subnet ID is .id, not .subnet_id.
Fill both blanks to output the instance's private IP and availability zone.
output "instance_info" { value = { private_ip = [1] az = [2] } }
Private IP is accessed with .private_ip and availability zone with .availability_zone on the instance resource.
Fill all three blanks to output the bucket name, region, and ARN.
output "bucket_details" { value = { name = [1] region = [2] arn = [3] } }
The bucket name is accessed with .bucket, region with .region, and ARN with .arn attributes.