Replies: 1 comment
-
Hello, I had the same issue recently, I was able to depend on the instance becoming available with the following: import { DatabaseCluster, CfnDBInstance } from 'aws-cdk-lib/aws-rds';
const cluster = new DatabaseCluster(....);
const instances = cluster.node
.findAll()
.filter((child) => child instanceof CfnDBInstance);
myResource.node.addDependency(...instances); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I am using CDK to deploy an RDS Aurora cluster with one read/write serverless v2 instance. I want to wait for the instance to become available before deploying other resources that depend on it. Currently there seem to be no way to do this?
Cloudformation waits for the cluster to become available and then moves on. It takes quite a bit longer after that for the writer instance to come online.
Beta Was this translation helpful? Give feedback.
All reactions