Skip to content

Instantly share code, notes, and snippets.

@barakseri1
Created March 15, 2022 14:36
Show Gist options
  • Save barakseri1/53b2a8d3f3887ebc363d7a84c4f6d277 to your computer and use it in GitHub Desktop.
Save barakseri1/53b2a8d3f3887ebc363d7a84c4f6d277 to your computer and use it in GitHub Desktop.
Error: Provider produced inconsistent final plan
exit status 1: running "/scripts/apply.sh" in "/home/atlantis/.atlantis/repos/wix-private/infragod/5522/default/live/management/production/aws/us-west-2/uw2-edt-1/10_dns_registration":
Warning: Version constraints inside provider configuration blocks are deprecated
on config.tf line 12, in provider "aws":
12: version = "4.5.0"
Terraform 0.13 and earlier allowed provider version constraints inside the
provider configuration block, but that is now deprecated and will be removed
in a future version of Terraform. To silence this warning, move the provider
version constraint into the required_providers block.
Error: Provider produced inconsistent final plan
When expanding the plan for
module.s3_bucket.aws_s3_bucket_replication_configuration.replication to
include new values learned so far during apply, provider
"registry.terraform.io/hashicorp/aws" produced an invalid new value for
.rule: planned set element
cty.ObjectVal(map[string]cty.Value{"delete_marker_replication":cty.ListValEmpty(cty.Object(map[string]cty.Type{"status":cty.String})),
"destination":cty.ListValEmpty(cty.Object(map[string]cty.Type{"access_control_translation":cty.List(cty.Object(map[string]cty.Type{"owner":cty.String})),
"account":cty.String, "bucket":cty.String,
"encryption_configuration":cty.List(cty.Object(map[string]cty.Type{"replica_kms_key_id":cty.String})),
"metrics":cty.List(cty.Object(map[string]cty.Type{"event_threshold":cty.List(cty.Object(map[string]cty.Type{"minutes":cty.Number})),
"status":cty.String})),
"replication_time":cty.List(cty.Object(map[string]cty.Type{"status":cty.String,
"time":cty.List(cty.Object(map[string]cty.Type{"minutes":cty.Number}))})),
"storage_class":cty.String})),
"existing_object_replication":cty.ListValEmpty(cty.Object(map[string]cty.Type{"status":cty.String})),
"filter":cty.ListValEmpty(cty.Object(map[string]cty.Type{"and":cty.List(cty.Object(map[string]cty.Type{"prefix":cty.String,
"tags":cty.Map(cty.String)})), "prefix":cty.String,
"tag":cty.List(cty.Object(map[string]cty.Type{"key":cty.String,
"value":cty.String}))})), "id":cty.NullVal(cty.String),
"prefix":cty.NullVal(cty.String), "priority":cty.NullVal(cty.Number),
"source_selection_criteria":cty.ListValEmpty(cty.Object(map[string]cty.Type{"replica_modifications":cty.List(cty.Object(map[string]cty.Type{"status":cty.String})),
"sse_kms_encrypted_objects":cty.List(cty.Object(map[string]cty.Type{"status":cty.String}))})),
"status":cty.NullVal(cty.String)}) does not correlate with any element in
actual.
This is a bug in the provider, which should be reported in the provider's own
issue tracker.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment