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
27
votes
10 answers

PyCharm intellisense for boto3

having problems seeing full intellisense (code completion) options in PyCharm. working with python 3.4 on Windows. the suggests are partially working: import boto3 s = boto3.Session() (boto3. will bring up list of methods/params of object…
Alex C
  • 503
  • 1
  • 4
  • 10
27
votes
4 answers

install redis on aws micro instance

I need to install redis in amazon cloud. I need it as a part of my npm module kue (deployment). Can anyone link me step by step tutorial or explain how to do it, considering the fact that I'm not good to bad with linux and administration.
user732456
  • 2,638
  • 2
  • 35
  • 49
26
votes
8 answers

Not authorized to perform sts:AssumeRoleWithWebIdentity- 403

I have been trying to run an external-dns pod using the guide provided by k8s-sig group. I have followed every step of the guide, and getting the below error. time="2021-02-27T13:27:20Z" level=error msg="records retrieval failed: failed to list…
CK5
  • 1,055
  • 3
  • 16
  • 29
26
votes
6 answers

aws logs: The specified log group does not exist

I'm trying to grab logs from Cloudwatch with this CLI usage: cat cli-get-log-events.json { "logGroupName": "/aws/lambda/my-group", "logStreamName": "2019/03/30/[$LATEST]dec1626296d84819be42f2ef615f292e", "startTime": 1553977650000,…
cyrf
  • 5,127
  • 6
  • 25
  • 42
26
votes
1 answer

How to use AWS CLI with Digital Ocean Spaces?

How to use AWS CLI with Digital Ocean Spaces? Is it possible? I tried to add my key id and secret to .aws/credentials but I got: An error occurred (InvalidAccessKeyId) when calling the ListBuckets operation: The AWS Access Key Id you provided…
paul
  • 569
  • 9
  • 13
26
votes
3 answers

AWS Lambda Logs using AWSCLI: How can I access Lambda logs using AWSCLI?

I was trying to work with AWS Lambda using the awscli on an ubuntu ec2 instance, and I do not have access to the aws console. Note that I am not using serverless or zapper, I directly zip my main.py file along with the dependency files as mentioned…
skybunk
  • 833
  • 2
  • 12
  • 17
26
votes
5 answers

aws lambda list-functions filter out just function names?

I just want to get back a list of function names. Ideally I want to get all functions (just their name) starting with "some-prefix*". Can I do this with the cli? Really want this as a cli command if possible (I want to avoid python or another sdk).…
red888
  • 27,709
  • 55
  • 204
  • 392
26
votes
1 answer

uploading all files of a certain extension type

I'm trying to upload all files of type .flv to an S3 bucket using the AWS CLI from a Windows server 2008 command line. I do this: aws s3 sync . s3://MyBucket --exclude '*.png' And it begins uploading .png files instead. I'm trying to follow the…
user773737
26
votes
6 answers

ec2-describe-instance-status Client.InvalidInstanceID.NotFound but I KNOW instance exists

I have setup a few of the amazon AWS CLI tools (EC2, Auto Scaling, MOnitoring and ELB). The tools are setup correctly and work perfectly. My environment vars are all set, the relevant ones to this Q being: export EC2_REGION=eu-west-1 export…
BoomShaka
  • 1,571
  • 7
  • 27
  • 40
25
votes
3 answers

aws lambda: invoke with payload from cli

I'm trying to invoke my lambda using aws cli: $ aws lambda invoke \ --function-name soc-update-dynamodb-java \ --invocation-type Event \ --payload file://invoke-payload.json \ response.json However, I'm getting this message: An…
Jordi
  • 20,868
  • 39
  • 149
  • 333
25
votes
9 answers

docker login: error storing credentials `The stub received bad data.`

First, I installed AWS-CLI and I already used "AWS configure" to set up my secret key and I also used "Docker login" command to log in and I got success and when I typed Get-ECRLoginCommand. It works and returns the result for me. But when I try to…
25
votes
1 answer

The API with ID does not include a resource with path /* having an integration LAMBDA on the ANY method

.net core serverless web api I am trying to do proxy integration with lambda and api gateway, everything is working fine with aws console but i am facing issues with aws cli commands i tried integrating with cli but the lambda is not properly…
25
votes
5 answers

Partial credentials found in env, missing: AWS_SECRET_ACCESS_KEY

Just configured the AWS CLI on my computer with my AWS Access and Secret Key. When I try to use the AWS CLI though it gives me this error. Partial credentials found in env, missing: AWS_SECRET_ACCESS_KEY I went to ~/.aws/config, and sure enough…
TJB
  • 3,706
  • 9
  • 51
  • 102
25
votes
3 answers

How to copy a file with spaces in its file name from one bucket to the other using AWS CLI (Dos)

I am trying to copy a file by the same My CV 2017.pdf from one AWS bucket to the other using the AWS command line. But I am getting error doing that. I tried using My\ Cv\ 2017.pdf and 'My CV 2017.pdf', both did not work.
Krishna Menon
  • 371
  • 1
  • 3
  • 7
25
votes
2 answers

AWS S3 Sync very slow when copying to large directories

When syncing data to an empty directory in S3 using AWS-CLI, it's almost instant. However, when syncing to a large directory (several million folders), it takes a very long time before even starting to upload / sync the files. Is there an…
King Dedede
  • 970
  • 1
  • 12
  • 28