Loading...
Loading...
### Terraform Version ```shell - Finding hashicorp/random versions matching ">= 3.6.0"... - Finding hashicorp/local versions matching ">= 1.0.0, >= 2.0.0"... - Finding hashicorp/null versions matching ">= 2.0.0"... - Finding latest version of hashicorp/time... - Finding hashicorp/external versions matching ">= 1.0.0"... - Finding hashicorp/aws versions matching ">= 4.0.0, >= 4.40.0, >= 5.0.0, ~> 5.0, >= 5.32.0"... - Installing hashicorp/null v3.2.3... - Installed hashicorp/null v3.2.3 (signed by HashiCorp) - Installing hashicorp/time v0.12.1... - Installed hashicorp/time v0.12.1 (signed by HashiCorp) - Installing hashicorp/external v2.3.4... - Installed hashicorp/external v2.3.4 (signed by HashiCorp) - Installing hashicorp/aws v5.87.0... - Installed hashicorp/aws v5.87.0 (signed by HashiCorp) - Installing hashicorp/random v3.6.3... - Installed hashicorp/random v3.6.3 (signed by HashiCorp) - Installing hashicorp/local v2.5.2... - Installed hashicorp/local v2.5.2 (signed by HashiCorp) ``` ### Terraform Configuration Files ```terraform resource "aws_cloudwatch_log_resource_policy" "log_resource_policy_waf" { policy_document = data.aws_iam_policy_document.alb_waf_log_group_policy_document.json policy_name = "${local.unique_id}}-webacl-policy" } data "aws_iam_policy_document" "alb_waf_log_group_policy_document" { version = "2012-10-17" statement { effect = "Allow" principals { identifiers = ["delivery.logs.amazonaws.com"] type = "Service" } actions = ["logs:CreateLogStream", "logs:PutLogEvents"] resources = ["${aws_cloudwatch_log_group.cloudwatch_log_group_waf.arn}:*"] condition { test = "ArnLike" values = ["arn:aws:logs:${data.aws_region.current.name}:${data.aws_caller_identity.current.account_id}:*"] variable = "aws:SourceArn" } condition { test = "StringEquals" values = [tostring(data.aws_caller_identity.current.account_id)] variable = "aws:SourceAccount" } } } ``` ### Debug Output ``` module.webapp-baseline.aws_cloudwatch_log_resource_policy.log_resource_policy_waf: Still creating... [58m1s elapsed] ``` ### Expected Behavior This resource should be created instantly (less than 10 seconds) and this was the behaviour in previous provider versions ### Actual Behavior The resource takes more than one hour to be provisioned. This leads to pipeline timeouts ### Steps to Reproduce terraform init terraform apply ### Additional Context _No response_ ### References _No response_ ### Generative AI / LLM assisted development? _No response_
Click on a version to see all relevant bugs
Terraform Integration
Learn more about where this data comes from
Bug Scrub Advisor
Streamline upgrades with automated vendor bug scrubs
BugZero Enterprise
Wish you caught this bug sooner? Get proactive today.