CmdID / aws / aws greengrass
aws greengrass create-deployment
Creates a deployment. AWS CLI reference
1 example 5 options Its page in the AWS CLI reference
Examples
To create a deployment for a version of a Greengrass group
The following create-deployment example deploys the specified version of a Greengrass group.
aws greengrass create-deployment --deployment-type NewDeployment --group-id "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111" --group-version-id "a1b2c3d4-5678-90ab-cdef-EXAMPLE22222"Identify--deployment-typeThe type of deployment.--group-idThe ID of the Greengrass group.--group-version-idThe ID of the group version to be deployed.Its output
{
"DeploymentArn": "arn:aws:greengrass:us-west-2:123456789012:/greengrass/groups/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111/deployments/a1b2c3d4-5678-90ab-cdef-EXAMPLE33333",
"DeploymentId": "a1b2c3d4-5678-90ab-cdef-EXAMPLE33333"
}For more information, see Getting started with Greengrass connectors (CLI) in the AWS IoT Greengrass Developer Guide.
Options
--amzn-client-tokenA client token used to correlate requests and responses.--deployment-idThe ID of the deployment if you wish to redeploy a previous deployment.--deployment-typeThe type of deployment.--group-idThe ID of the Greengrass group.--group-version-idThe ID of the group version to be deployed.