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
Custom Properties
- DomainName: The Domain name you want to match. Note that this must be the primary domain name of the certificate.
- 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.
- ConflictResolutionStrategy: If more than one matching certificate is found, decide which to return.
FIRST
orNEWEST
. Default isFIRST
. When usingNEWEST
it will compare both CreatedAt and ImportedAt for each certificate.
SDK Properties
See the SDK documentation for applicable parameters.
- CertificateStatuses: If not specified in the CustomResource it will default to
['ISSUED']
.
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 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": [
{
"Action": [
"acm:ListCertificates"
"acm:DescribeCertificate"
],
"Effect": "Allow",
"Resource": "*"
}
]
}