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

AWS- adding organisation members in a specific OU

We have multiple OU's in our AWS organisation. We use AWS cli to create new AWS organisation members. For eg. aws organizations create-account --email test@example.com --account-name "testaccount" Everytime a new member account is created, it is…
Axel
  • 421
  • 2
  • 8
  • 18
1
vote
1 answer

AWS- Limiting resource access for member of organisational accounts

We have certain AWS labs which we offer to our customers. Every time a user opens the lab, a new member account is created and added to the organisational account. This only happens the first time when a user logs into the lab. This member account…
Axel
  • 421
  • 2
  • 8
  • 18
0
votes
1 answer

Is there an additional cost to write metadata to objects in the bucket?

I was looking into writing an MD5sum to the object after it has been uploaded to AWS S3 and doing a data integrity check as described here: https://aws.amazon.com/premiumsupport/knowledge-center/data-integrity-s3/ For example, you uploaded 100,000…
Edward_178118
  • 955
  • 4
  • 15
  • 33
0
votes
1 answer

How do I upload in a batch large files to AWS S3?

I want to do a backup of a Linux file server which has 1.4 TB of data to AWS S3 Standard - IA. Some of the files are large, over 100 MB, and I read that multipart should be used. How can I do this on the command line so it does a sync, but handles…
Edward_178118
  • 955
  • 4
  • 15
  • 33
0
votes
1 answer

AWS Session Manager SSH MFA

I know that it's possible to enable SSH access with AWS Session Manager and use MFA with Bastion. My question is, can I combine the two? I want to ssh into an EC2 instance proxying through Session Manager, but also be prompted for MFA. Thanks
apr
  • 1
  • 1
0
votes
1 answer

AWS AMI import of HyperV Virtual Machine on LVM extended partition on Two drives

I am having a problem today while importing a hyper-V vm to AWS AMI. Actually my VM has 2 Harddisk and both of them LVM set and use as single LVG expended volume on both drives. now when i am importing first disk as ami. it give me an error saying …
0
votes
1 answer

How to predefined AWS security group id using terraform

This script works fine for creating EC2 instances: provider "aws" { access_key = "ACCESS_KEY" secret_key = "SECRET-KEY" region = "us-east-2" } resource "aws_instance" "web" { count = 3 ami = "ami-001as38b07206d4ceaf" …
Andrew Sitterly
  • 300
  • 2
  • 9
0
votes
1 answer

AWS describe-network-interfaces behavior when filtered by list of security groups & list of interface Ids

I am slightly confused with the way the following would function: profile_session = boto3.session.Session(aws_access_key_id=accessKey,aws_secret_access_key=acc essSecret,region_name=awsRegion) ec2_client =…
qre0ct
  • 123
  • 6
0
votes
1 answer

find IP of running spotfleet instances through powershell

I am trying to launch spot instances from Spot Fleet: aws ec2 request-spot-fleet --spot-fleet-request-config file://aws-spot6.json below is json content { "SpotPrice": "0.06", "TargetCapacity": 1, "IamFleetRole":…
0
votes
1 answer

AWS CLI ec2 run-instances fails with --tag-specifications parsing error

I'm referring to the following AWS documentation, attempting to use the CLI (from Windows) to launch an EC2 instance with tags specified at launch…
James
  • 363
  • 2
  • 4
  • 16
0
votes
1 answer

awscli redirect cache file to another directory

Im writing a Bash script to download some objects from S3. The user account that runs this script does not have a home directory available. meaning - the folder refered to by $HOME does not exist. I have used environment variables to redirect the…
Gre
  • 85
  • 4
  • 13
0
votes
2 answers

What is AMI's ImageLocation and how to access it?

The output of descibe-images command: aws ec2 describe-images --image-id ami-0b898040803850657 --region us-east-1 --output json Contains the ImageLocation line: { "Images": [ { "Architecture": "x86_64", …
grabantot
  • 133
  • 6
0
votes
1 answer

Is it possible to use aws sts to generate a token so I can use aws cli in another machine?

It is the use case: My aws account is using aws identity with MFA enabled. I have some long running jobs I wish to be able to run on an ec2 instance. Is it possible to generate some kind of token using aws sts such that I can use in the ec2…
Anthony Kong
  • 3,288
  • 11
  • 57
  • 96
0
votes
0 answers

aws s3 cp 'Connection aborted.', ConnectionResetError(104, 'Connection reset by peer')

I am actually writing a simple script to zip a local game save then upload the zip file into my s3 bucket. Somehow it gives me this error though. The most I can find googling around is about filesize + adding --region init which doesn't help at…
Dora
  • 341
  • 1
  • 5
  • 15
0
votes
2 answers

How to remove a cloudwatch event rule using aws cli?

I am using terraform destroy to destroy some resource. However it failed at this step: module.restore_db_from_snapshot.aws_cloudwatch_event_rule.event_rule: aws_cloudwatch_event_rule.event_rule: AccessDeniedException: User: …
Anthony Kong
  • 3,288
  • 11
  • 57
  • 96