After some changes in main.tf I get the following messages:
$terraform apply
No changes. Your infrastructure matches the configuration.
Terraform has compared your real infrastructure against your configuration and found no differences, so no
changes are needed.
Apply complete! Resources: 0 added, 0 changed, 0 destroyed.
But I changed my main.tf, How can I apply without above message?
I think the most relevant thing for your question here would be to run terraform show to see Terraformβs current record of objects itβs tracking, and then compare that result with your configuration.
Terraform will only propose changes if the configuration is different than the remote objects. βNo changesβ as you reported earlier is the expected response if your current configuration matches the configuration of the remote objects.
If you can see a difference between the values shown by terraform show and the values your configuration represents (that is, the results of the expressions you wrote) then it would be helpful to share exactly which parts are different.
@apparentlymart i am also facing same msg as above explained and i try to create new ec2 and get that error after apply terraform show it shows me βstate file is empty. No resources are represented.β what to do now