Complete the code to initialize a Terraform working directory.
terraform [1]The terraform init command sets up the working directory for Terraform to manage infrastructure.
Complete the code to create an execution plan without applying changes.
terraform [1]The terraform plan command shows what changes Terraform will make without applying them.
Fix the error in the command to apply changes automatically without confirmation.
terraform apply [1]The -auto-approve flag applies changes without asking for confirmation.
Fill both blanks to define a Terraform resource with a name and type.
resource "[1]" "[2]" { # resource configuration }
The first blank is the resource type like aws_instance. The second blank is the resource name like my_server.
Fill all three blanks to output the public IP of an AWS instance after deployment.
output "[1]" { value = [2].[3] }
The output block names the output as instance_ip. The value accesses the public_ip attribute of the resource aws_instance.my_server.