Skip to content

Conversation

angusy29
Copy link
Contributor

Issue #, if available:
aws-cloudformation/cloudformation-coverage-roadmap#430

Description of changes:

When an instance is autoscaled out, the template no longer matches the real instance's AllocatedStorage.

For example:

Given a template:

Resource:
  DBInstance:
    Type: AWS::RDS::DBInstance
      AllocatedStorage: 100
      MaxAllocatedStorage: 500

When the DBInstance reaches high storage utilization, it scales from AllocatedStorage 100 => AllocatedStorage 120

On template update, the ModifyDBInstance call, for ProvisionedIOPS volumes (gp3/io1/io2), will pass the template's AllocatedStorage into the ModifyDBInstance call.

This surfaces as an exception similar to:

Resource handler returned message: "Invalid storage size for engine name mysql and storage type gp3: 100 (Service: Rds, Status Code: 400, Request ID: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)" (RequestToken: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx, HandlerErrorCode: InvalidRequest)

This PR ensures that on template update, the CloudFormation stack on update will succeed despite the autoscaled out instance.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@angusy29 angusy29 added this pull request to the merge queue Mar 19, 2025
Merged via the queue into aws-cloudformation:master with commit 10d2c40 Mar 19, 2025
1 check passed
@angusy29 angusy29 deleted the autoscaling-fix branch March 19, 2025 23:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants