Skip to content
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

Terraform plan on m3 exercise gives lot of errors #29

Open
smoms opened this issue Aug 19, 2023 · 1 comment
Open

Terraform plan on m3 exercise gives lot of errors #29

smoms opened this issue Aug 19, 2023 · 1 comment

Comments

@smoms
Copy link

smoms commented Aug 19, 2023

When running terraform plan on m3 exercise I get lot of errors:

Error: Cannot import to non-existent resource address

│ Importing to resource address module.main.aws_subnet.public[0] is not possible, because that address does not exist in configuration. Please ensure that the resource key is correct, or remove this import block.


│ Error: Cannot import to non-existent resource address

│ Importing to resource address module.main.aws_subnet.public[1] is not possible, because that address does not exist in configuration. Please ensure that the resource key is correct, or remove this import block.


│ Error: Cannot import to non-existent resource address

│ Importing to resource address module.main.aws_internet_gateway.this[0] is not possible, because that address does not exist in configuration. Please ensure that the resource key is correct, or remove this import block.


│ Error: Cannot import to non-existent resource address

│ Importing to resource address module.main.aws_route.public_internet_gateway[0] is not possible, because that address does not exist in configuration. Please ensure that the resource key is correct, or remove this import block.


│ Error: Cannot import to non-existent resource address

│ Importing to resource address module.main.aws_route_table.public[0] is not possible, because that address does not exist in configuration. Please ensure that the resource key is correct, or remove this import block.


│ Error: Cannot import to non-existent resource address

│ Importing to resource address module.main.aws_route_table_association.public[0] is not possible, because that address does not exist in configuration. Please ensure that the resource key is correct, or remove this import block.


│ Error: Cannot import to non-existent resource address

│ Importing to resource address module.main.aws_route_table_association.public[1] is not possible, because that address does not exist in configuration. Please ensure that the resource key is correct, or remove this import block.

@timakamystery
Copy link

hashicorp/terraform-provider-aws#33104 (comment)

there was the same issue for me. Error code: InvalidUserError :) = I didn't notice that I modified the import file in the template folder instead of in the copied one where the terraform cmd is run from - hence the errors..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants