You just scaled your VM infrastructure and realized you set the count variable to the wrong value. You correct the value and save your change.
What do you do next to make your infrastructure match your configuration?
You just scaled your VM infrastructure and realized you set the count variable to the wrong value. You correct the value and save your change.
What do you do next to make your infrastructure match your configuration?
To ensure your VM infrastructure matches your updated configuration after correcting the count variable, you should run an apply and confirm the planned changes. Running 'terraform apply' will apply the changes in your configuration to your infrastructure, thus making them consistent with each other. Neither inspecting the state file, reinitializing, nor inspecting outputs will directly apply the necessary changes to the infrastructure.
I'm aggree it's A
A-- is required to deploy the the changed count B- Not required C-- checked in my Lab for the count change it worked with out init D Not required
A is correct answer : apply You need your deployment to match your config, so only way to implement changes is through terraform apply.
Not sure why D. Should be A
It should be A as the plan will show you what will change and then you can confirm the apply
Actually no, it should be C as the config has changed. https://www.terraform.io/cli/commands/init
initialize is used to refer the plug-ins
A is correct
It should be C as the configuration file is changed
Configuration change don't require init
A: run an apply is correct ans
A is correct
A is the answer
D? Its like throughout all these questions for this exam the answers are often not just wrong, but the obvious wrong one. A