https://pulumi.com logo
Title
c

cuddly-monkey-5560

02/27/2023, 4:39 PM
Hi, I would like to create an RDS cluster from a snapshot, but am receiving an error from Pulumi:
* creating RDS Cluster (restore from snapshot) (temp-cluster): InvalidDBInstanceState: The server state is not yet available
. My implementation to create the cluster is:
const rdsCluster = new rds.Cluster('db-cluster', {
      clusterIdentifier: `temp-cluster`,
      engine: EngineType.AuroraPostgresql,
      engineMode: EngineMode.Provisioned,
      masterUsername: 'postgres',
      masterPassword: 'postgres',
      databaseName: 'postgres',
      snapshotIdentifier: <clusterSnapshotIdentifier>,
      vpcSecurityGroupIds: [vpcSecurityGroup.id],
    });
Am I missing something necessary? Any help is appreciated!
b

billowy-army-68599

02/27/2023, 4:44 PM
could you open an issue? how was the snapshot created?
c

cuddly-monkey-5560

02/27/2023, 4:47 PM
The snapshot was created from the AWS SDK, I'll check if the snapshot itself is the root of the issue, and I'll open an issue if I don't find anything
b

billowy-army-68599

02/27/2023, 4:49 PM
best to check if it’s a cluster snapshot rather than a regular db snapshot, but any info you can provide in the issue so we can reproduce it would be helpful
(ie the commands you ran to create the snapshot)
c

cuddly-monkey-5560

02/27/2023, 4:53 PM
It's a cluster snapshot, I'm using the
CreateDBClusterSnapshotCommand
from
@aws-sdk/client-rds
to create it.
b

billowy-army-68599

02/27/2023, 7:35 PM
okay, an issue would be great in that case