Questions tagged [aws-cli]

aws-cli is the Amazon Web Services Command Line Interface

aws-cli is an open source project that provides a command line interface to the Amazon Web Services APIs.

The project is hosted on GitHub: https://github.com/aws/aws-cli

380 questions
1
vote
2 answers

Why is AWS CodeDeploy giving me an AccessDeniedException from an account with administrator privileges?

I'm trying to create a deployment group in AWS from the CLI and I'm getting the following error: An error occurred (AccessDeniedException) when calling the CreateDeploymentGroup operation: User: is not authorized to perform: iam:PassRole…
jeltz
  • 11
  • 1
  • 3
1
vote
1 answer

AWS CloudFormation - Calling CLI from Init can't get credentials

I'm using a CloudFormation template to boot up a custom windows AMI, which needs to retrieve some code from an S3 bucket and execute it, once it boots up. After quickly being able to do it manually using the AWS CLI (s3 sync) I've been struggling to…
1
vote
1 answer

AWS Tools for Windows PowerShell equivalent for "Launch More Like This"

I am using the AWS Tools for Windows PowerShell to write a script. Part of what I would like to do is create a new instance using an existing instance as a template. I know I could just pull the metadata from the instance that I want to use as a…
user409449
  • 41
  • 1
1
vote
2 answers

AWS EC2 Describe Instances - Filtering by Root device

Hoping you can help with this query. Hopefully the answer should allow me to construct better queries down the line. I am trying to filter by the root device of a particular instance and get the root devices volume id. Could you explain how I could…
the_frank
  • 55
  • 1
  • 1
  • 4
1
vote
0 answers

How to download an S3 object using awless?

Given that the credentials are present in ~/.aws/credentials and region is set in ~/.aws/config, how can I download an S3 object via S3 URI using awless tool?
1
vote
1 answer

AWS CodePipeline output file empty

To deploy my Laravel framework to Docker containers on AWS, I created a CodePipeline in AWS with three basic steps: 1) Get source from Github (Output artifact = MyApp) 2) Use AWS CodeBuild (configuration below) 3) Use AWS CodeDeploy to deploy my…
Patrick
  • 71
  • 8
1
vote
2 answers

Cloud-init is failing to execute awscli command in User Data

Need help to fix the error and enable the instance to run issue free User Data script. Issue: cloud-init is unable to execute awscli command. I have mentioned a custom script (which will be present on the instance created by my AMI) to run as part…
quark2is
  • 23
  • 1
  • 4
1
vote
1 answer

Submitting multiple jobs with one request in AWS Batch

I'm using the aws cli and job submission takes a long time , if done one by one. Is there a way to submit more than one job at a time in a single request?
Protostome
  • 113
  • 1
  • 6
1
vote
0 answers

AWS EFS Backup using Datapipeline

I want to take backup of my EFS production environment. I have setup solution as defined in walk through with 2 EFS Production & EFS Backup I created 4 security groups : 1) efs-mt-sg (EFS SG) & add access to efs-ec2-sg on NFS port. 2)…
1
vote
1 answer

How to snapshot/restore EC2 instance with ephemeral storage?

I have a cluster of i2.2xlarge instances that I use to run performance tests. These are quite costly to run and I'd like to stop them when they are not in use. Unfortunately, the ephemeral storage on these instances does not survive the stop/start…
user14018
  • 123
  • 5
1
vote
3 answers

Crontab + AWS: "Unable to locate credentials"

I have a Linode (Ubuntu 16.04) from which I am trying to copy files to an AWS S3 bucket via a cron job calling a script, but the log outputs: upload failed: ../path/file.ext to s3://bucket/prefix/file.ext Unable to locate credentials The script tars…
apex
  • 111
  • 1
  • 4
1
vote
1 answer

Upload to S3 bucket slows over time

I'm part way through uploading about 200,000 files (each is ~1MB max) to an S3 bucket from an EC2 instance (both in Europe West). From monitoring the EC2 with CloudWatch (looking at the NetworkOut metric), there seems to be a drop-off in the upload…
user2950747
  • 113
  • 5
1
vote
0 answers

aws terraform Subnet association

I am creating a VPC via terraform - however i am facing some issues with subnnet association - which means - i have a private subnet across 3 AZ, abc. it creates me 3 subnets however it does associate with it self only when i Check on routing…
Jenna Shaik
  • 21
  • 1
  • 6
1
vote
2 answers

AWS Elastic Beanstalk Degrades every time I update - Stays down

When I update my instance, I use the EB Command Line Tools. I push my instance to my CodeCommit git, and then deploy my code using the eb deploy command. Nearly every time I do this, my envronment status changes to degraded/severe with the instance…
Reid
  • 411
  • 6
  • 17
1
vote
1 answer

CTRL+C on 200k files aws s3 sync

I'm syncing a directory containing 200k files (140GB) to a bucket using the following command aws s3 sync target s3:/awesomebucket/key/prefix/ --region ap-southeast-2 I took along time. The network was not so fast. And it barely upload 5GB…