This repository contains Python CDK constructs for various AWS services such as ACM, CloudFront, and S3.
This construct creates an ACM certificate for a given domain name and associates it with a Route53 hosted zone.
domain_name
: The domain name for the certificate.hosted_zone
: The Route53 hosted zone.
- Creates an ACM certificate.
- Enables transparency logging.
This construct creates a CloudFront distribution for either an S3 bucket or an HTTP origin.
domain_name
: The domain name for the CloudFront distribution.origin_type
: The type of origin (either "s3" or "http").certificate
: The ACM certificate.website_s3_bucket
: The S3 bucket for the website (optional).backup_website_s3_bucket
: The backup S3 bucket (optional).api_gateway
: The API Gateway (optional).
- Creates a CloudFront distribution.
- Sets up origin access control for S3.
- Configures response headers and geo-restrictions.
This construct creates an S3 bucket with specific configurations.
- Creates an S3 bucket with versioning enabled.
- Blocks public access.
- Adds a lifecycle rule for noncurrent versions.