File size: 959 Bytes
6ba100e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | #!/usr/bin/env python3
"""
app.py — CDK application entry point.
Usage:
cd cdk
pip install aws-cdk-lib constructs
cdk bootstrap # first time only
cdk synth # preview CloudFormation template
cdk deploy # deploy to AWS
cdk destroy # tear down all resources
"""
import aws_cdk as cdk
from email_gatekeeper_stack import EmailGatekeeperStack
app = cdk.App()
EmailGatekeeperStack(
app,
"EmailGatekeeperStack",
# Pin to a specific account + region to avoid environment-agnostic limitations
# (required for SES receipt rules and S3 bucket policies).
# Replace with your actual AWS account ID and preferred region.
env=cdk.Environment(
account="123456789012", # ← replace with your AWS account ID
region="us-east-1", # ← SES inbound is only available in us-east-1,
), # us-west-2, and eu-west-1
)
app.synth()
|