To delete all provisioned resources:

  • Navigate to AWS MSK Connect Console

  • Delete all connectors you can view in the list

  • Wait until all connectors complete deleting

  • Run the following command to empty the s3 buckets

sudo -u ec2-user -i
aws s3 rm s3://msk-lab-${ACCOUNT_ID}-plugins-bucket --recursive
aws s3 rm s3://msk-lab-${ACCOUNT_ID}-target-bucket --recursive
  • Navigate to the CloudFormation page on the console

  • Find, and select msk-connect-lab from the list of stacks. Click on the Delete button. Confirm deleting by clicking on Delete Stack button