Sample CDK application that configures the access log collection system on AWS.
- CloudFront
- ALB
- NLB
- EC2 (httpd logs via td-agent)
First, define the context as follows:
{
...
"context": {
...
"owner": "user",
"serviceName": "myapp",
"hostedZoneName": "your-domain.com"
}
}
Deploy resources with the following command:
npx cdk synth
npx cdk deploy