Deleting an association to an S3 bucket
The following procedures walk you through the process of deleting a data repository association from an existing Amazon FSx file system to an existing S3 bucket, using the AWS Management Console and AWS Command Line Interface (AWS CLI). Deleting the data repository association unlinks the file system from the S3 bucket.
Open the Amazon FSx console at https://console.aws.amazon.com/fsx/
. -
From the dashboard, choose File systems and then select the file system that you want to delete a data repository association from.
-
Choose the Data repository tab.
-
In the Data repository associations pane, choose the data repository association that you want to delete.
-
For Actions, choose Delete association.
-
(Optional) In the Delete dialog, you can choose Delete data in file system to physically delete the data in the file system that corresponds to the data repository association.
-
Choose Delete to remove the data repository association from the file system.
The following example deletes a data repository association that links an Amazon FSx file system to an S3
bucket. The --association-id
parameter specifies the ID of the data repository association to
be deleted.
-
To delete a data repository association, use the Amazon FSx CLI command
delete-data-repository-association
, as shown following.$
aws fsx delete-data-repository-association \ --association-id dra-872abab4b4503bfc \ --delete-data-in-file-system false
After successfully deleting the data repository association, Amazon FSx returns its description as JSON.