[{"data":1,"prerenderedAt":66},["ShallowReactive",2],{"content-guides-serverless-crossplane-on-eks-cleanup":3},{"markdown":4,"frontMatterAttributes":5,"bodyRaw":11,"contributorPaths":12,"menuType":14,"contentName":15,"slug":16,"readingTime":17,"menu":18,"nextDocItem":65,"previousDocItem":53},"\u003Cp>You have now completed this guide, but you still need to clean up the resources created during this guide. \u003C\u002Fp>\n\u003Ch2>Implementation\u003C\u002Fh2>\n\u003Ch3>Remove Crossplane Resources\u003C\u002Fh3>\n\u003Cp>Delete the repository\u003C\u002Fp>\n\u003Cpre>\u003Ccode class=\"language-sh\">aws ecr delete-repository $IMAGE_NAME\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>Navigate to the following directory\u003C\u002Fp>\n\u003Cpre>\u003Ccode class=\"language-sh\">cd examples\u002Fupbound-aws-provider\u002Fcomposite-resources\u002Fserverless-examples\u002Fsqs-lambda-s3\u002F\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>Remove the claim\u003C\u002Fp>\n\u003Cpre>\u003Ccode class=\"language-sh\">kubectl delete -f claim\u002Fsqs-lambda-s3-claim.yaml\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>Validate the claim was removed\u003C\u002Fp>\n\u003Cpre>\u003Ccode class=\"language-sh\">kubectl get serverlessapp\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>Should return no claims.\u003C\u002Fp>\n\u003Cp>Navigate to the AWS Console and check that the SQS, Lambda function, and S3 bucket are deleted.\u003C\u002Fp>\n\u003Cp>Once deleted, remove the XRDs and Compositions:\u003C\u002Fp>\n\u003Cpre>\u003Ccode class=\"language-sh\">kubectl delete -k .\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Ch3>Remove the EKS cluster\u003C\u002Fh3>\n\u003Cp>If you created EKS cluster with the instructions from this \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fawslabs\u002Fcrossplane-on-eks\u002Ftree\u002Fmain\u002Fbootstrap\u002Fterraform\">Readme\u003C\u002Fa>, use the included \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fawslabs\u002Fcrossplane-on-eks\u002Fblob\u002Fmain\u002Fbootstrap\u002Fterraform\u002Fdestroy.sh\">destroy.sh\u003C\u002Fa> script to remove it.\u003C\u002Fp>\n\u003Cp>Navigate to the following directory:\u003C\u002Fp>\n\u003Cpre>\u003Ccode class=\"language-sh\">cd bootstrap\u002Fterraform\u002F\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cpre>\u003Ccode class=\"language-sh\">.\u002Fdestroy.sh\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Ch2>Conclusion\u003C\u002Fh2>\n\u003Cp>Congratulations! You have finished the \u003Cstrong>Deploy a Serverless Application using Crossplane on EKS\u003C\u002Fstrong> getting started guide. Continue your journey with AWS by following other examples in the \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fawslabs\u002Fcrossplane-on-eks\">Crossplane on EKS\u003C\u002Fa> repository.\u003C\u002Fp>\n",{"title":6,"order":7,"learningGoals":8},"4. Clean up resources",2,[9,10],"How to remove Crossplane resources","How to destroy EKS cluster if created using the GitHub repository.","You have now completed this guide, but you still need to clean up the resources created during this guide. \n\n## Implementation\n\n### Remove Crossplane Resources\n\nDelete the repository\n\n```sh\naws ecr delete-repository $IMAGE_NAME\n```\n\nNavigate to the following directory\n\n```sh\ncd examples\u002Fupbound-aws-provider\u002Fcomposite-resources\u002Fserverless-examples\u002Fsqs-lambda-s3\u002F\n```\n\nRemove the claim\n\n```sh\nkubectl delete -f claim\u002Fsqs-lambda-s3-claim.yaml\n```\n\nValidate the claim was removed\n\n```sh\nkubectl get serverlessapp\n```\n\nShould return no claims.\n\nNavigate to the AWS Console and check that the SQS, Lambda function, and S3 bucket are deleted.\n\nOnce deleted, remove the XRDs and Compositions:\n\n```sh\nkubectl delete -k .\n```\n\n### Remove the EKS cluster\n\nIf you created EKS cluster with the instructions from this [Readme](https:\u002F\u002Fgithub.com\u002Fawslabs\u002Fcrossplane-on-eks\u002Ftree\u002Fmain\u002Fbootstrap\u002Fterraform), use the included [destroy.sh](https:\u002F\u002Fgithub.com\u002Fawslabs\u002Fcrossplane-on-eks\u002Fblob\u002Fmain\u002Fbootstrap\u002Fterraform\u002Fdestroy.sh) script to remove it.\n\nNavigate to the following directory:\n\n```sh\ncd bootstrap\u002Fterraform\u002F\n```\n\n```sh\n.\u002Fdestroy.sh\n```\n\n## Conclusion\n\nCongratulations! 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](https:\u002F\u002Fgithub.com\u002Fawslabs\u002Fcrossplane-on-eks) repository.\n",[13],"content\u002Fcontributors\u002Fdavid-boyne.json","LIST","Deploy a Serverless Application using Crossplane on EKS","\u002Fcontent\u002Fguides\u002Fserverless-crossplane-on-eks\u002Fcleanup","1 min",[19,33],{"title":20,"content":21},"Introduction",[22],{"title":23,"order":24,"learningGoals":25,"time":29,"path":30,"id":31,"link":32},"Overview",1,[26,27,28],"Create a Docker image and push it to ECR.","Set Crossplane underlying Compositions and XRDs, and use Claims.","Validate results with basic commands using kubectl and the AWS CLI.","2 min","introduction","introduction.md","\u002Fcontent\u002Fguides\u002Fserverless-crossplane-on-eks\u002Fintroduction",{"title":34,"content":35},"Modules",[36,44,53,61],{"title":37,"order":7,"learningGoals":38,"time":29,"path":41,"id":42,"link":43},"1. Build a docker image and push to ECR",[39,40],"Building a Docker image from a given application","Creating an ECR repo and uploading an image to it using the AWS CLI","docker-image","docker-image.md","\u002Fcontent\u002Fguides\u002Fserverless-crossplane-on-eks\u002Fdocker-image",{"title":45,"order":7,"learningGoals":46,"time":49,"path":50,"id":51,"link":52},"2. Deploy the serverless application",[47,48],"Deploying Crossplane XRDs and Compositions","Deploying a Claim to create serverless application","3 min","deployment","deployment.md","\u002Fcontent\u002Fguides\u002Fserverless-crossplane-on-eks\u002Fdeployment",{"title":54,"order":7,"learningGoals":55,"time":17,"path":58,"id":59,"link":60},"3. Test",[56,57],"Pushing messages to SQS using the AWS CLI.","Exploring the AWS SQS, Lambda, and S3 consoles.","testing","testing.md","\u002Fcontent\u002Fguides\u002Fserverless-crossplane-on-eks\u002Ftesting",{"title":6,"order":7,"learningGoals":62,"time":17,"path":63,"id":64,"link":16},[9,10],"cleanup","cleanup.md",null,1792578866282]