aws_config_configuration_aggregator -> "Error: Provider produced inconsistent result after apply" #17139
Labels
bug
Addresses a defect in current functionality.
service/configservice
Issues and PRs that pertain to the configservice service.
stale
Old or inactive issues managed by automation, if no further action taken these will get closed.
Terraform CLI and Terraform AWS Provider Version
`
Terraform v0.14.2
`
Affected Resource(s)
aws_config_configuration_aggregator
Terraform Configuration Files
file: _config_org_aggregation.tf
`resource "aws_config_configuration_aggregator" "organization-config" {
count = var.config_org_aggregation_accounts == null ? 0 : 1
name = "${var.account_friendly_name}-org-config-aggregator"
account_aggregation_source {
account_ids = var.config_org_aggregation_accounts
all_regions = true
}
}`
file: modules.tf
`module "infosec_onboarding" {
source = "../../modules/onboarding"
baseline_tags = var.baseline_tags
account_friendly_name = var.onboarding_account_friendly_name
config_snapshot_delivery_frequency = var.onboarding_config_snapshot_delivery_frequency
config_storage_bucket_name = var.onboarding_config_storage_bucket_name
config_org_aggregation_accounts = var.onboarding_config_org_aggregation_accounts
}`
file: terraform.tfvars
###########################################
################# Onboarding Module parameters
###########################################
onboarding_account_friendly_name = "a name"
###########################################
################### AWS-Config parameters
onboarding_config_org_aggregation_accounts = ["account1", "account2", "account3", "account4"]
onboarding_config_storage_bucket_name = "com-someorganization-config-logs"
onboarding_config_snapshot_delivery_frequency = "TwentyFour_Hours"
Debug Output
`module.infosec_onboarding.aws_config_configuration_aggregator.organization-config[0]: Creating...
Error: Provider produced inconsistent result after apply
When applying changes to
module.infosec_onboarding.aws_config_configuration_aggregator.organization-config[0],
provider "registry.terraform.io/hashicorp/aws" produced an unexpected new
value: Root resource was present, but now absent.
This is a bug in the provider, which should be reported in the provider's own
issue tracker.`
Expected Behavior
The AWS Config aggregator would be created and terraform would not give an error.
Actual Behavior
The AWS Config aggregator is created, but terraform gives an error.
Steps to Reproduce
terraform apply
The text was updated successfully, but these errors were encountered: