-
Notifications
You must be signed in to change notification settings - Fork 3
/
infra.yml
22 lines (19 loc) · 1.06 KB
/
infra.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Create : aws cloudformation create-stack --stack-name monthly-cs-dns --template-body file://infra.yml --on-failure ROLLBACK --region us-east-1 --profile edint_official
# Update : aws cloudformation update-stack --stack-name monthly-cs-dns --template-body file://infra.yml --region us-east-1 --profile edint_official
# Delete : aws cloudformation delete-stack --stack-name monthly-cs-dns --profile edint_official
AWSTemplateFormatVersion: "2010-09-09"
Description: Route53 Example
Resources:
# https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-route53-hostedzone.html
WebsiteHostingZone:
Type: AWS::Route53::HostedZone
Properties:
Name: unchaptered.shop
HostedZoneConfig:
Comment: Unchaptered Practices
# https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-certificatemanager-certificate.html#cfn-certificatemanager-certificate-certificateauthorityarn
WebsiteHttpsACM:
Type: AWS::CertificateManager::Certificate
Properties:
DomainName: unchaptered.shop
ValidationMethod: DNS