Skip to content

Commit

Permalink
dns stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
tmclaugh committed Oct 27, 2024
1 parent 3129bf5 commit 6cfbc04
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,24 +54,24 @@ Resources:
FromPort: 443
ToPort: 443

SiteDnsRecord:
Type: AWS::Route53::RecordSet
Properties:
HostedZoneId: !Ref DnsZoneId
Name: !Ref Hostname
Type: A
AliasTarget:
DNSName: !GetAtt EcsAlb.DNSName
HostedZoneId: !GetAtt EcsAlb.CanonicalHostedZoneID

SiteCertificate:
Type: AWS::CertificateManager::Certificate
Properties:
DomainName: !Ref Hostname
ValidationMethod: DNS
DomainValidationOptions:
- DomainName: !Ref Hostname
HostedZoneId: !Ref DnsZoneId
#SiteDnsRecord:
# Type: AWS::Route53::RecordSet
# Properties:
# HostedZoneId: !Ref DnsZoneId
# Name: !Ref Hostname
# Type: A
# AliasTarget:
# DNSName: !GetAtt EcsAlb.DNSName
# HostedZoneId: !GetAtt EcsAlb.CanonicalHostedZoneID

#SiteCertificate:
# Type: AWS::CertificateManager::Certificate
# Properties:
# DomainName: !Ref Hostname
# ValidationMethod: DNS
# DomainValidationOptions:
# - DomainName: !Ref Hostname
# HostedZoneId: !Ref DnsZoneId

## ALB setup
EcsAlb:
Expand All @@ -96,8 +96,8 @@ Resources:
LoadBalancerArn: !Ref 'EcsAlb'
Port: 443
Protocol: HTTPS
Certificates:
- CertificateArn: !Ref SiteCertificate
#Certificates:
# - CertificateArn: !Ref SiteCertificate

# ECS Resources
## Cluster
Expand Down

0 comments on commit 6cfbc04

Please sign in to comment.