Skip to content

Commit c4aab12

Browse files
committed
[Examples] Add 1-click template to deploy resources for custom domain.
1 parent 17e5351 commit c4aab12

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
AWSTemplateFormatVersion: 2010-09-09
2+
Description: AWS ParallelCluster UI - Custom Domain
3+
4+
Parameters:
5+
CustomDomainName:
6+
Description: Custom domain name.
7+
Type: String
8+
AllowedPattern: ^(\*\.)?(((?!-)[A-Za-z0-9-]{0,62}[A-Za-z0-9])\.)+((?!-)[A-Za-z0-9-]{1,62}[A-Za-z0-9])$
9+
MinLength: 1
10+
MaxLength: 253
11+
12+
HostedZoneId:
13+
Description: HostedZoneId
14+
Type: AWS::Route53::HostedZone::Id
15+
16+
Metadata:
17+
AWS::CloudFormation::Interface:
18+
ParameterGroups:
19+
- Label:
20+
default: Domain
21+
Parameters:
22+
- CustomDomainName
23+
- Label:
24+
default: Networking
25+
Parameters:
26+
- HostedZoneId
27+
28+
Resources:
29+
CustomDomainCertificate:
30+
Type: AWS::CertificateManager::Certificate
31+
Properties:
32+
DomainName: !Ref CustomDomainName
33+
DomainValidationOptions:
34+
- DomainName: !Ref CustomDomainName
35+
HostedZoneId: !Ref HostedZoneId
36+
KeyAlgorithm: RSA_2048
37+
SubjectAlternativeNames:
38+
- !Sub "*.${CustomDomainName}"
39+
ValidationMethod: DNS
40+
41+
Outputs:
42+
CustomDomainName:
43+
Value: !Ref CustomDomainName
44+
Description: Custom domain name.
45+
CustomDomainCertificate:
46+
Value: !Ref CustomDomainCertificate
47+
Description: ACM certificate to certify the custom domain name and its subdomains.

0 commit comments

Comments
 (0)