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

rds: Can't add PostgreSQL read replica with gp3 storage type #26803

Closed
arlampin opened this issue Aug 18, 2023 · 3 comments
Closed

rds: Can't add PostgreSQL read replica with gp3 storage type #26803

arlampin opened this issue Aug 18, 2023 · 3 comments
Labels
@aws-cdk/aws-rds Related to Amazon Relational Database bug This issue is a bug. duplicate This issue is a duplicate.

Comments

@arlampin
Copy link

Describe the bug

Trying to add DatabaseInstanceReadReplica with gp3 storage type causes the following error when just maxAllocatedStorage is defined. And there's no option to add allocatedStorage.

You must specify both the storage size and iops when modifying the storage size or iops on a DB instance that has iops

Expected Behavior

It should be possible to add DatabaseInstanceReadReplica with gp3 storage without errors.

Current Behavior

Trying to add DatabaseInstanceReadReplica causes the following error at the end of process

You must specify both the storage size and iops when modifying the storage size or iops on a DB instance that has iops. 

Reproduction Steps

new rds.DatabaseInstanceReadReplica(this, 'DatabaseReadReplica', {
  sourceDatabaseInstance: database,
  vpc: vpc,
  instanceType: ec2.InstanceType.of(
    ec2.InstanceClass.M6G,
    ec2.InstanceSize.LARGE,
  ),
  maxAllocatedStorage: 100,
  storageType: StorageType.GP3
});

Possible Solution

Maybe this is caused by gp3 storage inherently having iops even without any explicit configuration?

Additional Information/Context

No response

CDK CLI Version

2.91.0 (build eea12ea)

Framework Version

No response

Node.js Version

v18.17.0

OS

macOS

Language

Typescript

Language Version

No response

Other information

No response

@arlampin arlampin added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Aug 18, 2023
@github-actions github-actions bot added the @aws-cdk/aws-rds Related to Amazon Relational Database label Aug 18, 2023
@arlampin
Copy link
Author

Seems that #16934 (comment) can be used to work around the problem

@peterwoodworth peterwoodworth added duplicate This issue is a duplicate. and removed needs-triage This issue or PR still needs to be triaged. labels Aug 18, 2023
@peterwoodworth
Copy link
Contributor

Thanks for the report, I created this feature request which is the same as this issue I believe 🙂

If you're willing to contribute, check out our contributing guide. This would be a pretty easy one 🙂

@github-actions
Copy link

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-rds Related to Amazon Relational Database bug This issue is a bug. duplicate This issue is a duplicate.
Projects
None yet
Development

No branches or pull requests

2 participants