agentless datasync create-location-object-storage requires --agent-arns #9777
Replies: 1 comment 1 reply
|
This error is coming from your AWS CLI version/model, not from your use case. Your installed AWS CLI currently treats What to do: First, confirm your CLI version: aws --version Then upgrade to the latest AWS CLI v2 (important: this updates the embedded botocore/service models too). After upgrading, the same command should work without aws datasync create-location-object-storage Notes: If you still see the same “required: --agent-arns” after upgrading, it usually means you are still running an older which -a aws aws --version and ensure the upgraded one is the one being executed. Also confirm the feature is available in the region you are using for DataSync. DataSync is regional; use a region where Enhanced mode (agentless) is supported. In short: upgrade AWS CLI v2 to a build that includes the updated DataSync model where AgentArns is optional for agentless object storage locations, then rerun the command. |
Uh oh!
There was an error while loading. Please reload this page.
Unclear if this is an issue with my use case, but we are trying to run datasync to pull from GCS to AWS S3, agentless via CLI. The command I am using is
aws datasync create-location-object-storage --server-hostname storage.googleapis.com --server-protocol HTTPS --server-port 443 --bucket-name MYBUCKET --subdirectory /MYDIRECTORY --access-key GCS_ACCESS_KEY_ID --secret-key GCS_SECRET_ACCESS_KEY --region us-east-1but this returns
aws: error: the following arguments are required: --agent-arnsIt's my understanding that since May 2025 agentless datasync is possible, and documentation for
create-location-object-storagelists--agent-arnsas optional. Something missing here?All reactions