Shared AWS infrastructure for mattgilbride.com, built with AWS CDK (v1) and TypeScript.
This stack provisions a wildcard SSL/TLS certificate and stores shared parameters in SSM Parameter Store so that other stacks can reference them.
- Wildcard certificate (
*.mattgilbride.com) via AWS Certificate Manager, validated through DNS against an existing Route 53 Hosted Zone - SSM Parameter Store entries:
certificateArn— ARN of the wildcard certificate (used by CloudFront, ALBs, etc.)domainName— the root domain name (mattgilbride.com)
- Node.js 14+
- Yarn
- AWS CLI configured with credentials
- An existing Route 53 Hosted Zone for
mattgilbride.com
-
Clone the repository and install dependencies:
yarn install
-
Configure AWS credentials. Either set up the AWS CLI (
aws configure) or copy the sample env file:cp .env-sample .env # fill in your values, then: source .env
Synthesize the CloudFormation template (to inspect without deploying):
make synth
# or
yarn synthDeploy the stack:
make deploy
# or
yarn deployTear down the stack:
yarn destroy| File | Description |
|---|---|
index.ts |
CDK app entry point — defines constructs and the stack |
cdk.json |
CDK toolkit configuration |
Makefile |
Convenience targets that set region/account and invoke yarn |
.env-sample |
Template for required environment variables |