(acm): Ability to generate and import self-signed certificates to ACM #21115
Labels
@aws-cdk/aws-certificatemanager
Related to Amazon Certificate Manager
effort/medium
Medium work item – several days of effort
feature-request
A feature should be added or improved.
p2
Describe the feature
Like the feature implemented on Terraform, we'd like to generate a self-signed certificate within CDK, and import it to ACM.
The API on Terraform is like below. We can basically follow this design.
Use Case
Currently we cannot create an ACM certificate without 1. creating a Route 53 hosted zone or 2. creating a private certificate authority (doc). When I want to quickly test some TLS feature, I sometimes get frustrated since creating them properly is troublesome and difficult.
Although we can generate a self-signed certificate locally and import it via the management console or AWS API, it would be really great if we could do it just using CDK.
Proposed Solution
Because CloudFormation does not support natively to import a certificate to ACM, we have to create a custom resource construct to do that. Additionally, we need a feature to generate a TLS certificate as in Terrafrom and pass it to the custom resource.
Other Information
Since using self-signed certificates is often not following security best practice, a warning should be clearly noted like in Terraform docs.
Acknowledgements
CDK version used
2.26.0
Environment details (OS name and version, etc.)
macOS
The text was updated successfully, but these errors were encountered: