Deleting an association to an S3 bucket - FSx for Lustre
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

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 Amazon Web Services Management Console and Amazon Command Line Interface (Amazon CLI). Deleting the data repository association unlinks the file system from the S3 bucket.

  1. Open the Amazon FSx console at https://console.amazonaws.cn/fsx/.

  2. From the dashboard, choose File systems and then select the file system that you want to delete a data repository association from.

  3. Choose the Data repository tab.

  4. In the Data repository associations pane, choose the data repository association that you want to delete.

  5. For Actions, choose Delete association.

  6. (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.

  7. 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.