Uninstall the solution - FHIR Works on AWS

Uninstall the solution

You can uninstall the FHIR Works on AWS solution from the AWS Management Console or by using the AWS Command Line Interface. You must manually delete the Amazon Simple Storage Service (Amazon S3) buckets and Amazon DynamoDB table created by this solution. AWS Solutions Implementations do not automatically delete these resources in case you have stored data to retain.

Using the AWS Management Console

To uninstall FHIR Works on AWS solution, do the following.

  1. Sign in to the AWS CloudFormation console.

  2. On the Stacks page, select the solution stack.

  3. Choose Delete.

Using AWS Command Line Interface

Verify that the AWS Command Line Interface (AWS CLI) is available in your environment. For installation instructions, refer to What Is the AWS Command Line Interface in the AWS CLI User Guide. After confirming that the AWS CLI is available, run the following command.

$ aws cloudformation delete-stack --stack-name <your-stack-name>

Deleting the Amazon S3 buckets

The following five types of buckets are created by FHIR Works on AWS:

Bucket Description
auditlogsbucket Stores audit logs
bulkexportresultbukcet Stores export data
fhirbinarybucket Contains FHIR binary resources
fhirlogsbucket Contains Amazon API Gateway logs.
gluescriptsbucket Stores glue script for bulk export
  1. Sign in to the Amazon S3 console.

  2. Select the bucket to be deleted.

  3. Choose Empty.

  4. Choose Delete.

To delete the S3 bucket using AWS CLI, run the following command:

$ aws s3 rb s3://<bucket-name> --force

Alternatively, you can configure the AWS CloudFormation template to delete the Amazon S3 bucket automatically. Before deleting the stack, change the deletion behavior in the AWS CloudFormation DeletionPolicy attribute.

Deleting the Amazon DynamoDB table

FHIR Works on AWS creates DynamoDB tables which are not automatically deleted. To delete these tables, use the steps below.

  1. Sign in to Amazon DynamoDB console.

  2. Select the resource-db-dev table, which contains FHIR resource data.

  3. Choose Delete.

  4. Select the export-request-dev table, which contains all data export requests.

  5. Choose Delete.