aws ssm send-command
Runs commands on one or more managed nodes. AWS CLI reference
18 options Its page in the AWS CLI reference
Options
--alarm-configurationThe CloudWatch alarm you want to apply to your command.--cloud-watch-output-configEnables Amazon Web Services Systems Manager to send Run Command output to Amazon CloudWatch Logs.--commentUser-specified information about the command, such as a brief description of what the command should do.--document-hash-typeSha256 or Sha1.--document-hashThe Sha256 or Sha1 hash created by the system when the document was created.--document-nameThe name of the Amazon Web Services Systems Manager document (SSM document) to run.--document-versionThe SSM document version to use in the request.--instance-idsThe IDs of the managed nodes where the command should run.--max-concurrency(Optional) The maximum number of managed nodes that are allowed to run the command at the same time.--max-errorsThe maximum number of errors allowed without the command failing.--notification-configConfigurations for sending notifications.--output-s3-bucket-nameThe name of the S3 bucket where command execution responses should be stored.--output-s3-key-prefixThe directory structure within the S3 bucket where the responses should be stored.--output-s3-region(Deprecated) You can no longer specify this parameter.--parametersThe required and optional parameters specified in the document being run.--service-role-arnThe ARN of the Identity and Access Management (IAM) service role to use to publish Amazon Simple Notification Service (Amazon SNS) notifications for Run Command commands.--targetsAn array of search criteria that targets managed nodes using a Key,Value combination that you specify.--timeout-secondsIf this time is reached and the command hasn't already started running, it won't run.