aws-cdk-squarespace
AWS CDK constructs to set up a Squarespace website for a domain hosted on AWS.
npm install aws-cdk-squarespace
import { App, Stack, StackProps, } from "@aws-cdk/core";
import { HostedZone } from "@aws-cdk/aws-route53";
import { Squarespace } from "aws-cdk-squarespace";
class MyStack extends Stack {
constructor(scope: App, id: string, props?: StackProps) {
super(scope, id, props)
const hostedZone = HostedZone.fromLookup(this, "HostedZone", {
domainName: "example.com",
});
new Squarespace(this, "Squarespace", {
hostedZone: hostedZone,
verificationCode: "my-domain-verification-code",
});
}
}
Follow these instructions to get a domain verification code.
Pre-flight Checklist
Here is a checklist to set up a new account before we can deploy stacks from this project.
Usage
Self-contained reproducible dev environment
docker-compose build
docker-compose run --rm dev bash
License
Copyright © 2021 robofarm
Distributed under the MIT License (MIT).