Skip to content

aws_cloudformation_stack_instances ignores operation_preferences on update #42788

@michalz-rely

Description

@michalz-rely

Terraform and AWS Provider Version

5.85

Affected Resource(s) or Data Source(s)

aws_cloudformation_stack_instances

Expected Behavior

operation_preferences and timeouts are honored

Actual Behavior

operation_preferences and timeouts are not honored

Relevant Error/Panic Output

Sample Terraform Configuration

resource "aws_cloudformation_stack_set" "my_resource" {
  name             = "my-resource"
  description      = "some description"
  permission_model = "SERVICE_MANAGED"
  capabilities     = ["CAPABILITY_NAMED_IAM"]
  auto_deployment {
    enabled                          = true
    retain_stacks_on_account_removal = false
  }
  lifecycle {
    ignore_changes = [
      administration_role_arn
    ]
  }
  template_body = file("${path.module}/template.yml")
  tags          = var.tags
}

resource "aws_cloudformation_stack_instances" "my_resource" {
  regions        = local.default_region
  stack_set_name = aws_cloudformation_stack_set.my_resource.name
  deployment_targets {
    organizational_unit_ids = local.ous
  }
  operation_preferences {
    concurrency_mode             = "SOFT_FAILURE_TOLERANCE"
    max_concurrent_percentage    = 100
    failure_tolerance_percentage = 0
  }
  timeouts {
    create = "12h"
    update = "12h"
    delete = "12h"
  }
}

Steps to Reproduce

When updating a template.yml terraform detect changes to aws_cloudformation_stack_set and updates that. But the operation created ignores operation_preferences and timeouts set in aws_cloudformation_stack_instances

Debug Logging

Click to expand log output

GenAI / LLM Assisted Development

n/a

Important Facts and References

No response

Would you like to implement a fix?

No

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAddresses a defect in current functionality.service/cloudformationIssues and PRs that pertain to the cloudformation service.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions