Skip to content

Latest commit

 

History

History
5 lines (5 loc) · 906 Bytes

clean-up-ingestion-resources.md

File metadata and controls

5 lines (5 loc) · 906 Bytes

Clean up Ingestion Resources

You can clean up the ingestion resources immediately after ingesting the documents into your OpenSearch index. The ingestion executes as a one-off Amazon ECS task. For a production scenario with changes to the source documents you should consider scheduling Amazon ECS tasks for ingesting the latest version of documents on a schedule.

  1. In your terminal navigate to the ingestion directory cd ~/semantic-search-aws-docs/ingestion in this repository.
  2. Run terraform destroy -var-file="awsdocs.tfvars" -var="infra_region=$REGION" -var="infra_tf_state_s3_bucket=$S3_BUCKET" -var="docs_src=(eval sed -e 's/^"//' -e 's/"$//' <<< (terraform output docs_src))" to clean up the ingestion resources.
  3. Enter yes when Terraform prompts you "Do you really want to destroy all resources?".