Notifications
Clear all
Topic starter
19/06/2022 2:34 pm
You have created an AWS EC2 instance of type t2.micro through your terraform configuration file ec2.tf . Now you want to change the instance type from t2.micro to
t2.medium. Accordingly you have changed your configuration file and and ran terraform plan. After running terraform plan you check the output and saw one instance will be updated from t2.micro --> t2.medium. After this you went to grab a coffee without running terraform apply and meanwhile a member of your team changed the instance type of that EC2 instance to t2.medium from aws console. After coming to your desk you run terraform apply.
What will happen?
- A . No resource will be updated and you will see the message: Apply Complete !
Resources: 0 added, 0 changed, 0 destroyed. - B . The instance type will be changed to t2.micro and again will be changed to t2.medium
- C . terraform apply will through an error.
- D . 1 resource will be updated and you will see the message: Apply Complete ! Resources:
0 added, 1 changed, 0 destroyed.
Suggested Answer: A