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
0
votes
2 answers

Export all AWS VPC data to a file?

I have a VPC that I would like to export all the instance data from the API into a text file, how can I do this? I am familiar with using awscli, boto, ansible, for creating things in AWS but getting back a master list of the data seems to be…
0
votes
0 answers

How to not conflict between policies on AWS?

I'm trying to make my AWS environment safer. So, I just created a bucket, no modifications at all, on S3, and want to give a minimal set of permission to my application users. So, I have created an user called keeper, he can, basically, only assume…
0
votes
2 answers

How to make AWS CLI safer within my servers?

I'm new to AWS CLI, but one thing that is bothering me a bit, is the fact that I need to store my credentials in a file. I have several buckets on S3, and I create an account for my application, which will have only access for this bucket. However,…
Valter Silva
  • 190
  • 10
0
votes
1 answer

AWS EC2 Ubuntu startup scripts

I tried to lookup for answer or similar behavior at various site and I dont see anyone facing this issue. That indicates that either I am not doing something correctly or I havent looked much. If you believe this is duplicate question then please…
0
votes
3 answers

Jenkins Server - trying to run AWS cli script - getting an error

I am running a Jenkins server on Windows server with AWS CLI installed. while trying to run a script through Jenkins job i get the following error: "You must specify a region. You can also configure your region by running "aws configure"." AWS cli…
0
votes
1 answer

Using Cloud Formation can i migrate existing VPC from one amazon account to another

I want to migrate existing VPC, subnets, routetables etc from current amazon account to another amazon account using cloud formation. How can i do this?
0
votes
1 answer

How to suppress file output from aws s3 ls?

I am using the aws cli to summarize the number of files and the total size of an s3 bucket using the following command (documentation): aws s3 ls s3://mybucket --recursive --human-readable --summarize This command gives me the following…
Borealis
  • 155
  • 1
  • 8
0
votes
1 answer

Export IAM user accounts (with passwords) into LDAP

I have a blank LDAP account and want to import all the IAM user accounts to LDAP and keep the LDAP in sync with IAM (not the other way around using federation). Is this possible? I need a LDIF file with IAM username and passwords to import into…
0
votes
1 answer

Why is the subcommand modify-id-format missing in my AWS CLI v1.9.20

I have a couple of AWS amazon linux ec2 instances running, and I'm trying to set ec2 instance id format to longer one, which has been released few days ago. I'm trying this: aws ec2 modify-id-format --resource instance --use-long-ids But following…
0
votes
0 answers

PowerShell module works but NOT in AWS PowerShell

I am currently trying to use the PSlogging module within AWS PowerShell for creating logs. Now the module works fine in the standard PowerShell but in AWS PowerShell I am getting errors, I even did a Get-Module so I know AWS is finding the module...…
DanBarber
  • 67
  • 3
  • 9
0
votes
1 answer

Unable to parse certificate. Please ensure the certificate is in PEM format [AWS Console]

I got the following error, Unable to parse certificate. Please ensure the certificate is in PEM format aws console when trying to add https listener to the aws load balancer as instructed guide here (using aws console). I gave the the…
0
votes
0 answers

EC2 Booting an EBS-backed AMI instance gives a kernel panic

TLDR: I'm trying to create an EBS-backed AMI instance and then pivot to it using Busybox but I get a kernel panic: VFS: Mounted root (ext3 filesystem) readonly. Freeing unused kernel memory: 156k freed Kernel panic - not syncing: No init found.…
0
votes
1 answer

Elastic Beanstalk purging Varnish across instances

I’m a little stuck with how best to clear Varnish across all my instances on Elastic Beanstalk - unfortunately I’m not most knowledgeable with AWS. I would like to keep things simple regarding the set up so I opted to have a Varnish cache on each…
0
votes
1 answer

How get back losts archive_ids of AWS Glacier vault

I am new to AWS Glacier and was having a work around with it. I created a new vault and upload around 2-3 files (Using boto API) to it but didn't saved the archive-id given back. Later I got to know that they were necessary to delete the archhives…
avaj
  • 1
0
votes
1 answer

ec2-automate-backup-awscli.sh - Purging is not working?

I have recently implemented a script that creates snapshots of my volumes. I run this script via a cron job which works very well except for the part that deletes snapshots. When I run the command to create the snapshots, I include '-k 3' which…