This template creates a DataSync agent named `MyAgent` and activates it with the specified activation key. The agent is associated with your AWS account.

CloudFormation Template