Lab complete!
Now that you have completed this lab, make sure to update your Well-Architected review if you have implemented these changes in your workload.
Click here to access the Well-Architected Tool
To manage VPC Flow Logs and QuickSight dashboard in central account please make sure you create resources for the central account in the region supported by QuickSight. Refer to this link to see supported regions.
We will now create the data sets in QuickSight from the Athena view and an analysis dashboard. All the steps from this section are required to execute one time in central account.
Login to your central AWS account.
Run CloudFormation stack to create QuickSight Athena dataset and a Dashboard.
Download CloudFormation Template:
CSV file format - vpc_flowlogs_quicksight_template.yaml
OR
Parquet file format - vpc_flowlogs_quicksight_multi_view_template.yaml
From AWS Console navigate to CloudFormation. Then click on Create stack
Create stack page:
In Specify template section, select Upload a template file.
Then Choose File and upload the appropriate template below (you have downloaded previously)
CSV file format: vpc_flowlogs_quicksight_template.yaml
OR
Parquet file format: vpc_flowlogs_quicksight_multi_view_template.yaml
Then Click Next
Provide unique stack name e.g. VPCFlowLogsQuickSightStack-01
QuickSightUserArn: You will need to provide ARN so that you will get permission to access the dashboard
Run below command in AWS Cloudshell after replcing <your account id>
with central AWS account id and <your region>
with region where QuickSight user is created. Copy the arn from response as shown in screenshot below.
aws quicksight list-users --aws-account-id <your account id> --namespace default --region <your region>
Example Response screenshot:
VpcFlowLogsAthenaDatabaseName: This is required as QuickSight dataset will be created on this database
Add tags Name=VPCFlowLogs-QuickSight-Stack and Purpose=WALabVPCFlowLogs. Keep rest of the selections to default vaules. Then Click Next
Review the Stack parameters
Then, click on Create Stack
You will see the progress of the stack creation under Events tab as below. Please wait for the stack to complete the execution. Once complete it will show the status CREATE_COMPLETE in green against stack name, then proceed to the next step.
From AWS console navigate to the QuickSight and click on Dashboards link on the left panel.
You will see the newly created dashboard in QuickSight under Dashboards, click on the Dashboard name VPC Flow Logs Analysis Dashboard integrated with AWS VPC Service:
Click Share, click Share dashboard:,
Click on Manage dashboard access:
Add the required users, or share with all users, ensure you check Save as for each user, then click the x to close the window:
Click Save as:
Enter an Analysis name and click Create:
Perform steps 11 - 15 above to create additional analyses for other teams, this will allow each team to have their own customizable analysis.
Now that you have completed this lab, make sure to update your Well-Architected review if you have implemented these changes in your workload.
Click here to access the Well-Architected Tool