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
3 answers

EC2ResponseError: 401 Unauthorized using Saltstack boto_vpc module

I'm trying to create a vpc using Saltstack and boto_vpc module. This is my state: vpc_create: module.run: - name: boto_vpc.create - cidr_block: '10.0.0.0/24' - vpc_name: 'myVpc' - region: 'us-east-1' - key:…
0
votes
1 answer

Find minimal policies in AWS that user needs

I try to use AWS EC2. There is a command $ aws ec2 describe-instances That answers: A client error (UnauthorizedOperation) occurred when calling the DescribeInstances operation: You are not authorized to perform this operation. But what are exact…
Nakilon
  • 128
  • 1
  • 1
  • 8
0
votes
0 answers

Can't find my VM instance after importing VM to AWS

I followed the introductions from here http://pubs.vmware.com/vsphere-4-esx-vcenter/index.jsp?topic=/com.vmware.vsphere.vmadmin.doc_41/vc_client_help/importing_and_exporting_virtual_appliances/t_export_a_virtual_machine.html to import my VM in…
technoob
  • 142
  • 1
  • 14
0
votes
1 answer

AWS Command Line - Query Instance MS SQL Version

My AWS account runs approximately 50 instances. They all run Windows, but they vary between being just Windows, or running SQL Server STD or SQL Server Web. I'd like to find a way of exporting all my instances along with their Instance Type…
Robin Day
  • 506
  • 1
  • 8
  • 19
0
votes
2 answers

Possible to set an internal vpc dns name with the run-instance cli command?

I am reading throught the cli documentation and it seems like this should be possible, based on some of the outputs, but I can't seem to get the following option to work with run instance. aws ec2 run-instances \ --image-id ami-8d534dc8 \ …
jmreicha
  • 790
  • 1
  • 16
  • 29
0
votes
1 answer

AWSCLI s3 sync doesn't create directory

Hi try to sync a local directory to a S3 bucket. The files in the directory get synced perfectly, just the directory isn't created at all. Can you guys give me a hint how to do it? "newdir" contains two textfiles. These are copied to the bucket just…
Steve
  • 1
  • 1
  • 3
0
votes
2 answers

Auto-Tagging EC2 Instances in AWS (Windows Servers only)

I am looking for some guidance from the serverfault community. We are spinning up several new AWS instances (windows server 2008/2012) over the next few days. We have a naming convention in place for AWS, and tags so we can keep track of owner, date…
Scott Moore
  • 561
  • 1
  • 4
  • 11
0
votes
1 answer

Restrict AWS SSM access to SSH only

I need to restrict some users AWS SSM access to SSH only. These users should only be able to start a SSH session via SSM like this: ProxyCommand sh -c "aws ssm start-session --target %h --document-name AWS-StartSSHSession --parameters…
0
votes
0 answers

AWS ECR Tag Based Access Control

$ docker pull {ACCOUNT-ID}.dkr.ecr.{region}.amazonaws.com/{repository-name}:ecr Error response from daemon: pull access denied for {ACCOUNT-ID}.dkr.ecr.ap-south-1.amazonaws.com/{repository-name}, repository does not exist or may require 'docker…
0
votes
0 answers

AWS ECR Login error

AWS ECR Login error: command: aws ecr get-login-password --region ap-south-1 | docker login --username AWS --password-stdin {id}.dkr.ecr.{region}.amazonaws.com An error occurred (AccessDeniedException) when calling the GetAuthorizationToken…
0
votes
0 answers

Enable MFA S3 delete

I have THALES TOTP hardware tokens (MFA) which I would like to use as and additional protection against the accidental S3 object deletion (https://docs.aws.amazon.com/AmazonS3/latest/userguide/MultiFactorAuthenticationDelete.html) I know how to do…
STeN
  • 1
  • 1
0
votes
1 answer

How to connect to AWS EC2 serial console without access keys

My goal is to connect to the serial console of an EC2 instance, using SSH, e.g. from a laptop, using the best modern security practices in setting it up. The AWS documentation…
David
  • 1
  • 1
0
votes
1 answer

Cannot create aws lambda function. error: the following arguments are required: --runtime, --handler

I am trying to deploy an image to be run in aws lambda at a scheduled interval. I have built and tested the image using RIE and locally it runs as it should. Next I have pushed the image to aws ecr to be stored. My next step is to create a aws…
0
votes
0 answers

How to ease AWS deployment with three Elastic Beanstalk applications dependent on each other

I have an application that has three Elastic Beanstalk applications for a single app to run. App 1 - Scala application containing interfaces to be used as a library App 2 - Scala application containing all business logic and RDS connection using VPC…
0
votes
0 answers

Can't connect to cognito using the AWS CLI

I have created an instance running bare AL2023. This instance has an IAM role asociated which has a single policy { "Version": "2012-10-17", "Statement": [ { "Sid": "VisualEditor0", "Effect": "Allow", …
curial
  • 161
  • 1
  • 2