riboseinc / terraform-aws-s3-cloudfront-website

Terraform module for creating a static S3 website with CloudFront with an SSL certificate (e.g., from ACM)
Apache License 2.0
74 stars 40 forks source link

Error: Provider configuration not present #25

Closed joesoh closed 5 years ago

joesoh commented 5 years ago

Hi, I get the above error when I run terraform plan with sample command from README. Hope you can assist.

My terraform version:
terraform -v Terraform v0.12.8

Error Message:

Screenshot 2019-09-25 at 22 42 14

Error: Provider configuration not present

To work with module.main.aws_cloudfront_distribution.main-lambda-edge its original provider configuration at module.main.provider.aws.cloudfront 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.main.aws_cloudfront_distribution.main-lambda-edge, after which you can remove the provider configuration again.

ronaldtse commented 5 years ago

@joesoh thank you for the report! @phuonghuynh could you please help here? Thanks!

ronaldtse commented 5 years ago

@joesoh I believe this issue is fixed in c17aee4582a88105109ed51fcccf6c0ef783096d. Can you run terraform init -upgrade to try again? Thanks!

abdennour commented 4 years ago

Same issue as well ! image