Cleanup

In this Lab, you will delete the resources created in the workshop.

Deleting AWS Lambda

  • Open AWS Lambda console
  • Select the Functions in the left-hand menu, search for kvs-workshop-lambda and click
  • Click the Actions > Delete function in the top menu
  • Click Delete on the confirmation screen

Deleting an Amazon Elasticsearch Service domain

  • Open Amazon Elasticsearch Service Console
  • Select kvs-workshop-domain from the left-hand menu
  • Click on the top menu Actions > Delete Domain
  • Tick the checkbox and click Delete on the confirmation page

Deleting Amazon Rekognition Video resources

  • Run the following commands from the terminal of the PC for operation to stop the stream processor and delete the stream processor and the collection.
aws rekognition stop-stream-processor --name kvs-workshop-processor
aws rekognition delete-stream-processor --name kvs-workshop-processor
aws rekognition delete-collection --collection-id kvs-workshop-collection

Deleting a stream in Amazon Kinesis Data Streams

  • Open Amazon Kinesis Data Streams console
  • Select Data streams from the menu on the left and click kvs-workshop-data-stream
  • Click on the Delete button in the upper right corner of the screen
  • A confirmation screen will appear. Enter delete in the field and click Delete

Deleting a stream in Amazon Kinesis Video Streams

  • Open Amazon Kinesis Video Streams console
  • Click on the Video streams in the left hand menu > Click on kvs-workshop-stream in the list of streams
  • Click on the Delete video stream in the upper right corner of the screen
  • A confirmation screen will appear. Enter delete in the field and click Delete

Deleting an Amazon S3 Bucket

  • Open Amazon S3 console
  • Select Buckets from the left menu and click on the bucket that starts with kvs-workshop-bucket-
  • Select all the files and click on the menu item Actions > Delete
  • Click Delete on the confirmation screen
  • Open Amazon S3 console again
  • Choose Buckets from the left menu and click the radio button next to the bucket that starts with kvs-workshop-bucket-
  • Click the Delete button at the top of the screen
  • A confirmation screen will appear. Enter the name of the bucket in the field and click Delete bucket.

Deleting an IAM Role/Policy

  • Open IAM Roles Console
  • Select Roles from the menu on the left and click kvs-workshop-lambda-role.
    • Open the Permissions policies on the Permissions tab, starting with AWSLambdaBasicExecutionRole-, in a separate tab
    • Open a tab and perform the following operations
      • Click the Delete policy button in the upper right corner
      • Click Delete on the confirmation screen
    • Do the same for policies starting with AWSLAMBDAElasticsearchExecutionRole-
  • Select Roles from the left-hand menu again and check the checkboxes next to the following two roles
    • kvs-workshop-rekognition-role
    • kvs-workshop-lambda-role
  • Click on the Delete role at the top of the screen
  • Click Yes, delete on the confirmation screen

Deleting a CloudWatch log

  • Open CloudWatch Console
  • Select Logs > Log groups on the left
  • Search for kvs in the log group and click /aws/lambda/kvs-workshop-lambda
  • Click the Actions > Delete log group button at the top of the screen
  • Click Delete on the confirmation screen

Removing the Amazon Kinesis Video Streams Producer SDK on Raspberry Pi

  • Open a Raspberry Pi terminal and execute the following commands
rm -rf ~/amazon-kinesis-video-streams-producer-sdk-cpp

Deleting an AWS Cloud9 environment

  • Open AWS Cloud9 Console
  • Select Your environments > Select the environment you created
  • Select Delete at the top right of the screen
  • In the dialog, input Delete and select Delete

That’s it, your resources are deleted.