Package Exports
- lulo-plugin-acm-get-certificate
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (lulo-plugin-acm-get-certificate) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
lulo ACM Get Certificate
lulo ACM Get Certificate gets the certificate ARN from ACM for a specific domain name.
lulo ACM Get Certificate is a lulo plugin
Installation
npm install lulo-plugin-acm-get-certificate --save
Usage
Properties
- DomainName: The Domain name you want to match. Note that this must be the primary domain name of the certificate.
- CertificateStatuses: An array of certificate statuses to consider. Optional. Default is 'ISSUED'. For a list of valid statuses, please see the SDK documentation
- Region: Override the AWS Region from where to list certificates. Useful when getting CloudFront certificates which have to be issued in us-east-1. Optional. Default is where the CustomResource is deployed.
Return Values
When the logical ID of this resource is provided to the Ref intrinsic function, Ref returns the ARN of the certificate.
{ "Ref": "AcmCertificateArn" }
Note: If more than one certificate matches the domain name, the first match is returned.
Note: If no matching certificate is found, an error is returned.
Required IAM Permissions
The Custom Resource Lambda requires the following permission statement for this plugin to work:
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Stmt1481186942626",
"Action": [
"acm:ListCertificates"
],
"Effect": "Allow",
"Resource": "*"
}
]
}