hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.77k stars 9.12k forks source link

[Enhancement]: CloudFormation StackSets: Allow `stack_instance_summaries` to be omitted from state. #39589

Open marcgreenstock opened 2 days ago

marcgreenstock commented 2 days ago

Description

The aws_cloudformation_stack_instances and aws_cloudformation_stack_set_instance resources retain a list of instances in state (stack_instance_summaries).

This causes problems when there are many (1000+) instances, such as taking a long time refreshing the state and potential timeouts.

It would be helpful have the ability to disable fetching and persisting the instances.

Affected Resource(s) and/or Data Source(s)

Potential Terraform Configuration

resource aws_cloudformation_stack_instances.example {
  stack_set_name = aws_cloudformation_stack_set.example.name
  disable_stack_instance_summaries = true
}

References

No response

Would you like to implement a fix?

Yes

github-actions[bot] commented 2 days ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue