CDK create new managed policy only if doesn't exist

Viewed 1978

I'm setting up infrastructure using AWS CDK. Is there any way I can check if a Managed Policy already exists?

1 Answers

You can import the npm package cdk-constants. It "aims to be an up to date constants library for all things AWS".

While you can't use cdk-constants to programmatically check if a Managed Policy exists, you can inspect the library to see what Managed Policies are available.

Related