aws-samples / aws-secure-environment-accelerator

The AWS Secure Environment Accelerator is a tool designed to help deploy and operate secure multi-account, multi-region AWS environments on an ongoing basis. The power of the solution is the configuration file which enables the completely automated deployment of customizable architectures within AWS without changing a single line of code.
Apache License 2.0
725 stars 233 forks source link

[BUG][Functional] CloudFront Monitoring Metrics Blocked by Service Control Policy in Workload Accounts #1188

Open MaxWardle opened 11 months ago

MaxWardle commented 11 months ago

Bug reports which fail to provide the required information will be closed without action.

Required Basic Info

Describe the bug When logged into a workload account with administrator access, and attempting to view CloudFront monitoring metrics I get an error message telling me "To view this widget you need cloudwatch:GetMetricData with an explicit deny in a service control policy permission."

Failure Info

Required files

Steps To Reproduce

  1. In a workload account (prod, dev, test) go to CloudFront and create a distribution.
  2. Click on the distribution and click on "View metrics" in the top right hand corner
  3. See the error message above on the widgets that should show the data (see screenshot below)

Expected behavior Be able to view the CloudFront metrics data with Admin privileges in the SEA's workload accounts.

Screenshots

Screen Shot 2023-10-23 at 2 01 53 PM

Screen Shot 2023-10-23 at 2 03 07 PM

Additional context Add any other context about the problem here.