Search code examples
aws-sdkaws-certificate-manageraws-cdktroposphere

aws-cdk construct - Certification Manager


Below is my understanding on talking to AWS API(REST) using SDK approach or CF template generation tools(like AWS_CDK or Troposphere)

enter image description here


Working with AWS certification manager, we would like to create private root CA using aws-cdk constructs.

But the cdk-documentation does not support any construct to create root CA


On troposphere side, it is the same story, no support for creating root CA


aws_sdk has support for creating root CA, but state maintenance is the issue.


My preference is to pick aws_cdk, but,

What is the current status on this api level support to create private root CA, using aws-cdk?


Solution

  • Cloudformation does not support private Root CA Resources (view the supported resources). Therefore cdk and troposphere can not provide support for it.

    You can create a Lambda backed Custom Resource that adds support for the acm pca stuff (take a look at the docs). You could use cdk to create the CustomResource and a python lambda that wraps the acm pca API calls.