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
1 answer

How to filter rds events from 'aws rds describe-events'?

If I run aws --profile dev rds describe-events, I get output like these: { "Events": [ { "SourceIdentifier": "dev-important-data", "SourceType": "db-instance", "Message": "CloudWatch Logs Export…
Anthony Kong
  • 3,288
  • 11
  • 57
  • 96
0
votes
2 answers

AWS Inline Policy to Limit Automation Document Execution per IAM

AWS Inline Policy to Limit Automation Document Execution per IAM is my goal, but understanding current limitations I can see that I can only use * wildcard and can't specify a specific document. Is there any way to limit specific IAM to only have…
0
votes
1 answer

AWS Group Inline Policy Limit Access For Specific Resources with Tags

I have created development group on which I want to impose group inline policy that would allow each member to be able to describe EC2 instances that have a tag with a Key "Product" that has a value equal to "TestProduct". The below shown example…
0
votes
1 answer

How do I move an AWS application instance from us-east-1d to us-east-1b?

I have an instance that I accidentally setup on us-east-1d without realizing it. I have another application that is supposed to connect to it but times out. I contacted AWS support and they told me the reason why is because the connection isn't…
Michael
  • 153
  • 1
  • 7
0
votes
3 answers

how to show an IAM user's roles with 'aws iam'?

If I run $ aws iam get-user --user-name anthony, I get result like this { "User": { "Path": "/", "UserName": "anthony", "UserId": "E2S4XZIL9NRNSBIDBI5U6", "Arn": "arn:aws:iam::123456:user/anthony", …
Anthony Kong
  • 3,288
  • 11
  • 57
  • 96
0
votes
1 answer

Configuring Load Balancer with only 2 nodes with HAProxy

I am very new in this and I am trying to configure a load balancer for 2 web servers using HAProxy with 2 EC2 Instances. Let's just say I can only work with 2 Instances, is it possible for me to hook this up with only 2 nodes? I currently only have…
machy
  • 3
  • 3
0
votes
1 answer

AWS S3 sync command stalls and rung for a long time even when nothing new to sync

I have a cronjob that executes every minute that uses awscli s3 sync command for syncing my website with a S3 bucket. It seems the command sometimes run for a very long time for no apparent reason : 20613 bitnami 20 0 191876 48668 9756 R…
wlarcheveque
  • 131
  • 1
  • 2
  • 6
0
votes
0 answers

Attach security groups to multiple EC2 instances

Is it possible to attach a new security group to all the EC2 instances in a specific region and keeping the old ones in place?
Volodymyr Molodets
  • 2,424
  • 9
  • 36
  • 52
0
votes
1 answer

Error creating new cluster in AWS with ecs-cli

I'm running this command ecs-cli up --keypair aws-keypair-brickpile --capability-iam --size 1 --instance-type t3.medium --spot-price 0.02 with my default region eu-north-1 but it exits with this error. I can't figure out what the problem…
marcus
  • 101
0
votes
1 answer

aws cli not configured when called from python script inside systemd service?

I am using an EC2 instance with ubuntu 18.04 and python 3.6. I am running a python script uses aws cli calls for various things. Before running the script, I configured the aws cli with my access keys, default region etc. When I run the script…
John Corson
  • 123
  • 1
  • 6
0
votes
1 answer

aws s3 cp files from the root of a subdirectory without getting subfolders as well? Powershell

s3://bucketname/yyyymmdd/foo/bar I have some files in the root directory and I want to copy them. I do not want to copy any subdirectories to the root (foo). I'm trying this in powershell: aws s3 cp "s3://bucketname" . --recursive --exclude…
eoattc
  • 1
  • 1
  • 1
0
votes
1 answer

How to find the type of a aws instance and whether its EBS Provisioned IOPS SSD or not?

I have a AWS instance on which I perform a ssh login and operate.Os is Ubuntu 16.04.3. I didn’t select it’s AMI and neither do I have the access to its AWS console. I wanted to know that what instance is it like, is it t2.small or m3.large? I did…
0
votes
1 answer

How to get the Auto-assigned IP address from an Amazon Instance via aws-cli

As many of you know AWS have Auto-Assigned "Public" IP's and Elastic IP's for the instances, I can get the Elastic IP's via cli with the describe-addresses command:…
Nic
  • 105
  • 1
  • 5
0
votes
1 answer

IAM user with DeleteObject permissions cannot delete from S3 bucket

Guys there's something I really don't understand. The GitLab runner at the bottom cannot delete objects in the bucket at the top. He should have permissions to do that, but instead I get the following: delete failed: s3://bucket.domain.com/file.png…
Neekoy
  • 269
  • 1
  • 6
  • 14
0
votes
1 answer

How to find which AWS account a loadbalancer is pointed to?

A really lame question, but I can't seem to google it, sorry. I have the LoadBalancer URL and have quite a few AWS accounts that it might be under. How does one figure out reliably which account the LoadBalancer and respective VMs are under?
Neekoy
  • 269
  • 1
  • 6
  • 14