Updating data repository association settings
You can update an existing data repository association's settings using the Amazon Web Services Management Console, the Amazon CLI, and the Amazon FSx API, as shown in the following procedures.
Note
You cannot update the File system path
or Data repository
path
of a DRA after it's created. If you want to change the File
system path
or Data repository path
, you must delete the DRA and
create it again.
Open the Amazon FSx console at https://console.amazonaws.cn/fsx/
. -
From the dashboard, choose File systems, and then select the file system that you want to manage.
-
Choose the Data repository tab.
-
In the Data repository associations pane, choose the data repository association you want to change.
-
Choose Update. An edit dialog displays for the data repository association.
-
For Import settings - optional, you can update your Import Policy. For more information on import policies, see Automatically import updates from your S3 bucket.
-
For Export settings - optional, you can update your export policy. For more information on export policies, see Automatically export updates to your S3 bucket.
-
Choose Update.
-
To update a data repository association, use the Amazon FSx CLI command
update-data-repository-association
, as shown following.$
aws fsx update-data-repository-association \ --association-id 'dra-872abab4b4503bfc2' \ --s3 "AutoImportPolicy={Events=[NEW,CHANGED,DELETED]},AutoExportPolicy={Events=[NEW,CHANGED,DELETED]}"
After successfully updating the data repository association's import and export policies, Amazon FSx returns the description of the updated data repository association as JSON.