Setup monitoring

In this section, we will enable CloudFront standard log and monitor CloudFront metrics on CloudFront Extensions console.

After deployment, you will see two CloudFormation stacks.

Console Stacks

Setup monitoring by following steps:

  1. Go to CloudFormation console

  2. Switch View nested on. View Nested

  3. Choose the Outputs tab of the nested stack (the stack whose name contains NonRealtimeNestedStack).

  4. You will find the S3 bucket in S3buckettostoreCloudFrontlogs. Copy the S3 bucket name. Nested Stacks

  5. Go to CloudFront console, choose the distribution created in CFExtSampleWorkshop stack (refer to DistributionID in the Outputs tab). Console Stacks Console Stacks

  6. In General tab, under Settings, click Edit button. Console Stacks

  7. Under Standard logging, choose On and set the S3 bucket to the bucket that you created in the nested stack (you can find it in S3buckettostoreCloudFrontlogs in the outputs tab of the nested stack, the bucket name contains cloudfrontlog keyword). Console Stacks

  8. Choose Save changes.

  9. Wait until the distribution Last modified field changed from deploying to a specific date time. Console Stacks