-
Notifications
You must be signed in to change notification settings - Fork 0
/
test-cfn-acm-certificate.yml
52 lines (46 loc) · 1.31 KB
/
test-cfn-acm-certificate.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
Parameters:
AcmCertificateLambdaArn:
Type: String
Description: >
ARN of the Lambda function that implements the backend of the custom
resource
MinLength: 1
HostedZoneId:
Type: AWS::Route53::HostedZone::Id
Description: ID of the hosted zone in Route53
MinLength: 1
DomainName:
Type: String
Description: >
Main domain name for the certificate; must be the same domain as the
hosted zone, or a subdomain
MinLength: 1
Metadata:
AWS::CloudFormation::Interface:
ParameterGroups:
- Label: { default: Parameters }
Parameters:
- AcmCertificateLambdaArn
- HostedZoneId
- DomainName
ParameterLabels:
AcmCertificateLambdaArn: { default: ACM certificate Lambda ARN }
HostedZoneId: { default: Hosted zone ID }
DomainName: { default: Domain name }
Resources:
Certificate:
Type: Custom::Certificate
Properties:
ServiceToken: !Ref AcmCertificateLambdaArn
DomainName: !Ref DomainName
HostedZoneId: !Ref HostedZoneId
SubjectAlternativeNames:
- test1.example.com
- test2.example.com
CertificateTags:
- Key: Name
Value: test certificate
Outputs:
CertificateArn:
Description: ARN of the created ACM certificate
Value: !Ref Certificate