简体   繁体   中英

Is there a way to create a certificate without CA (multi-account registration) with cdk?

I understood the way to create a certificate through the AWS console. But is it possible to do that by CDK (java\\python)?

Yes you can. I don't use the CDK, but I create IoT certificates via CLI and by Lambda NodeJS using the AWS SDK. This means AWS exposes an API to create these certs. So logically the CDK can also call that API.

Also note that the CDK, is closely related to CloudFormation. In fact, CDK synthesizes to CloudFormation. You still leverage all the capabilities and resources of CloudFormation by adopting CDK.

So, all this means if you can do it via CLI or Cloudformation, you can likely do it via CDK.

Here is the Python reference https://docs.aws.amazon.com/cdk/api/latest/python/aws_cdk.aws_iot/CfnCertificate.html

And this is the Java implementation https://docs.aws.amazon.com/cdk/api/latest/java/index.html?software/amazon/awscdk/services/iot/package-summary.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM