Deploy a Serverless Application using Crossplane on EKS4. Clean up resources1 min

You have now completed this guide, but you still need to clean up the resources created during this guide.

Implementation

Remove Crossplane Resources

Delete the repository

aws ecr delete-repository $IMAGE_NAME

Navigate to the following directory

cd examples/upbound-aws-provider/composite-resources/serverless-examples/sqs-lambda-s3/

Remove the claim

kubectl delete -f claim/sqs-lambda-s3-claim.yaml

Validate the claim was removed

kubectl get serverlessapp

Should return no claims.

Navigate to the AWS Console and check that the SQS, Lambda function, and S3 bucket are deleted.

Once deleted, remove the XRDs and Compositions:

kubectl delete -k .

Remove the EKS cluster

If you created EKS cluster with the instructions from this Readme, use the included destroy.sh script to remove it.

Navigate to the following directory:

cd bootstrap/terraform/
./destroy.sh

Conclusion

Congratulations! You have finished the Deploy a Serverless Application using Crossplane on EKS getting started guide. Continue your journey with AWS by following other examples in the Crossplane on EKS repository.


Created by:

David Boyne
David BoyneHelping people learn about event-driven architectures and serverless