Skip to content

Tech debt: ELB finders-on-listers#49057

Draft
ewbankkit wants to merge 14 commits into
mainfrom
td-elb-finders-on-listers
Draft

Tech debt: ELB finders-on-listers#49057
ewbankkit wants to merge 14 commits into
mainfrom
td-elb-finders-on-listers

Conversation

@ewbankkit

@ewbankkit ewbankkit commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Rollback Plan

If a change needs to be reverted, we will publish an updated version of the library.

Changes to Security Controls

Are there any changes to security controls (access controls, encryption, logging) in this pull request? If so, explain.

Description

Extracted from #48973.

Relations

Relates #47691.

Output from Acceptance Testing

% make testacc TESTS=TestAccXXX PKG=ec2

...

Kunalkthalautiya and others added 14 commits July 16, 2026 17:23
Adds support for the EC2 Auto Scaling instance lifecycle policy
(instance_lifecycle_policy -> retention_triggers -> terminate_hook_abandon),
including create, read, and update wiring, acceptance test, and documentation.

Closes #48968
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
% make testacc TESTARGS='-run=TestAccAutoScalingGroup_basic\|TestAccAutoScalingGroup_instanceLifecyclePolicy' PKG=autoscaling
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
make: Validating schemas
ok      github.com/hashicorp/terraform-provider-aws/internal/provider/sdkv2     5.694s
ok      github.com/hashicorp/terraform-provider-aws/internal/provider/framework 5.721s
make: Running acceptance tests on branch: 🌿 HEAD 🌿...
TF_ACC=1 go1.26.5 test ./internal/service/autoscaling/... -v -count 1 -parallel 20  -run=TestAccAutoScalingGroup_basic\|TestAccAutoScalingGroup_instanceLifecyclePolicy -timeout 360m -vet=off -buildvcs=false
2026/07/17 14:33:35 Creating Terraform AWS Provider (SDKv2-style)...
2026/07/17 14:33:35 Initializing Terraform AWS Provider (SDKv2-style)...
=== RUN   TestAccAutoScalingGroup_basic
=== PAUSE TestAccAutoScalingGroup_basic
=== RUN   TestAccAutoScalingGroup_instanceLifecyclePolicy
=== PAUSE TestAccAutoScalingGroup_instanceLifecyclePolicy
=== CONT  TestAccAutoScalingGroup_basic
=== CONT  TestAccAutoScalingGroup_instanceLifecyclePolicy
--- PASS: TestAccAutoScalingGroup_basic (104.44s)
--- PASS: TestAccAutoScalingGroup_instanceLifecyclePolicy (170.39s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/autoscaling        176.119s
…ecycle_policy

The API always returns a retention trigger (defaulting to 'terminate') and
provides no way to clear the policy, so mark instance_lifecycle_policy as
Optional + Computed to avoid a perpetual diff when the block is omitted or
removed. Add acceptance test coverage for updating and removing the block, and
document that removing the block retains the last applied value.
# Conflicts:
#	internal/service/autoscaling/group_test.go
…: You can't force delete this Auto Scaling group because the TerminateHookAbandon retention trigger is set to retain. Change the retention trigger to terminate and try again'.
@github-actions

Copy link
Copy Markdown
Contributor

Community Guidelines

This comment is added to every new Pull Request to provide quick reference to how the Terraform AWS Provider is maintained. Please review the information below, and thank you for contributing to the community that keeps the provider thriving! 🚀

Voting for Prioritization

  • Please vote on this Pull Request by adding a 👍 reaction to the original post to help the community and maintainers prioritize it.
  • Please see our prioritization guide for additional information on how the maintainers handle prioritization.
  • Please do not leave +1 or other comments that do not add relevant new information or questions; they generate extra noise for others following the Pull Request and do not help prioritize the request.

Pull Request Authors

  • Review the contribution guide relating to the type of change you are making to ensure all of the necessary steps have been taken.
  • Whether or not the branch has been rebased will not impact prioritization, but doing so is always a welcome surprise.

@github-actions github-actions Bot added prioritized Part of the maintainer teams immediate focus. To be addressed within the current quarter. documentation Introduces or discusses updates to documentation. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. service/elbv2 Issues and PRs that pertain to the elbv2 service. service/elb Issues and PRs that pertain to the elb service. service/autoscaling Issues and PRs that pertain to the autoscaling service. generators Relates to code generators. size/XL Managed by automation to categorize the size of a PR. labels Jul 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Introduces or discusses updates to documentation. generators Relates to code generators. prioritized Part of the maintainer teams immediate focus. To be addressed within the current quarter. service/autoscaling Issues and PRs that pertain to the autoscaling service. service/elb Issues and PRs that pertain to the elb service. service/elbv2 Issues and PRs that pertain to the elbv2 service. size/XL Managed by automation to categorize the size of a PR. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants