Question 111

Matt wants to import a manually created EC2 instance into terraform so that he can manage the EC2 instance through terraform going forward. He has written the configuration file of the EC2 instance before importing it to Terraform. Following is the code:
resource "aws_instance" "matt_ec2" { ami = "ami-bg2640de" instance_type = "t2.micro" vpc_security_group_ids = ["sg-6ae7d613", "sg-53370035"] key_name = "mysecret" subnet_id =
"subnet-9e3cfbc5" }
The instance id of that EC2 instance is i-0260835eb7e9bd40 How he can import data of EC2 to state file?
  • Question 112

    Given the Terraform configuration below, in which order will the resources be created?
    1. resource "aws_instance" "web_server"
    2. {
    3. ami = "ami-b374d5a5"
    4. instance_type = "t2.micro"
    5. }
    6. resource "aws_eip" "web_server_ip"
    7. {
    8. vpc = true instance = aws_instance.web_server.id
    9. }
  • Question 113

    Which flag would be used within a Terraform configuration block to identify the specific version of a provider required?
  • Question 114

    HashiCorp offers multiple versions of Terraform, including Terraform open-source, Terraform Cloud, and Terraform Enterprise. Which of the following Terraform features are only available in the Enterprise edition? (select four)
  • Question 115

    What resource dependency information is stored in Terraform's state?