Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unnecessary upper limit on AppRunner Autoscaling Config max size. #39843

Conversation

ohookins
Copy link
Contributor

Description

As per #39830, while there is a default maximum autoscaling limit of 25 for AppRunner, it has been possible for some time now to raise the limit with a support request. Indeed, once this limit is raised, you can create an autoscaling config via the API with that arbitrary higher limit. Enforcing a limit in Terraform means we cannot create/update or maintain our actual working autoscaling config that has a higher limit (100 in our case).

There's no advertised actual limit that is possible, so it seems the most practical thing is just to validate the lower limit. At worst, an API error will be returned rather than an error at validation time.

Relations

Closes #39830

References

Output from Acceptance Testing

No tests affect this change.

@ohookins ohookins requested a review from a team as a code owner October 22, 2024 22:30
Copy link

Community Note

Voting for Prioritization

  • Please vote on this pull request by adding a 👍 reaction to the original post to help the community and maintainers prioritize this pull request.
  • Please see our prioritization guide for information on how we prioritize.
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.

For Submitters

  • Review the contribution guide relating to the type of change you are making to ensure all of the necessary steps have been taken.
  • For new resources and data sources, use skaff to generate scaffolding with comments detailing common expectations.
  • 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 service/apprunner Issues and PRs that pertain to the apprunner service. needs-triage Waiting for first response or review from a maintainer. labels Oct 22, 2024
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Welcome @ohookins 👋

It looks like this is your first Pull Request submission to the Terraform AWS Provider! If you haven’t already done so please make sure you have checked out our CONTRIBUTOR guide and FAQ to make sure your contribution is adhering to best practice and has all the necessary elements in place for a successful approval.

Also take a look at our FAQ which details how we prioritize Pull Requests for inclusion.

Thanks again, and welcome to the community! 😃

@ewbankkit ewbankkit added enhancement Requests to existing resources that expand the functionality or scope. and removed needs-triage Waiting for first response or review from a maintainer. labels Oct 23, 2024
@ewbankkit ewbankkit self-assigned this Oct 23, 2024
@github-actions github-actions bot added the prioritized Part of the maintainer teams immediate focus. To be addressed within the current quarter. label Oct 23, 2024
Copy link
Contributor

@ewbankkit ewbankkit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀.

% make testacc TESTARGS='-run=TestAccAppRunnerAutoScalingConfigurationVersion_basic' PKG=apprunner
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.23.2 test ./internal/service/apprunner/... -v -count 1 -parallel 20  -run=TestAccAppRunnerAutoScalingConfigurationVersion_basic -timeout 360m
2024/10/23 09:06:13 Initializing Terraform AWS Provider...
=== RUN   TestAccAppRunnerAutoScalingConfigurationVersion_basic
=== PAUSE TestAccAppRunnerAutoScalingConfigurationVersion_basic
=== CONT  TestAccAppRunnerAutoScalingConfigurationVersion_basic
--- PASS: TestAccAppRunnerAutoScalingConfigurationVersion_basic (13.26s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/apprunner	18.642s

@ewbankkit
Copy link
Contributor

@ohookins Thanks for the contribution 🎉 👏.

@ewbankkit ewbankkit merged commit 4410162 into hashicorp:main Oct 23, 2024
31 checks passed
@github-actions github-actions bot added this to the v5.73.0 milestone Oct 23, 2024
@ohookins ohookins deleted the fix-apprunner-autoscaling-config-max-size-constraint branch October 23, 2024 22:11
Copy link

This functionality has been released in v5.73.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

@github-actions github-actions bot removed the prioritized Part of the maintainer teams immediate focus. To be addressed within the current quarter. label Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/apprunner Issues and PRs that pertain to the apprunner service.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: aws_apprunner_auto_scaling_configuration_version should not validate max_size constraint
2 participants