404

[ Avaa Bypassed ]




Upload:

Command:

botdev@18.217.203.133: ~ $
**Example 1: To create a deployment**

The following ``create-deployment`` example deploys the AWS IoT Greengrass Command Line Interface to a core device. ::

    aws greengrassv2 create-deployment \
        --cli-input-json file://cli-deployment.json

Contents of ``cli-deployment.json``::

    {
        "targetArn": "arn:aws:iot:us-west-2:123456789012:thing/MyGreengrassCore",
        "deploymentName": "Deployment for MyGreengrassCore",
        "components": {
            "aws.greengrass.Cli": {
                "componentVersion": "2.0.3"
            }
        },
        "deploymentPolicies": {
            "failureHandlingPolicy": "DO_NOTHING",
            "componentUpdatePolicy": {
                "timeoutInSeconds": 60,
                "action": "NOTIFY_COMPONENTS"
            },
            "configurationValidationPolicy": {
                "timeoutInSeconds": 60
            }
        },
        "iotJobConfiguration": {}
    }

Output::

    {
        "deploymentId": "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111"
    }

For more information, see `Create deployments <https://docs.aws.amazon.com/greengrass/v2/developerguide/create-deployments.html>`__ in the *AWS IoT Greengrass V2 Developer Guide*.

**Example 2: To create a deployment that updates component configurations**

The following ``create-deployment`` example deploys the AWS IoT Greengrass nucleus component to a group of core devices. This deployment applies the following configuration updates for the nucleus component:

- Reset the target devices' proxy settings to their default no proxy settings.
- Reset the target devices' MQTT settings to their defaults.
- Sets the JVM options for the nucleus' JVM.
- Sets the logging level for the nucleus.

::

    aws greengrassv2 create-deployment \
        --cli-input-json file://nucleus-deployment.json

Contents of ``nucleus-deployment.json``::

    {
        "targetArn": "arn:aws:iot:us-west-2:123456789012:thinggroup/MyGreengrassCoreGroup",
        "deploymentName": "Deployment for MyGreengrassCoreGroup",
        "components": {
            "aws.greengrass.Nucleus": {
                "componentVersion": "2.0.3",
                "configurationUpdate": {
                    "reset": [
                        "/networkProxy",
                        "/mqtt"
                    ],
                    "merge": "{\"jvmOptions\":\"-Xmx64m\",\"logging\":{\"level\":\"WARN\"}}"
                }
            }
        },
        "deploymentPolicies": {
            "failureHandlingPolicy": "ROLLBACK",
            "componentUpdatePolicy": {
                "timeoutInSeconds": 60,
                "action": "NOTIFY_COMPONENTS"
            },
            "configurationValidationPolicy": {
                "timeoutInSeconds": 60
            }
        },
        "iotJobConfiguration": {}
    }

Output::

    {
        "deploymentId": "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
        "iotJobId": "a1b2c3d4-5678-90ab-cdef-EXAMPLE22222",
        "iotJobArn": "arn:aws:iot:us-west-2:123456789012:job/a1b2c3d4-5678-90ab-cdef-EXAMPLE22222"
    }

For more information, see `Create deployments <https://docs.aws.amazon.com/greengrass/v2/developerguide/create-deployments.html>`__ and `Update component configurations <https://docs.aws.amazon.com/greengrass/v2/developerguide/update-component-configurations.html>`__ in the *AWS IoT Greengrass V2 Developer Guide*.

Filemanager

Name Type Size Permission Actions
associate-service-role-to-account.rst File 618 B 0644
batch-associate-client-device-with-core-device.rst File 637 B 0644
batch-disassociate-client-device-from-core-device.rst File 649 B 0644
cancel-deployment.rst File 471 B 0644
create-component-version.rst File 3.19 KB 0644
create-deployment.rst File 3.39 KB 0644
delete-component.rst File 481 B 0644
delete-core-device.rst File 503 B 0644
describe-component.rst File 1.11 KB 0644
disassociate-service-role-from-account.rst File 563 B 0644
get-component-version-artifact.rst File 1.04 KB 0644
get-component.rst File 2.98 KB 0644
get-connectivity-info.rst File 798 B 0644
get-core-device.rst File 708 B 0644
get-deployment.rst File 1.84 KB 0644
get-service-role-for-account.rst File 618 B 0644
list-client-devices-associated-with-core-device.rst File 920 B 0644
list-component-versions.rst File 1.02 KB 0644
list-components.rst File 1.28 KB 0644
list-core-devices.rst File 659 B 0644
list-deployments.rst File 1.38 KB 0644
list-effective-deployments.rst File 1.76 KB 0644
list-installed-components.rst File 971 B 0644
list-tags-for-resource.rst File 556 B 0644
tag-resource.rst File 595 B 0644
untag-resource.rst File 520 B 0644
update-connectivity-info.rst File 1006 B 0644