Questions tagged [aws-cli]

The AWS Command Line Interface (CLI) is a unified tool to manage AWS services.

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.

Questions involving an alternate implementation for Windows PowerShell, AWS Tools for PowerShell, should be tagged with instead.

Resources

4345 questions
1
vote
1 answer

Error when trying to AWS command line associate alias

I'm trying to associate an aws alias to a distribution, I currently have 2 distributions: disbtA with an alternate domain www.example.com. disbtB no alternate domain setup lets give it an id of 123 aws cloudfront associate-alias…
1
vote
1 answer

React javascript "Error: Credential is missing" when connecting to DynamoDBClient

I'm trying to connect to my dynamoDB table from inside a React js app. I have AWS credentials set up locally. When I run my app, I get the following error on Chrome Devtools: "Error: Credential is missing". Oddly, if I run the AWS example found…
IndieJune
  • 148
  • 7
1
vote
1 answer

S3 UploadPartCopy: Invalid resource in copy source ARN

I'd like to use UploadPartCopy to copy a large object from one region to another region (different accounts, no access points) AWS cli returns following error: ~ aws s3api upload-part-copy \ --bucket my-objects \ --key "my-bucket/temp1.png"…
Deqing
  • 14,098
  • 15
  • 84
  • 131
1
vote
1 answer

Trying to upload images to my AWS S3 bucket using AWS-shell

The following is my python script to upload the code. s3 = boto3.resource('s3') # Get list of objects for indexing images=[('Micheal_Jordan.jpg','Micheal Jordan'), ('Wayne_Rooney.jpg','Wayne Rooney') ] # Iterate through list to upload…
Archish J
  • 19
  • 2
1
vote
1 answer

How to check if AWS ECR image exists by URI?

How can I check if an image exists in ECR using AWS CLI given its URI like: xxxxxxxxxxxx.dkr.ecr.us-west-2.amazonaws.com/ai-api:2022-08-25T23-10-58-main ? I've tried describe-images with parameters --image-ids, but it can only accept --image-ids…
1
vote
1 answer

How to run lambda with CLI, orLambda python command that can call the command

I am trying to create an AWS Lambda function that creates a file and then uploads it into S3. The AWS CLI commands would be: aws ec2 describe-network-interfaces --output table > report.csv aws s3 cp report.csv s3://testec2lambd Is there anyway that…
Mohamad
  • 19
  • 1
1
vote
0 answers

AWS CLI: "'more' is not recognized as an internal or external command"

I am trying to list all of the EC2 instances running on in my AWS account. I am doing this through the AWS CLI on Windows 10. However, the command is giving an error: > aws --version aws-cli/2.7.28 Python/3.9.11 Windows/10 ee/AMD64 prompt/off > aws…
1
vote
0 answers

Using AWS CLI, how do I update a Glue column's data type?

I know I can easily use the AWS Glue console to do this, but I am just trying to do it through the AWS CLI instead. So I have an my_table_name table with an id column that is currently type string. However, I would like to change the type to…
David
  • 11
  • 2
1
vote
1 answer

Terraform external data error calling aws cli

trying to run a aws cli call as a terraform external data but getting a error for unmarshal string Terraform: data "external" "cognito" { program = ["sh", "-c", "aws cognito-idp list-user-pool-clients --user-pool-id eu-west-xxx | jq…
Staggerlee011
  • 847
  • 2
  • 13
  • 23
1
vote
2 answers

AWS CLI Error - "Expected: '=', received: ''' for input:"

Trying to add mapping for an integration to pass the websocket connectionId to my http backend. Below command works fine in cloud shell but fails in AWS CLI on Windows. aws apigatewayv2 update-integration --integration-id foobar --api-id fooapi…
Stubborn
  • 290
  • 2
  • 17
1
vote
1 answer

AWS CLI ecs run-task CannotPullContainerError: inspect image has been retried 5 time(s): failed to resolve ref

I'm trying to move from the Console to the CLI. I have an ECS Cluster and a Task Definition. From the console, I can run a task WITHOUT any issue. The task comes green and I can use the public IP to access my service. Now, I'd like to do the same…
Peter
  • 2,004
  • 2
  • 24
  • 57
1
vote
0 answers

$ characters get removed from json

I am currently improving the deployment process of our service. In particular, I want to update the revision stored in the opsworks CustomJson stack property as soon as we have deployed a new one. For this I created a new task in our rakefile. Here…
zetain
  • 361
  • 4
  • 15
1
vote
1 answer

aws cli hangs when in background

I have a command which runs pretty well when I just run it: time aws sqs send-message --queue-url https://my_sqs_url --message-body "$(date "+%H:%M:%S_%N")" { "MD5OfMessageBody": "a19f365993d45d4885f7f15bce8aac97", "MessageId":…
Putnik
  • 5,925
  • 7
  • 38
  • 58
1
vote
1 answer

AWS CDK: Use Previous Build for Deployment

Is there a way to deploy a previous build of an AWS app through the CLI? Does the CDK have this kind of version control? (I am using the CDK)
1
vote
1 answer

Not authorized to perform: arsenal:RegisterOnPremisesAgent - no identity-based policy allows the arsenal:RegisterOnPremisesAgent

After installing the AWS Application Discovery Agent on a Ubuntu Server the agent daemon logs are failing with the following message: 2022-08-20 03:23:54 info [0xf71a4d88] Attempting registration for on premises agent with agentId: and…
Evandro Pomatti
  • 13,341
  • 16
  • 97
  • 165
1 2 3
99
100