1 Answer
- Newest
- Most votes
- Most comments
0
I suggest adding a dependency logic to your code so that the Interface endpoint wait for the service endpoint to become ready before starting referencing it.
stack.addDependency(stack) (Python: stack.add_dependency(stack) – Can be used to explicitly define dependency order between two stacks. This order is respected by the cdk deploy command when deploying multiple stacks at once.
// Add dependency to ensure the service is created before the endpoint vpc_endpoint_1a.node.addDependency(vpc_endpoint_svc);

Thanks. I did add a dependency:
"vpc_endpoint_1a.node.addDependency(vpc_endpoint_svc);"
This made no difference unfortunately