- Newest
- Most votes
- Most comments
Hello.
Looking at the AWS CLI change history below, it appears that "source-url-type" is an option added in version 2.18.7.
Make sure the AWS CLI version you are using is 2.18.7 or higher.
https://github.com/aws/aws-cli/blob/v2/CHANGELOG.rst
api-change:amplify: Added sourceUrlType field to StartDeployment request
If you are using an older version, please update by following the steps in the document below.
https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html
The issue you're encountering is due to a formatting error in the command you're trying to use. The --source-url-type option is indeed a valid parameter for the aws amplify start-deployment command, but it needs to be specified correctly.
Here's the correct format for the command:
aws amplify start-deployment --app-id <app_id> --branch-name <branch_name> --source-url s3://amzn-s3-demo-website-bucket/prefix --source-url-type BUCKET_PREFIX
The key differences are:
- The
--source-url-typeshould be a separate option, not part of the--source-urlvalue. BUCKET_PREFIXshould be the value of the--source-url-typeoption, not a separate parameter.
Make sure you're using the latest version of the AWS CLI, as older versions might not support this option. You can check your AWS CLI version with aws --version and update if necessary.
If you're still encountering issues after correcting the command format, it's possible that your AWS CLI installation might need to be updated or there could be a discrepancy between the online documentation and your local CLI version. In such cases, you may want to consider updating your AWS CLI to the latest version or reaching out to AWS support for further assistance.
Remember to replace <app_id> and <branch_name> with your actual Amplify app ID and branch name respectively when running the command.
Sources
(Optional) Installing the AWS CLI - AWS Elemental MediaPackage
AWS Amplify | Extensible Web & Mobile Apps | Amazon Web Services
answered 2 years ago
Relevant content
asked 2 years ago

Ah, interesting. I had checked the changelog, but it was for v1 only. Why is master v1 on the repo? 😅 Anyway, I did indeed have an older version installed! Now it works. ❤️