-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
aws_launch_configuration: "couldn't find resource" on terraform apply #95
Comments
Did you run
If you didn't run
S3 buckets live in a specific region too. Did you switch the region in your code to us-east-2, but not actually re-create the bucket in that region? |
@brikis98 @adeomisor Launch configurations are no longer supported by AWS. You need to use a Launch Template. I've included an example below:
|
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:**
``
The text was updated successfully, but these errors were encountered: