Replacing your AWS DataSync agent
To replace an AWS DataSync agent, you must create a new agent and update any transfer locations that are using the old agent.
Creating a new agent
To create your new DataSync agent, follow the same process when you created your old agent:
-
Deploy an agent in your storage environment.
-
Choose a service endpoint that the agent uses to communicate with AWS.
-
Configure your network so that the agent can communicate with your storage and AWS.
-
Once activated, make note of the agent’s Amazon Resource Name (ARN).
You need this ARN when updating your DataSync location to use the new agent.
Updating your location with the new agent
Once you create a new agent, you can update an existing DataSync location to use this agent. In most cases, you also have to re-enter access credentials to update the location. This is because DataSync stores location credentials in a way that only your agent can use them.
The following instructions describe how to update locations with a new agent by using the DataSync console.
The following instructions describe how to update locations with a new agent by using the AWS CLI. (You can also do this by using the DataSync API.)
Next steps
-
Delete your old agent. If you have any running DataSync tasks using this agent, wait until those tasks finish before deleting it.
-
If you need to replace agents for multiple locations, repeat the previous steps.
-
When you’re done, you can resume running your tasks.
Note
Replacing agents for scheduled tasks – If you replace an agent for a scheduled task, you must start that task manually if the new agent is using a different type of service endpoint than your old agent. If you don't run the task manually before its next scheduled run, the task fails.
For example, if your old agent used a public service endpoint, but the new agent uses a VPC endpoint, start that task manually by using the console or
StartTaskExecution
operation. After that, your task will resume running on its schedule.