terraform-up-and-running-code
terraform-up-and-running-code copied to clipboard
aws_launch_configuration: "couldn't find resource" on terraform apply
I am having some errors with the code from Chapter 3 when we split the code to folders. I had written the code on chapter 3 and it worked well till I got to the "Isolation via File Layout". I was using us-east-1 region. I deleted app resources from the us-east-1, including s3 buckets and other resources
After splitting the code into different folders, for the webserver-cluster, I changed the region to us-east-2. I ran terraform init and it was successful.
Terraform plan also worked well. When I ran terraform apply, it failed at the launch configuration with this error.:
aws_launch_configuration: "couldn't find `resource"
I discovered that it is pulling data from my us-east-1. I changed my .aws credentials to use us-east-2 as my default region but still getting the same issue.
But the global/S3 runs smoothly.
I created new folders and wrote a new code there and I am now getting this error:
**Initializing the backend...
Successfully configured the backend "s3"! Terraform will automatically use this backend unless the backend configuration changes. Error refreshing state: state data in S3 does not have the expected content.
This may be caused by unusually long delays in S3 processing a previous state update. Please wait for a minute or two and try again. If this problem persists, and neither S3 nor DynamoDB are experiencing an outage, you may need to manually verify the remote state and update the Digest value stored in the DynamoDB table to the following value:**
``