Teardown

To perform a teardown for this lab, perform the following steps:

  1. Delete QuickSight dashboard, Athena dataset

    1. Go to the AWS CloudFormation console: https://console.aws.amazon.com/cloudformation
    2. Select the CloudFormation stack you crated with below template to delete and click Delete
      • Parquet: vpc_flowlogs_quicksight_multi_view_template.yaml
      • CSV: vpc_flowlogs_quicksight_template.yaml
    3. In the confirmation dialog, click Delete stack
    4. The Status changes to DELETE_IN_PROGRESS
    5. Click the refresh button to update and status will ultimately progress to DELETE_COMPLETE
    6. When complete, the stack will no longer be displayed. To see deleted stacks use the drop down next to the Filter text box.
    7. To see progress during stack deletion
      • Click the stack name
      • Select the Events column
      • Refresh to see new events
  2. Delete Athena DB, Table, View, Lambda Function and Cloudwatchwatch rule

    1. Go to the AWS CloudFormation console: https://console.aws.amazon.com/cloudformation
    2. Select the CloudFormation stack you crated with below template to delete and click Delete
      • Parquet: vpc_athena_db_table_view_lambda_parquet.yaml, OR
      • CSV: vpc_athena_db_table_view_lambda.yaml
    3. In the confirmation dialog, click Delete stack
    4. The Status changes to DELETE_IN_PROGRESS
    5. Click the refresh button to update and status will ultimately progress to DELETE_COMPLETE
    6. When complete, the stack will no longer be displayed. To see deleted stacks use the drop down next to the Filter text box.
    7. To see progress during stack deletion
      • Click the stack name
      • Select the Events column
      • Refresh to see new events
  3. Delete VPC Flow Logs from VPC:

    • CSV: Please login to the AWS account where you have executed cloudformation template to create VPC Flow Logs
      1. Go to the AWS CloudFormation console: https://console.aws.amazon.com/cloudformation
      2. Select the CloudFormation stack you crated with template CSV: vpc-flow-logs-custom.yaml to delete and click Delete
      3. In the confirmation dialog, click Delete stack
      4. The Status changes to DELETE_IN_PROGRESS
      5. Click the refresh button to update and status will ultimately progress to DELETE_COMPLETE
      6. When complete, the stack will no longer be displayed. To see deleted stacks use the drop down next to the Filter text box.
      7. To see progress during stack deletion
        • Click the stack name
        • Select the Events column
        • Refresh to see new events

    OR

    • Parquet: Please login to the AWS account where you have enabled VPC flow logs on the desired VPC. Navigate to the CloudShell service and execute below api command to delete the flow logs.
      1. Replace <fl-11223344556677889> with your flow log id.

         aws ec2 delete-flow-logs --flow-log-id <fl-11223344556677889>
        
  4. Please login to the AWS account where you have created S3 bucket via AWS Console. Delete S3 bucket you created for storing VPC Flow Logs.