Skip to content

Instantly share code, notes, and snippets.

@michrome
Last active September 6, 2022 13:24
Show Gist options
  • Save michrome/ea8819b557481880766ea6eba2563909 to your computer and use it in GitHub Desktop.
Save michrome/ea8819b557481880766ea6eba2563909 to your computer and use it in GitHub Desktop.
Ho to manually deploy pre-built assets to Amplify

Create a new branch

$ aws amplify create-branch --app-id d35zda70oajrej --branch-name test --region ca-central-1

Create a new deploy

$ aws amplify create-deployment --app-id d35zda70oajrej --branch-name test --region ca-central-1

Returns a ➡️jobId⬅️ and a 👉zipUploadUrl👈.

Upload the artifacts

$ curl -I --request PUT \
 --url '👉zipUploadUrl👈' \
 --header 'content-type: application/x-zip-compressed' \
 --upload-file '/Users/jrm/Desktop/artifacts.zip'

Start the deployment

$ aws amplify start-deployment --app-id d35zda70oajrej --branch-name test --region ca-central-1 --job-id ➡️jobId⬅️
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment