This documentation is for Version 1 of the Amazon CLI only. For documentation related to Version 2 of the Amazon CLI, see the Version 2 User Guide.
Amazon RoboMaker examples using Amazon CLI
The following code examples show you how to perform actions and implement common scenarios by using the Amazon Command Line Interface with Amazon RoboMaker.
Actions are code excerpts from larger programs and must be run in context. While actions show you how to call individual service functions, you can see actions in context in their related scenarios.
Each example includes a link to the complete source code, where you can find instructions on how to set up and run the code in context.
Topics
Actions
The following code example shows how to use batch-describe-simulation-job
.
- Amazon CLI
-
To batch describe simulation jobs
The following
batch-describe-simulation-job
example retrieves details for the three specified simulation jobs.Command:
aws robomaker batch-describe-simulation-job \ --job
arn:aws:robomaker:us-west-2:111111111111:simulation-job/sim-66bbb3gpxm8x
arn:aws:robomaker:us-west-2:111111111111:simulation-job/sim-p0cpdrrwng2n
arn:aws:robomaker:us-west-2:111111111111:simulation-job/sim-g8h6tglmblgw
Output:
{ "jobs": [ { "arn": "arn:aws:robomaker:us-west-2:111111111111:simulation-job/sim-66bbb3gpxm8x", "status": "Completed", "lastUpdatedAt": 1548959178.0, "failureBehavior": "Continue", "clientRequestToken": "6020408e-b05c-4310-9f13-4ed71c5221ed", "outputLocation": { "s3Bucket": "awsrobomakerobjecttracker-111111111-bundlesbucket-2lk584kiq1oa", "s3Prefix": "output" }, "maxJobDurationInSeconds": 3600, "simulationTimeMillis": 0, "iamRole": "arn:aws:iam::111111111111:role/AWSRoboMakerObjectTracker-154895-SimulationJobRole-14D5ASA7PQE3A", "simulationApplications": [ { "application": "arn:aws:robomaker:us-west-2:111111111111:simulation-application/AWSRoboMakerObjectTracker-1548959046124_NPvyfcatq/1548959170096", "applicationVersion": "$LATEST", "launchConfig": { "packageName": "object_tracker_simulation", "launchFile": "local_training.launch", "environmentVariables": { "MARKOV_PRESET_FILE": "object_tracker.py", "MODEL_S3_BUCKET": "awsrobomakerobjecttracker-111111111-bundlesbucket-2lk584kiq1oa", "MODEL_S3_PREFIX": "model-store", "ROS_AWS_REGION": "us-west-2" } } } ], "tags": {}, "vpcConfig": { "subnets": [ "subnet-716dd52a", "subnet-43c22325", "subnet-3f526976" ], "securityGroups": [ "sg-3fb40545" ], "vpcId": "vpc-99895eff", "assignPublicIp": true } }, { "arn": "arn:aws:robomaker:us-west-2:111111111111:simulation-job/sim-p0cpdrrwng2n", "status": "Completed", "lastUpdatedAt": 1548168817.0, "failureBehavior": "Continue", "clientRequestToken": "e4a23e75-f9a7-411d-835f-21881c82c58b", "outputLocation": { "s3Bucket": "awsrobomakercloudwatch-111111111111-bundlesbucket-14e5s9jvwtmv7", "s3Prefix": "output" }, "maxJobDurationInSeconds": 3600, "simulationTimeMillis": 0, "iamRole": "arn:aws:iam::111111111111:role/AWSRoboMakerCloudWatch-154766341-SimulationJobRole-G0OBWTQ8YBG6", "robotApplications": [ { "application": "arn:aws:robomaker:us-west-2:111111111111:robot-application/AWSRoboMakerCloudWatch-1547663411642_NZbpqEJ3T/1547663517377", "applicationVersion": "$LATEST", "launchConfig": { "packageName": "cloudwatch_robot", "launchFile": "await_commands.launch", "environmentVariables": { "LAUNCH_ID": "1548168752173", "ROS_AWS_REGION": "us-west-2" } } } ], "simulationApplications": [ { "application": "arn:aws:robomaker:us-west-2:111111111111:simulation-application/AWSRoboMakerCloudWatch-1547663411642_0LIt6D1h6/1547663521470", "applicationVersion": "$LATEST", "launchConfig": { "packageName": "cloudwatch_simulation", "launchFile": "bookstore_turtlebot_navigation.launch", "environmentVariables": { "LAUNCH_ID": "1548168752173", "ROS_AWS_REGION": "us-west-2", "TURTLEBOT3_MODEL": "waffle_pi" } } } ], "tags": {}, "vpcConfig": { "subnets": [ "subnet-716dd52a", "subnet-43c22325", "subnet-3f526976" ], "securityGroups": [ "sg-3fb40545" ], "vpcId": "vpc-99895eff", "assignPublicIp": true } }, { "arn": "arn:aws:robomaker:us-west-2:111111111111:simulation-job/sim-g8h6tglmblgw", "status": "Canceled", "lastUpdatedAt": 1546543442.0, "failureBehavior": "Fail", "clientRequestToken": "d796bbb4-2a2c-1abc-f2a9-0d9e547d853f", "outputLocation": { "s3Bucket": "sample-bucket", "s3Prefix": "SimulationLog_115490482698" }, "maxJobDurationInSeconds": 28800, "simulationTimeMillis": 0, "iamRole": "arn:aws:iam::111111111111:role/RoboMakerSampleTheFirst", "robotApplications": [ { "application": "arn:aws:robomaker:us-west-2:111111111111:robot-application/RoboMakerHelloWorldRobot/1546541208251", "applicationVersion": "$LATEST", "launchConfig": { "packageName": "hello_world_robot", "launchFile": "rotate.launch" } } ], "simulationApplications": [ { "application": "arn:aws:robomaker:us-west-2:111111111111:simulation-application/RoboMakerHelloWorldSimulation/1546541198985", "applicationVersion": "$LATEST", "launchConfig": { "packageName": "hello_world_simulation", "launchFile": "empty_world.launch" } } ], "tags": {} } ], "unprocessedJobs": [] }
-
For API details, see BatchDescribeSimulationJob
in Amazon CLI Command Reference.
-
The following code example shows how to use cancel-simulation-job
.
- Amazon CLI
-
To cancel a simulation job
The following
cancel-simulation-job
example cancels the specified simulation job.aws robomaker cancel-simulation-job \ --job
arn:aws:robomaker:us-west-2:111111111111:simulation-job/sim-66bbb3gpxm8x
-
For API details, see CancelSimulationJob
in Amazon CLI Command Reference.
-
The following code example shows how to use create-deployment-job
.
- Amazon CLI
-
To create a deployment job
This example creates a deployment job for fleet MyFleet. It includes an environment variable named "ENVIRONMENT". It also attaches a tag named "Region".
Command:
aws robomaker create-deployment-job --deployment-config
concurrentDeploymentPercentage=20,failureThresholdPercentage=25
--fleetarn:aws:robomaker:us-west-2:111111111111:deployment-fleet/Trek/1539894765711
--tagsRegion=West
--deployment-application-configsapplication=arn:aws:robomaker:us-west-2:111111111111:robot-application/RoboMakerVoiceInteractionRobot/1546537110575,applicationVersion=1,launchConfig={environmentVariables={ENVIRONMENT=Beta},launchFile=await_commands.launch,packageName=voice_interaction_robot}
Output:
{ "arn": "arn:aws:robomaker:us-west-2:111111111111:deployment-job/sim-0974h36s4v0t", "fleet": "arn:aws:robomaker:us-west-2:111111111111:deployment-fleet/MyFleet/1539894765711", "status": "Pending", "deploymentApplicationConfigs": [ { "application": "arn:aws:robomaker:us-west-2:111111111111:robot-application/RoboMakerVoiceInteractionRobot/1546537110575", "applicationVersion": "1", "launchConfig": { "packageName": "voice_interaction_robot", "launchFile": "await_commands.launch", "environmentVariables": { "ENVIRONMENT": "Beta" } } } ], "createdAt": 1550770236.0, "deploymentConfig": { "concurrentDeploymentPercentage": 20, "failureThresholdPercentage": 25 }, "tags": { "Region": "West" } }
-
For API details, see CreateDeploymentJob
in Amazon CLI Command Reference.
-
The following code example shows how to use create-fleet
.
- Amazon CLI
-
To create a fleet
This example creates a fleet. It attaches a tag named Region.
Command:
aws robomaker create-fleet --name
MyFleet
--tagsRegion=East
Output:
{ "arn": "arn:aws:robomaker:us-west-2:111111111111:deployment-fleet/MyOtherFleet/1550771394395", "name": "MyFleet", "createdAt": 1550771394.0, "tags": { "Region": "East" } }
-
For API details, see CreateFleet
in Amazon CLI Command Reference.
-
The following code example shows how to use create-robot-application-version
.
- Amazon CLI
-
To create a robot application version
This example creates a robot application version.
Command:
aws robomaker create-robot-application-version --application
arn:aws:robomaker:us-west-2:111111111111:robot-application/MyRobotApplication/1551201873931
Output:
{ "arn": "arn:aws:robomaker:us-west-2:111111111111:robot-application/MyRobotApplication/1551201873931", "name": "MyRobotApplication", "version": "1", "sources": [ { "s3Bucket": "my-bucket", "s3Key": "my-robot-application.tar.gz", "etag": "f8cf5526f1c6e7b3a72c3ed3f79c5493-70", "architecture": "ARMHF" } ], "robotSoftwareSuite": { "name": "ROS", "version": "Kinetic" }, "lastUpdatedAt": 1551201873.0, "revisionId": "9986bb8d-a695-4ab4-8810-9f4a74d1aa00" "tags": {} }
-
For API details, see CreateRobotApplicationVersion
in Amazon CLI Command Reference.
-
The following code example shows how to use create-robot-application
.
- Amazon CLI
-
To create a robot application
This example creates a robot application.
Command:
aws robomaker create-robot-application --name
MyRobotApplication
--sourcess3Bucket=my-bucket,s3Key=my-robot-application.tar.gz,architecture=X86_64
--robot-software-suitename=ROS,version=Kinetic
Output:
{ "arn": "arn:aws:robomaker:us-west-2:111111111111:robot-application/MyRobotApplication/1551201873931", "name": "MyRobotApplication", "version": "$LATEST", "sources": [ { "s3Bucket": "my-bucket", "s3Key": "my-robot-application.tar.gz", "architecture": "ARMHF" } ], "robotSoftwareSuite": { "name": "ROS", "version": "Kinetic" }, "lastUpdatedAt": 1551201873.0, "revisionId": "1f3cb539-9239-4841-a656-d3efcffa07e1", "tags": {} }
-
For API details, see CreateRobotApplication
in Amazon CLI Command Reference.
-
The following code example shows how to use create-robot
.
- Amazon CLI
-
To create a robot
This example creates a robot. It uses the ARMHF architecture. It also attaches a tag named Region.
Command:
aws robomaker create-robot --name
MyRobot
--architectureARMHF
--greengrass-group-id0f728a3c-7dbf-4a3e-976d-d16a8360caba
--tagsRegion=East
Output:
{ "arn": "arn:aws:robomaker:us-west-2:111111111111:robot/MyRobot/1550772324398", "name": "MyRobot", "createdAt": 1550772325.0, "greengrassGroupId": "0f728a3c-7dbf-4a3e-976d-d16a8360caba", "architecture": "ARMHF", "tags": { "Region": "East" } }
-
For API details, see CreateRobot
in Amazon CLI Command Reference.
-
The following code example shows how to use create-simulation-application-version
.
- Amazon CLI
-
To create a simulation application version
This example creates a robot application version.
Command:
aws robomaker create-simulation-application-version --application
arn:aws:robomaker:us-west-2:111111111111:robot-application/MySimulationApplication/1551203427605
Output:
{ "arn": "arn:aws:robomaker:us-west-2:111111111111:simulation-application/MyRobotApplication/1551203427605", "name": "MyRobotApplication", "version": "1", "sources": [ { "s3Bucket": "my-bucket", "s3Key": "my-simulation-application.tar.gz", "etag": "00d8a94ff113856688c4fce618ae0f45-94", "architecture": "X86_64" } ], "simulationSoftwareSuite": { "name": "Gazebo", "version": "7" }, "robotSoftwareSuite": { "name": "ROS", "version": "Kinetic" }, "renderingEngine": { "name": "OGRE", "version": "1.x" }, "lastUpdatedAt": 1551203853.0, "revisionId": "ee753e53-519c-4d37-895d-65e79bcd1914", "tags": {} }
-
For API details, see CreateSimulationApplicationVersion
in Amazon CLI Command Reference.
-
The following code example shows how to use create-simulation-application
.
- Amazon CLI
-
To create a simulation application
This example creates a simulation application.
Command:
aws robomaker create-simulation-application --name
MyRobotApplication
--sourcess3Bucket=my-bucket,s3Key=my-simulation-application.tar.gz,architecture=ARMHF
--robot-software-suitename=ROS,version=Kinetic
--simulation-software-suitename=Gazebo,version=7
--rendering-enginename=OGRE,version=1.x
Output:
{ "arn": "arn:aws:robomaker:us-west-2:111111111111:simulation-application/MyRobotApplication/1551203301792", "name": "MyRobotApplication", "version": "$LATEST", "sources": [ { "s3Bucket": "my-bucket", "s3Key": "my-simulation-application.tar.gz", "architecture": "X86_64" } ], "simulationSoftwareSuite": { "name": "Gazebo", "version": "7" }, "robotSoftwareSuite": { "name": "ROS", "version": "Kinetic" }, "renderingEngine": { "name": "OGRE", "version": "1.x" }, "lastUpdatedAt": 1551203301.0, "revisionId": "ee753e53-519c-4d37-895d-65e79bcd1914", "tags": {} }
-
For API details, see CreateSimulationApplication
in Amazon CLI Command Reference.
-
The following code example shows how to use create-simulation-job
.
- Amazon CLI
-
To create a simulation job
This example creates a simulation job. It uses a robot application and a simulation application.
Command:
aws robomaker create-simulation-job --max-job-duration-in-seconds
3600
--iam-rolearn:aws:iam::111111111111:role/AWSRoboMakerCloudWatch-154766341-SimulationJobRole-G0OBWTQ8YBG6
--robot-applicationsapplication=arn:aws:robomaker:us-west-2:111111111111:robot-application/MyRobotApplication/1551203485821,launchConfig={packageName=hello_world_robot,launchFile=rotate.launch}
--simulation-applicationsapplication=arn:aws:robomaker:us-west-2:111111111111:simulation-application/MySimulationApplication/1551203427605,launchConfig={packageName=hello_world_simulation,launchFile=empty_world.launch}
--tagsRegion=North
Output:
{ "arn": "arn:aws:robomaker:us-west-2:111111111111:simulation-job/sim-w7m68wpr05h8", "status": "Pending", "lastUpdatedAt": 1551213837.0, "failureBehavior": "Fail", "clientRequestToken": "b283ccce-e468-43ee-8642-be76a9d69f15", "maxJobDurationInSeconds": 3600, "simulationTimeMillis": 0, "iamRole": "arn:aws:iam::111111111111:role/MySimulationRole", "robotApplications": [ { "application": "arn:aws:robomaker:us-west-2:111111111111:robot-application/MyRobotApplication/1551203485821", "applicationVersion": "$LATEST", "launchConfig": { "packageName": "hello_world_robot", "launchFile": "rotate.launch" } } ], "simulationApplications": [ { "application": "arn:aws:robomaker:us-west-2:111111111111:simulation-application/MySimulationApplication/1551203427605", "applicationVersion": "$LATEST", "launchConfig": { "packageName": "hello_world_simulation", "launchFile": "empty_world.launch" } } ], "tags": { "Region": "North" } }
-
For API details, see CreateSimulationJob
in Amazon CLI Command Reference.
-
The following code example shows how to use delete-fleet
.
- Amazon CLI
-
To delete a fleet
This example deletes a fleet.
Command:
aws robomaker delete-fleet --fleet
arn:aws:robomaker:us-west-2:111111111111:deployment-fleet/MyFleet/1550771394395
-
For API details, see DeleteFleet
in Amazon CLI Command Reference.
-
The following code example shows how to use delete-robot-application
.
- Amazon CLI
-
To delete a robot application
This example deletes a robot application.
Command:
aws robomaker delete-robot-application --application
arn:aws:robomaker:us-west-2:111111111111:robot-application/MyRobotApplication/1551203485821
-
For API details, see DeleteRobotApplication
in Amazon CLI Command Reference.
-
The following code example shows how to use delete-robot
.
- Amazon CLI
-
To delete a robot
This example deletes a robot.
Command:
aws robomaker delete-robot --robot
arn:aws:robomaker:us-west-2:111111111111:robot/MyRobot/1540829698778
-
For API details, see DeleteRobot
in Amazon CLI Command Reference.
-
The following code example shows how to use delete-simulation-application
.
- Amazon CLI
-
To delete a simulation application
This example deletes a simulation application.
Command:
aws robomaker delete-simulation-application --application
arn:aws:robomaker:us-west-2:111111111111:simulation-application/MySimulationApplication/1551203427605
-
For API details, see DeleteSimulationApplication
in Amazon CLI Command Reference.
-
The following code example shows how to use deregister-robot
.
- Amazon CLI
-
To deregister a robot from a fleet
This example deregisters a robot from a fleet.
Command:
aws robomaker deregister-robot --fleet
arn:aws:robomaker:us-west-2:111111111111:deployment-fleet/MyFleet/1550771358907
--robotarn:aws:robomaker:us-west-2:111111111111:robot/MyRobot/1550772324398
Output:
{ "fleet": "arn:aws:robomaker:us-west-2:111111111111:deployment-fleet/MyFleet/1550771358907", "robot": "arn:aws:robomaker:us-west-2:111111111111:robot/MyRobot/1550772324398" }
-
For API details, see DeregisterRobot
in Amazon CLI Command Reference.
-
The following code example shows how to use describe-deployment-job
.
- Amazon CLI
-
To describe a deployment job
The following
describe-deployment-job
example retrieves the details about the specified deployment job.aws robomaker describe-deployment-job \ --job
arn:aws:robomaker:us-west-2:111111111111:deployment-job/deployment-xl8qssl6pbcn
Output:
{ "arn": "arn:aws:robomaker:us-west-2:111111111111:deployment-job/deployment-xl8qssl6pbcn", "fleet": "arn:aws:robomaker:us-west-2:111111111111:deployment-fleet/Trek/1539894765711", "status": "InProgress", "deploymentConfig": { "concurrentDeploymentPercentage": 20, "failureThresholdPercentage": 25 }, "deploymentApplicationConfigs": [ { "application": "arn:aws:robomaker:us-west-2:111111111111:robot-application/RoboMakerHelloWorldRobot/1546541208251", "applicationVersion": "1", "launchConfig": { "packageName": "hello_world_robot", "launchFile": "rotate.launch" } } ], "createdAt": 1551218369.0, "robotDeploymentSummary": [ { "arn": "arn:aws:robomaker:us-west-2:111111111111:robot/MyRobot/1540834232469", "deploymentStartTime": 1551218376.0, "status": "Deploying", "progressDetail": {} } ], "tags": {} }
-
For API details, see DescribeDeploymentJob
in Amazon CLI Command Reference.
-
The following code example shows how to use describe-fleet
.
- Amazon CLI
-
To describe a fleet
The following
describe-fleet
example retrieves the details for the specified fleet.aws robomaker describe-fleet \ --fleet
arn:aws:robomaker:us-west-2:111111111111:deployment-fleet/MyFleet/1550771358907
Output:
{ "name": "MyFleet", "arn": "arn:aws:robomaker:us-west-2:111111111111:deployment-fleet/MyFleet/1539894765711", "robots": [ { "arn": "arn:aws:robomaker:us-west-2:111111111111:robot/MyRobot/1540834232469", "createdAt": 1540834232.0 }, { "arn": "arn:aws:robomaker:us-west-2:111111111111:robot/MyOtherRobot/1540829698778", "createdAt": 1540829698.0 } ], "createdAt": 1539894765.0, "lastDeploymentStatus": "Succeeded", "lastDeploymentJob": "arn:aws:robomaker:us-west-2:111111111111:deployment-job/deployment-xl8qssl6pbcn", "lastDeploymentTime": 1551218369.0, "tags": {} }
-
For API details, see DescribeFleet
in Amazon CLI Command Reference.
-
The following code example shows how to use describe-robot-application
.
- Amazon CLI
-
To describe a robot application
This example describes a robot application.
Command:
aws robomaker describe-robot-application --application
arn:aws:robomaker:us-west-2:111111111111:robot-application/MyRobotApplication/1551203485821
Output:
{ "arn": "arn:aws:robomaker:us-west-2:111111111111:robot-application/MyRobotApplication/1551203485821", "name": "MyRobotApplication", "version": "$LATEST", "sources": [ { "s3Bucket": "my-bucket", "s3Key": "my-robot-application.tar.gz", "architecture": "X86_64" } ], "robotSoftwareSuite": { "name": "ROS", "version": "Kinetic" }, "revisionId": "e72efe0d-f44f-4333-b604-f6fa5c6bb50b", "lastUpdatedAt": 1551203485.0, "tags": {} }
-
For API details, see DescribeRobotApplication
in Amazon CLI Command Reference.
-
The following code example shows how to use describe-robot
.
- Amazon CLI
-
To describe a robot
This example describes a robot.
Command:
aws robomaker describe-robot --robot
arn:aws:robomaker:us-west-2:111111111111:robot/MyRobot/1550772324398
Output:
{ "arn": "arn:aws:robomaker:us-west-2:111111111111:robot/MyRobot/1550772324398", "name": "MyRobot", "status": "Available", "greengrassGroupId": "0f728a3c-7dbf-4a3e-976d-d16a8360caba", "createdAt": 1550772325.0, "architecture": "ARMHF", "tags": { "Region": "East" } }
-
For API details, see DescribeRobot
in Amazon CLI Command Reference.
-
The following code example shows how to use describe-simulation-application
.
- Amazon CLI
-
To describe a simulation application
This example describes a simulation application.
Command:
aws robomaker describe-simulation-application --application
arn:aws:robomaker:us-west-2:111111111111:simulation-application/MySimulationApplication/1551203427605
Output:
{ "arn": "arn:aws:robomaker:us-west-2:111111111111:simulation-application/MySimulationApplication/1551203427605", "name": "MySimulationApplication", "version": "$LATEST", "sources": [ { "s3Bucket": "my-bucket", "s3Key": "my-simulation-application.tar.gz", "architecture": "X86_64" } ], "simulationSoftwareSuite": { "name": "Gazebo", "version": "7" }, "robotSoftwareSuite": { "name": "ROS", "version": "Kinetic" }, "renderingEngine": { "name": "OGRE", "version": "1.x" }, "revisionId": "783674ab-b7b8-42d9-b01f-9373907987e5", "lastUpdatedAt": 1551203427.0, "tags": {} }
-
For API details, see DescribeSimulationApplication
in Amazon CLI Command Reference.
-
The following code example shows how to use describe-simulation-job
.
- Amazon CLI
-
To describe a simulation job
This example describes a simulation job.
Command:
aws robomaker describe-simulation-job --job
arn:aws:robomaker:us-west-2:111111111111:simulation-job/sim-pql32v7pfjy6
Output:
{ "arn": "arn:aws:robomaker:us-west-2:111111111111:simulation-job/sim-pql32v7pfjy6", "status": "Running", "lastUpdatedAt": 1551219349.0, "failureBehavior": "Continue", "clientRequestToken": "a19ec4b5-e50d-3591-33da-c2e593c60615", "outputLocation": { "s3Bucket": "my-output-bucket", "s3Prefix": "output" }, "maxJobDurationInSeconds": 3600, "simulationTimeMillis": 0, "iamRole": "arn:aws:iam::111111111111:role/MySimulationRole", "robotApplications": [ { "application": "arn:aws:robomaker:us-west-2:111111111111:robot-application/MyRobotApplication/1551206341136", "applicationVersion": "$LATEST", "launchConfig": { "packageName": "hello_world_robot", "launchFile": "rotate.launch" } } ], "simulationApplications": [ { "application": "arn:aws:robomaker:us-west-2:111111111111:simulation-application/MySimulationApplication/1551206347967", "applicationVersion": "$LATEST", "launchConfig": { "packageName": "hello_world_simulation", "launchFile": "empty_world.launch" } } ], "tags": {} }
-
For API details, see DescribeSimulationJob
in Amazon CLI Command Reference.
-
The following code example shows how to use list-deployment-jobs
.
- Amazon CLI
-
To list deployment jobs
The following
list-deployment-jobs
example retrieves a list of deployment jobs.aws robomaker list-deployment-jobs
Output:
{ "deploymentJobs": [ { "arn": "arn:aws:robomaker:us-west-2:111111111111:deployment-job/sim-6293szzm56rv", "fleet": "arn:aws:robomaker:us-west-2:111111111111:deployment-fleet/MyFleet/1539894765711", "status": "InProgress", "deploymentApplicationConfigs": [ { "application": "arn:aws:robomaker:us-west-2:111111111111:robot-application/HelloWorldRobot/1546537110575", "applicationVersion": "1", "launchConfig": { "packageName": "hello_world_robot", "launchFile": "rotate.launch", "environmentVariables": { "ENVIRONMENT": "Desert" } } } ], "deploymentConfig": { "concurrentDeploymentPercentage": 20, "failureThresholdPercentage": 25 }, "createdAt": 1550689373.0 }, { "arn": "arn:aws:robomaker:us-west-2:111111111111:deployment-job/deployment-4w4g69p25zdb", "fleet": "arn:aws:robomaker:us-west-2:111111111111:deployment-fleet/MyFleet/1539894765711", "status": "Pending", "deploymentApplicationConfigs": [ { "application": "arn:aws:robomaker:us-west-2:111111111111:robot-application/AWSRoboMakerHelloWorld-1544562726923_YGHM_sh5M/1544562822877", "applicationVersion": "1", "launchConfig": { "packageName": "fail", "launchFile": "fail" } } ], "deploymentConfig": { "concurrentDeploymentPercentage": 20, "failureThresholdPercentage": 25 }, "failureReason": "", "failureCode": "", "createdAt": 1544719763.0 } ] }
-
For API details, see ListDeploymentJobs
in Amazon CLI Command Reference.
-
The following code example shows how to use list-fleets
.
- Amazon CLI
-
To list fleets
This example lists fleets. A maximum of 20 fleets will be returned.
Command:
aws robomaker list-fleets --max-items
20
Output:
{ "fleetDetails": [ { "name": "Trek", "arn": "arn:aws:robomaker:us-west-2:111111111111:deployment-fleet/MyFleet/1539894765711", "createdAt": 1539894765.0, "lastDeploymentStatus": "Failed", "lastDeploymentJob": "arn:aws:robomaker:us-west-2:111111111111:deployment-job/deployment-4w4g69p25zdb", "lastDeploymentTime": 1544719763.0 } ] }
-
For API details, see ListFleets
in Amazon CLI Command Reference.
-
The following code example shows how to use list-robot-applications
.
- Amazon CLI
-
To list robot applications
This example lists robot applications. Results are limited to 20 robot applications.
Command:
aws robomaker list-robot-applications --max-results
20
Output:
{ "robotApplicationSummaries": [ { "name": "MyRobot", "arn": "arn:aws:robomaker:us-west-2:111111111111:robot-application/MyRobot/1546537110575", "version": "$LATEST", "lastUpdatedAt": 1546540372.0 }, { "name": "AnotherRobot", "arn": "arn:aws:robomaker:us-west-2:111111111111:robot-application/AnotherRobot/1546541208251", "version": "$LATEST", "lastUpdatedAt": 1546541208.0 }, { "name": "MySuperRobot", "arn": "arn:aws:robomaker:us-west-2:111111111111:robot-application/MySuperRobot/1547663517377", "version": "$LATEST", "lastUpdatedAt": 1547663517.0 } ] }
-
For API details, see ListRobotApplications
in Amazon CLI Command Reference.
-
The following code example shows how to use list-robots
.
- Amazon CLI
-
To list robots
This example lists robots. A maximum of 20 robots will be returned.
Command:
aws robomaker list-robots --max-results
20
Output:
{ "robots": [ { "arn": "arn:aws:robomaker:us-west-2:111111111111:robot/Robot100/1544035373264", "name": "Robot100", "status": "Available", "createdAt": 1544035373.0, "architecture": "X86_64" }, { "arn": "arn:aws:robomaker:us-west-2:111111111111:robot/Robot101/1542146976587", "name": "Robot101", "status": "Available", "createdAt": 1542146976.0, "architecture": "X86_64" }, { "arn": "arn:aws:robomaker:us-west-2:111111111111:robot/Robot102/1540834232469", "name": "Robot102", "fleetArn": "arn:aws:robomaker:us-west-2:111111111111:deployment-fleet/Trek/1539894765711", "status": "Available", "createdAt": 1540834232.0, "architecture": "X86_64", "lastDeploymentJob": "arn:aws:robomaker:us-west-2:111111111111:deployment-job/deployment-jb007b75gl5f", "lastDeploymentTime": 1550689533.0 }, { "arn": "arn:aws:robomaker:us-west-2:111111111111:robot/MyRobot/1540829698778", "name": "MyRobot", "status": "Registered", "createdAt": 1540829698.0, "architecture": "X86_64" } ] }
-
For API details, see ListRobots
in Amazon CLI Command Reference.
-
The following code example shows how to use list-simulation-applications
.
- Amazon CLI
-
To list simulation applications
This example lists simulation applications. A maximum of 20 simulation applications will be returned.
Command:
aws robomaker list-simulation-applications --max-results
20
Output:
{ "simulationApplicationSummaries": [ { "name": "AWSRoboMakerObjectTracker-1548959046124_NPvyfcatq", "arn": "arn:aws:robomaker:us-west-2:111111111111:simulation-application/AWSRoboMakerObjectTracker-1548959046124_NPvyfcatq/1548959170096", "version": "$LATEST", "lastUpdatedAt": 1548959170.0 }, { "name": "RoboMakerHelloWorldSimulation", "arn": "arn:aws:robomaker:us-west-2:111111111111:simulation-application/RoboMakerHelloWorldSimulation/1546541198985", "version": "$LATEST", "lastUpdatedAt": 1546541198.0 }, { "name": "RoboMakerObjectTrackerSimulation", "arn": "arn:aws:robomaker:us-west-2:111111111111:simulation-application/RoboMakerObjectTrackerSimulation/1545846795615", "version": "$LATEST", "lastUpdatedAt": 1545847405.0 }, { "name": "RoboMakerVoiceInteractionSimulation", "arn": "arn:aws:robomaker:us-west-2:111111111111:simulation-application/RoboMakerVoiceInteractionSimulation/1546537100507", "version": "$LATEST", "lastUpdatedAt": 1546540352.0 }, { "name": "AWSRoboMakerCloudWatch-1547663411642_0LIt6D1h6", "arn": "arn:aws:robomaker:us-west-2:111111111111:simulation-application/AWSRoboMakerCloudWatch-1547663411642_0LIt6D1h6/1547663521470", "version": "$LATEST", "lastUpdatedAt": 1547663521.0 }, { "name": "AWSRoboMakerDeepRacer-1545848257672_1YZCaieQ-", "arn": "arn:aws:robomaker:us-west-2:111111111111:simulation-application/AWSRoboMakerDeepRacer-1545848257672_1YZCaieQ-/1545848370525", "version": "$LATEST", "lastUpdatedAt": 1545848370.0 } ] }
-
For API details, see ListSimulationApplications
in Amazon CLI Command Reference.
-
The following code example shows how to use list-simulation-jobs
.
- Amazon CLI
-
To list simulation jobs
This example lists simulation jobs.
Command:
aws robomaker list-simulation-jobs
Output:
{ "simulationJobSummaries": [ { "arn": "arn:aws:robomaker:us-west-2:111111111111:simulation-job/sim-66bbb3gpxm8x", "lastUpdatedAt": 1548959178.0, "status": "Completed", "simulationApplicationNames": [ "AWSRoboMakerObjectTracker-1548959046124_NPvyfcatq" ], "robotApplicationNames": [ null ] }, { "arn": "arn:aws:robomaker:us-west-2:111111111111:simulation-job/sim-b27c4rkrtzcw", "lastUpdatedAt": 1543514088.0, "status": "Canceled", "simulationApplicationNames": [ "AWSRoboMakerPersonDetection-1543513948280_T8rHW2_lu" ], "robotApplicationNames": [ "AWSRoboMakerPersonDetection-1543513948280_EYaMT0mYb" ] }, { "arn": "arn:aws:robomaker:us-west-2:111111111111:simulation-job/sim-51vxjbzy4q8t", "lastUpdatedAt": 1543508858.0, "status": "Canceled", "simulationApplicationNames": [ "AWSRoboMakerCloudWatch-1543504747391_lFF9ZQyx6" ], "robotApplicationNames": [ "AWSRoboMakerCloudWatch-1543504747391_axbYa3S3K" ] }, { "arn": "arn:aws:robomaker:us-west-2:111111111111:simulation-job/sim-kgf1fqxflqbx", "lastUpdatedAt": 1543504862.0, "status": "Completed", "simulationApplicationNames": [ "AWSRoboMakerCloudWatch-1543504747391_lFF9ZQyx6" ], "robotApplicationNames": [ "AWSRoboMakerCloudWatch-1543504747391_axbYa3S3K" ] }, { "arn": "arn:aws:robomaker:us-west-2:111111111111:simulation-job/sim-vw8lvh061nqt", "lastUpdatedAt": 1543441430.0, "status": "Completed", "simulationApplicationNames": [ "AWSRoboMakerHelloWorld-1543437372341__yb_Jg96l" ], "robotApplicationNames": [ "AWSRoboMakerHelloWorld-1543437372341_lNbmKHvs9" ] }, { "arn": "arn:aws:robomaker:us-west-2:111111111111:simulation-job/sim-txy5ypxmhz84", "lastUpdatedAt": 1543437488.0, "status": "Completed", "simulationApplicationNames": [ "AWSRoboMakerHelloWorld-1543437372341__yb_Jg96l" ], "robotApplicationNames": [ "AWSRoboMakerHelloWorld-1543437372341_lNbmKHvs9" ] } ] }
-
For API details, see ListSimulationJobs
in Amazon CLI Command Reference.
-
The following code example shows how to use list-tags-for-resource
.
- Amazon CLI
-
To list tags for a resource
This example lists tags for an Amazon RoboMaker resource.
Command:
aws robomaker list-tags-for-resource --resource-arn
"arn:aws:robomaker:us-west-2:111111111111:robot/Robby_the_Robot/1544035373264"
Output:
{ "tags": { "Region": "North", "Stage": "Initial" } }
-
For API details, see ListTagsForResource
in Amazon CLI Command Reference.
-
The following code example shows how to use register-robot
.
- Amazon CLI
-
To register a robot
This example registers a robot to a fleet.
Command:
aws robomaker register-robot --fleet
arn:aws:robomaker:us-west-2:111111111111:deployment-fleet/MyFleet/1550771358907
--robotarn:aws:robomaker:us-west-2:111111111111:robot/MyRobot/1550772324398
Output:
{ "fleet": "arn:aws:robomaker:us-west-2:111111111111:deployment-fleet/MyFleet/1550771358907", "robot": "arn:aws:robomaker:us-west-2:111111111111:robot/MyRobot/1550772324398" }
-
For API details, see RegisterRobot
in Amazon CLI Command Reference.
-
The following code example shows how to use restart-simulation-job
.
- Amazon CLI
-
To restart a simulation
This example restarts a simulation.
Command:
aws robomaker restart-simulation-job --job
arn:aws:robomaker:us-west-2:111111111111:simulation-job/sim-t6rdgt70mftr
-
For API details, see RestartSimulationJob
in Amazon CLI Command Reference.
-
The following code example shows how to use sync-deployment-job
.
- Amazon CLI
-
To sync a deployment job
This example synchronizes a deployment job.
Command:
aws robomaker sync-deployment-job --fleet
arn:aws:robomaker:us-west-2:111111111111:deployment-fleet/Trek/1539894765711
Output:
{ "arn": "arn:aws:robomaker:us-west-2:111111111111:deployment-job/deployment-09ccxs3tlfms", "fleet": "arn:aws:robomaker:us-west-2:111111111111:deployment-fleet/MyFleet/1539894765711", "status": "Pending", "deploymentConfig": { "concurrentDeploymentPercentage": 20, "failureThresholdPercentage": 25 }, "deploymentApplicationConfigs": [ { "application": "arn:aws:robomaker:us-west-2:111111111111:robot-application/MyRobotApplication/1546541208251", "applicationVersion": "1", "launchConfig": { "packageName": "hello_world_simulation", "launchFile": "empty_world.launch" } } ], "createdAt": 1551286954.0 }
-
For API details, see SyncDeploymentJob
in Amazon CLI Command Reference.
-
The following code example shows how to use tag-resource
.
- Amazon CLI
-
To tag a resource
This example tags a resource. It attaches two tags: Region and Stage.
Command:
aws robomaker tag-resource --resource-arn
"arn:aws:robomaker:us-west-2:111111111111:robot/MyRobot/1544035373264"
--tagsRegion=North,Stage=Initial
-
For API details, see TagResource
in Amazon CLI Command Reference.
-
The following code example shows how to use untag-resource
.
- Amazon CLI
-
To untag a resource
This example removes a tag from a resource. It removes the Region tag.
Command:
aws robomaker untag-resource --resource-arn
"arn:aws:robomaker:us-west-2:111111111111:robot/MyRobot/1544035373264"
--tag-keysRegion
-
For API details, see UntagResource
in Amazon CLI Command Reference.
-
The following code example shows how to use update-robot-application
.
- Amazon CLI
-
To update a robot application
This example updates a robot application.
Command:
aws robomaker update-robot-application --application
arn:aws:robomaker:us-west-2:111111111111:robot-application/MyRobotApplication/1551203485821
--sourcess3Bucket=my-bucket,s3Key=my-robot-application.tar.gz,architecture=X86_64
--robot-software-suitename=ROS,version=Kinetic
Output:
{ "arn": "arn:aws:robomaker:us-west-2:111111111111:robot-application/MyRobotApplication/1551203485821", "name": "MyRobotApplication", "version": "$LATEST", "sources": [ { "s3Bucket": "my-bucket", "s3Key": "my-robot-application.tar.gz", "architecture": "X86_64" } ], "robotSoftwareSuite": { "name": "ROS", "version": "Kinetic" }, "lastUpdatedAt": 1551287993.0, "revisionId": "20b5e331-24fd-4504-8b8c-531afe5f4c94" }
-
For API details, see UpdateRobotApplication
in Amazon CLI Command Reference.
-
The following code example shows how to use update-simulation-application
.
- Amazon CLI
-
To update a simulation application
This example updates a simulation application.
Command:
aws robomaker update-simulation-application --application
arn:aws:robomaker:us-west-2:111111111111:simulation-application/MySimulationApplication/1551203427605
--sourcess3Bucket=my-bucket,s3Key=my-simulation-application.tar.gz,architecture=X86_64
--robot-software-suitename=ROS,version=Kinetic
--simulation-software-suitename=Gazebo,version=7
--rendering-enginename=OGRE,version=1.x
Output:
{ "arn": "arn:aws:robomaker:us-west-2:111111111111:simulation-application/MySimulationApplication/1551203427605", "name": "MySimulationApplication", "version": "$LATEST", "sources": [ { "s3Bucket": "my-bucket", "s3Key": "my-simulation-application.tar.gz", "architecture": "X86_64" } ], "simulationSoftwareSuite": { "name": "Gazebo", "version": "7" }, "robotSoftwareSuite": { "name": "ROS", "version": "Kinetic" }, "renderingEngine": { "name": "OGRE", "version": "1.x" }, "lastUpdatedAt": 1551289361.0, "revisionId": "4a22cb5d-93c5-4cef-9311-52bdd119b79e" }
-
For API details, see UpdateSimulationApplication
in Amazon CLI Command Reference.
-