Skip to content

Instantly share code, notes, and snippets.

@quantfreedom
quantfreedom / gist:e71267553edc8e0760e88d48ad8b45a7
Last active May 1, 2024 13:45
Current way to do a DNS from us-east-1 if you aren't in that region ... using aws-cdk 2.139.0
from os.path import dirname, join, abspath
from my_keys import AWS_ACCOUNT_NUMBER, AWS_REGION
from constructs import Construct
from aws_cdk import App, CfnOutput, Environment, Stack, RemovalPolicy
from aws_cdk.aws_cloudfront_origins import S3Origin
from aws_cdk.aws_s3_deployment import BucketDeployment, Source
from aws_cdk.aws_route53 import HostedZone, ARecord, RecordTarget
from aws_cdk.aws_route53_targets import CloudFrontTarget
from aws_cdk.aws_certificatemanager import DnsValidatedCertificate