The Custom::Certificate
creates a ACM Certificate.
It is identical to AWS::CertificateManager::Certificate, except for the fact that it will return immediately after creating the certificate request.
To declare this entity in your AWS CloudFormation template, use the same syntax as AWS::CertificateManager::Certificate:
Certificate:
Type: Custom::Certificate
Properties:
DomainName: !Ref DomainName
ValidationMethod: DNS
ServiceToken: !Sub 'arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:binxio-cfn-certificate-provider'
You can specify the following properties:
"DomainName" - to create a certificate for (required).
"ValidationMethod" - to validate the certificate with (required to be DNS).
"ServiceToken" - pointing to the function implementing this resource (required).
"Region" - region name where the certificate should be created, e.g. "us-east-1" (optional).
For all other properties, check out AWS::CertificateManager::Certificate.
The resource returns the ARN of the Certificate.