pulumi-aws-native
pulumi-aws-native copied to clipboard
Error You can't specify IOPS or storage throughput for engine postgres and a storage size less than 400 when changing to GP3 on RDS with aws-native
What happened?
When changing our RDS instances to use GP3 it updates fine the first time, subsequent pulumi ups give us this error You can't specify IOPS or storage throughput for engine postgres and a storage size less than 400.
Setting Iops and StorageThroughput to nil do not work I believe the default value for iops is 0 and need to be nil
Expected Behavior
Pulumi up RDS with aws-native/rds package and have a successful run
Steps to reproduce
Update RDS to gp3 pulumi up Change anything and try to pulumi up it will fail to update RDS with error: You can't specify IOPS or storage throughput for engine postgres and a storage size less than 400.
Output of pulumi about
pulumi about pp=pulumi CLI Version 3.72.2 Go Version go1.20.5 Go Compiler gc
Plugins NAME VERSION aws 5.18.0 aws-native 0.67.0 go unknown kubernetes 3.25.0 random 4.10.0 tls 4.8.0
Host OS debian Version bookworm/sid Arch x86_64
This project is written in go: executable='/usr/local/go/bin/go' version='go version go1.20 linux/amd64'
Found no pending operations associated with geosite-development
Backend Name pop-os Organizations
Dependencies: NAME VERSION github.com/pulumi/pulumi-aws/sdk/v5 5.18.0 github.com/pulumi/pulumi/sdk/v3 3.63.0 github.com/pulumi/pulumi-tls/sdk/v4 4.8.0 github.com/pulumi/pulumi/pkg/v3 3.63.0 github.com/stretchr/testify 1.8.2 github.com/pulumi/pulumi-aws-native/sdk 0.67.0 github.com/pulumi/pulumi-kubernetes/sdk/v3 3.25.0 github.com/pulumi/pulumi-random/sdk/v4 4.10.0 gopkg.in/yaml.v3 3.0.1
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction. To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
Hi @cmich3625 , thanks for opening this issue. Looks like this is a known error when using an AWS GP3 RDS instance and you are correct – the workaround should be that iops
must be set to nil, since the default will be 0 which is invalid if the allocatedStorage is below the threshold.
Please let us know if this solves the issue.
Setting Iops and StorageThroughput to nil does not resolve the issue, we still are seeing the error, You can't specify IOPS or storage throughput for engine postgres and a storage size less than 400. We have both set them to null with a var and like below with no luck under the DBInstanceArgs Iops: nil, StorageThroughput: nil,
This issue hasn't seen any activity in the last 180 days. If you are still seeing this problem, please leave a comment to let us know that this is still an active issue.
Issue still persisting
Would appreciate some repro code here to diangose this further. Thank you!
Hhey @dokuboyejo ,
The problem is not a Pulumi error but rather the arguments you are trying to use to configure the RDS. I tried to provision an mySQL RDS instance via cloudformation.
Once I deleted the storage throughput and IOPS argument it worked.. By default if you'll try to create an instance via AWS console you can't configure those variables
Hi @izchaki
The argument passed was 3000 for iops and 125 for throughput, so I am not sure if there is an issue with the argument.
Can you comment those arguments and try again? By default RDS configuration values for IOPS is 3000 and for throughput is 125..
If you are activly put custom configuration for those arguments the storage size can't be less then 400...that's the error..