Questions tagged [aws-cli]

aws help

The AWS Command Line Interface (CLI) is a unified tool to manage AWS services. Multiple AWS services can be controlled via the command line and various actions can be automated through this tool.

51 questions
6
votes
2 answers

How to avoid output being truncated when running AWS SSM command?

I've got the following AWS CLI commands to run the PowerShell's Invoke-WebRequest command: instanceId=i-0xyz # Change this. cmdId=$(aws ssm send-command --instance-ids "$instanceId" --document-name "AWS-RunPowerShellScript" --query…
kenorb
  • 7,841
  • 12
  • 40
  • 77
1
vote
0 answers

aws cli shorthand json syntax

I'm trying to update the domain contacts for a couple of 100 domains using AWS cli with the shorthand syntax. This works fine for .com domains: aws route53domains update-domain-contact --domain-name my domain.co.uk --admin-contact…
Sean C
  • 11
  • 3
0
votes
1 answer

How to send sms to a phone number using aws sns cli?

I am using the following command. Getting Authorization error. aws sns publish --phone-number +91XXXXXXXXXX --message hello An error occurred (AuthorizationError) when calling the Publish operation: User: arn:aws:XXX::XXXXXXXXXXXX:user/ABC-DEF-SNS…
0
votes
1 answer

Was AWS Secrets Manager removed from AWS CLI commands?

If I enter: aws secretsmanager get-secret-value --secret-id my secret id It says invalid choice. aws: error: argument command: Invalid choice, valid choices are: and doesn't list secretsmanager as one of the choices or any variation on…
doug
  • 523
  • 2
  • 6
  • 14