Downloading an entire S3 bucket?

I noticed that there doesn't seem to be an option to download an entire S3 bucket from the AWS Management Console. Is there an easy way to grab everything in one of my buckets? I was thinking...

Can't access Glacier using AWS CLI

I'm trying to access AWS Glacier (from the command line on Ubuntu 14.04) using something like: aws glacier list-vaults - rather than aws glacier list-vaults --account-id 123456789 The...

passing access and secret key aws cli

I am trying to embed access and secret key along with aws cli. e.g. aws ec2 describe-instances --aws-access-key <access_key> --aws-secret-key <secret_key> Also tried with -o and -w options for...

SSL CERTIFICATE_VERIFY_FAILED in aws cli

I installed [AWS CLI][1] on the Windows server 2007 32bit. aws --version aws-cli/1.8.8 Python/2.7.9 Windows/2008Server I configure aws cli using keys Once I run below command to test AWS S3, I...

Getting Outputs from aws cloudformation describe-stacks

I am using the below to get the stack information I want via AWS Cli: aws cloudformation --region ap-southeast-2 describe-stacks --stack-name mystack It's returning result OK: { "Stacks": [ ...

How to delete multiple files in S3 bucket with AWS CLI

Suppose I have an S3 bucket named x.y.z In this bucket, I have hundreds of files. But I only want to delete 2 files named purple.gif and worksheet.xlsx Can I do this from the AWS command line tool...

Localstack AWS endpoint in application

I would like to run the functional tests for my application which tries to publish a message to AWS SNS. I tried LocalStack and found that it does everything I need to mock and publish messages...

How can I find the arn of an api gateway stage?

I am trying to use awscli to add tags to my api gateway stage https://docs.aws.amazon.com/cli/latest/reference/apigateway/tag-resource.html I am required to supply the --resource-arn for the...

AWS CLI - how to generate security tokens for a cognito user

Ultimately, I need to generate a AccessKeyId, SecirutyKey and SessionToken for a user in a Cognito User Pool so I can test a lambda function as a cognito user using Postman. So far, I've spent 2...

npm install hangs on loadIdealTree:loadAllDepsIntoIdealTree: sill install loadIdealTree

I have a Node.js application. When I try to run npm install it hangs with this: loadIdealTree:loadAllDepsIntoIdealTree: sill install loadIdealTree npm install --verbose gives me a little extra...

"Could not find the required '{Assemly}.deps.json'. This file should be present at the root of the deployment package

I have .Net Core2.1 code that I want to deploy to AWS Lambda. I don't want to use Visual studio to publish my code to Lambda I want to publish it using .net core cli. I ran command with dotnet...

AWS RDS download full log file (access & error)

I am unable to download complete logs using AWS CLI for an postgres RDS instance - aws rds download-db-log-file-portion \ --db-instance-identifier $INSTANCE_ID \ --starting-token 0...

SSL validation failed for https://s3.zoneame.amazonaws.com/ [SSL: CERTIFICATE_ VERIFY_FAILED] certificate verify failed (_ssl.c:749)

When I run the command aws s3 ls I'm getting this error: SSL validation failed for https://s3.zonename.amazonaws.com/ [SSL: CERTIFICATE_ VERIFY_FAILED] certificate verify failed (_ssl.c:749) It...

Unable to upload artifact None referenced by CodeUri parameter of HelloWorldFunction resource

I'm following this tutorial to learn how to use SAM. Here's the code I have: template.yml: AWSTemplateFormatVersion : '2010-09-09' Transform: AWS::Serverless-2016-10-31 Resources: ...

How to resolve using AsyncStorage (deprecated) warning? Using the community (correct) library

I am using @react-native-community/async-storage and keep receiving this warning: Warning: Async Storage has been extracted from react-native core and will be removed in a future release. It can...

GitHub Action - AWS CLI

Recently the following GitHub Action has been deprecated with a deletion date already established at end of month (2019-12-31). The issue is, there is no "official" alternative yet (should be...

Terraform Cloud / Enterprise - How to use AWS Assume Roles

I would like to use AWS Assume Roles, with Terraform Cloud / Enterprise In Terraform Open Source, you would typically just do an Assume Role, leveraging the .aws/Credential Profile on the CLI,...

Missing aws-exports.js always when building AWS Amplify React app with Amplify integrations

my React app uses GraphQL API, Storage, Auth, Functions, Hosting - all the fun stuff - so i must have an aws-exports.js file available. Amplify React Front end with Amplify Backend resources. Repo...

Start a Kinesis data analytics application with cloudformation

Is there a way to start a kinesis data analytics application via cloudformation? In these instructions, under the Start the Application section, there are instructions for how to start a Kinesis...

Cannot find file './aws-exports' in './src'

I'm on the third module of this AWS tutorial to build a React app with AWS, Amplify and GraphQL but the build keeps breaking. When I ran amplify push --y the CLI generated ./src/aws-exports.js and...

AWS CLI command to execute the API Gateway

I am trying to execute API gateway using AWS CLI in EC2 instance. I did not find any command in AWS CLI documentation. Has anyone used CLI before to execute API gateway endpoint? Thank

Failed to connect ElastiCache from NodeJS server on Elastic Beanstalk

We have a nodeJS server with express on AWS Elastic Beanstalk and we are trying to connect it with the Elasticache(Redis clustered) from the NodeJS but getting this error Redis Client Connection...

AWS System Manager start session: An error occurred (TargetNotConnected) when calling the StartSession operation: <instance_id> is not connected

Problem: When I try to locally connect to a running EC2 instance using the AWS System Session Manager CLI command: aws ssm start-session --target i-123456 I get the error: An error occurred...

Why is the aws cli not found on amazonlinux2 ami?

The AmazonLinux2 AMI I am using for my Docker hosts does not appear to have the AWS CLI installed. The log has an error from the user data script that tries to run an aws...

AWS SDK Missing credentials in config

Error: Possible Unhandled Promise Rejection (id: 0): CredentialsError: Missing credentials in config, if using AWS_CONFIG_FILE, set AWS_SDK_LOAD_CONFIG=1 I am using "aws-sdk": "^2.918.0" in a...

Docker compose job in ECS context fails to fetch AWS secret to retrieve image from DockerHub

I'm trying to use docker compose to create and launch a small ECS-Fargate cluster with just 2 containers. One of the container images is located in my private repository at DockerHub. However,...

How to add requests package in aws lambda python framework using aws cli?

I am trying to add the requests package using the command pipenv install requests. I see that it creates a Pipfile and Piplock. But when I try to execute the lambda function written in python, It...

AWS CLI not working because of unsupported Python version

I'm trying to download the AWS CLI tools onto my mac. The error message is pretty clear Unsupported Python version detected: Python 2.7 To continue using this installer you must use Python 3.6 or...

Upgrading Elastic Beanstalk environment from AWS Linux 1 to AWS Linux 2

I have an Elastic Beanstalk environment running Python 3.6 on AWS Linux 1, and I want to switch it to Python 3.8 on Amazon Linux 2. I know that I can upgrade environments using the aws CLI...

How can I get output from boto3 ecs execute_command?

I have an ECS task running on Fargate on which I want to run a command in boto3 and get back the output. I can do so in the awscli just fine. ➜ aws ecs execute-command --cluster cluster1 \ ...