Skip to content

Instantly share code, notes, and snippets.

@kaihendry
Created July 15, 2019 06:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kaihendry/883431fa9877ed8bf8488ecc24dde57e to your computer and use it in GitHub Desktop.
Save kaihendry/883431fa9877ed8bf8488ecc24dde57e to your computer and use it in GitHub Desktop.
[hendry@t480s freenas]$ terraform plan
Error: Provider configuration not present
To work with aws_s3_bucket.b its original provider configuration at
provider.aws.mine 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
aws_s3_bucket.b, after which you can remove the provider configuration again.
[hendry@t480s freenas]$ cat test.tf
provider "aws" {
region = "ap-southeast-1"
}
resource "aws_s3_bucket" "b" {
provider = "aws.mine"
bucket = "my-tf-test-bucket"
acl = "private"
tags = {
Name = "My bucket"
Environment = "Dev"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment