cn-terraform / terraform-aws-ecs-fargate

AWS ECS Fargate Terraform Module
https://registry.terraform.io/modules/cn-terraform/ecs-fargate
Apache License 2.0
87 stars 57 forks source link

Version 2.0.9 : #16

Closed advissor closed 3 years ago

advissor commented 4 years ago

version = "2.0.9"

profile = "xxxxxxx" region = "us-east-1"

When trying to comment out the section with the module, the following error is shown.

Provider configuration not present

To work with module.ecs-fargate.module.ecs-fargate-service.aws_cloudwatch_metric_alarm.cpu_high its original provider configuration at module.ecs-fargate.module.ecs-fargate-service.provider.aws is required, but it has been removed. This occurs when a provider configuration is removed while objects created by that provider still exist in the state. Re-add the provider configuration to destroy module.ecs-fargate.module.ecs-fargate-service.aws_cloudwatch_metric_alarm.cpu_high, after which you can remove the provider configuration again.

jnonino commented 4 years ago

Is this still happening for you on newer versions?

jnonino commented 3 years ago

Can you try in version 2.0.22 Please close the issue if it is resolved. Thanks

MatthiasVervaet commented 3 years ago

I fixed this by replacing the provider manually: terraform state replace-provider -auto-approve 'registry.terraform.io/-/aws' 'registry.terraform.io/hashicorp/aws'

jnonino commented 3 years ago

Yes, terraform changed the providers location. Let me know if you have any more issues. Thanks