Questions tagged [aws-cli]

aws-cli is the Amazon Web Services Command Line Interface

Filter by
Sorted by
Tagged with
0
votes
0answers
31 views

ECS-CLI: Getting “is used but no declaration was found in the volumes section” on Windows

I'm trying to run ecs-cli compose up on Windows 10 to run docker-jitsi in the cloud. Here is docker-compose.yml sample: https://github.com/jitsi/docker-jitsi-meet/blob/master/docker-compose.yml When ...
0
votes
1answer
16 views

SSH public key must be specified when running with AWS - error thrown while creating the kops cluster

I followed every steps as per the standard documentation described in both the aws & kubernetes. But still I get this error. May I know the reason behind this prompt?
0
votes
1answer
25 views

Request times out when applying terraform plan on AWS, or describing instances through AWS CLI

I am having an issue accessing the following endpoint from an EC2 instance located in a private subnet. Architecture is the following: VPC Private Subnet 1 (there is a route on 0.0.0.0/0 to Transit ...
2
votes
2answers
150 views

Is there any way of viewing, in AWS, what ips in a subnet have been allocated?

Is there any way of seeing what ip addresses AWS thinks have been allocated in a subnet? I've run a ping scan, and I've checked our internal ip management software, and there should be more than 8 ips ...
0
votes
1answer
31 views

How to set a binary secret value from the CLI for AWS Secrets Manager

How do I set a binary value on a secret in AWS Secrets Manager using the CLI? The docs say: --secret-binary (blob) (Optional) Specifies binary data that you want to encrypt and store in the ...
0
votes
0answers
6 views

Change AWS CodePipeline stage description

Is there a way to change description of a stage, which currently displays commit id and message?
0
votes
0answers
20 views

Did AWS stop allowing PUTs to S3 locations more than one directory deep through the AWS CLI?

On our various servers that have a product that includes a database, I create a job that runs a small script that makes a backup of the database, compresses the file, and sends it to S3. I have one ...
1
vote
1answer
11 views

What is the format of S3 lifecycle configuration?

My Problem An S3 lifecycle configuration changes object storage classes. A typical usage is periodically moving objects to cheaper storage classes after a specified retention period. I am trying to ...
1
vote
1answer
16 views

How to find out the endpoint url of a node of a redis cluster via aws cli 'elasticache describe-cache-clusters'?

If I run aws elasticache describe-cache-clusters I will get results like this: { "CacheClusterId": "dev-001", "ClientDownloadLandingPage": "https://console.aws.amazon.com/...
0
votes
2answers
31 views

Accessing aws cli from a private network

do you know where I can find a comprehensive list of IPs that need to be whitelisted in order to be able to use AWS CLI? The scenario: I have my orchestrator server on an on-prem server without ...
0
votes
1answer
25 views

Using multiple users in crontab script, silently fails when changing users

I'm trying to run a bash script on a centos server. I've running the script as the root user (both for file permissions), but I also need to use the aws service permissions that belong to a service ...
0
votes
0answers
14 views

Boto3: get a region's local time

We're closing in on the point were we have a server in every AWS region. We would like to know the local time for a specific region to better monitor peak usage via command line. I'm fairly certain ...
0
votes
1answer
34 views

30day archive to S3 bucket with aws cli

I'm trying to automate an archiving function where if a file is older then 30 days and is encrypted it will be moved to S3 to free up disk space on the server. The issue I'm having now is the the aws ...
0
votes
1answer
45 views

How to name or rename an EIP in AWS?

Somehow, at some point, I created 2 EIPs and gave them names (they have names in the EC2 UI). But now I cannot figure out, or find in the docs, how to name EIPs either when creating them or after ...
0
votes
1answer
67 views

AWS Windows EC2 unable to join to AWS Managed AD using SSM

I have a windows server that sits in a VPC with no internet access. But it has VPC endpoints to SSM,ec2messages,ssmmessages and ec2 api. When I try to join this to a domain by using the ssm api, ...
0
votes
0answers
34 views

docker Error response from daemon: Get tls: first record does not look like a TLS handshake

I have a problem where I can no longer do a docker login on an AWS ECR repository on OSX. Notably the problem occurs now that I've upgraded docker desktop version to v2.2.0.4, docker-engine v19.0.3....
0
votes
0answers
13 views

AWS CLI or Lambda function to get aws Instance details

I have spreadsheet of instances with instance details (Instance ID, Name). I am trying to find out instance details for those instances like VPC & Subnet ID, AZ and AMI-IDs Creating report on ...
0
votes
1answer
68 views

aws s3 ls --summarize switch is broken when trying to get the size of a specific prefix in a bucket

Am I stupid or is this command just totally broken or unclear in usage I want to see the size of a specific prefix in a bucket aws s3 ls --summarize --human-readable --recursive 's3://mybucket/...
1
vote
1answer
25 views

Using the AWS CLI tool for s3 sync — how can I specify the storage tier?

I'm using the AWS CLI to use Amazon's S3 storage for backing up files: aws s3 sync /backup-these-files s3://my-backup How can I specify the x-amz-storage-class header, to tell it to put these files ...
1
vote
1answer
824 views

Refreshing AWS temporary credentials

We use an authentication process for AWS whereby you authenticate, do an MFA step, and are then granted credentials that are valid for an hour. Usually these are then put in ~/.aws/credentials. ...
1
vote
2answers
502 views

What is the proper way to log in to ECR?

Currently, I have this command in my bash script for building & pushing an image to Amazon ECR docker login -u AWS -p "$(aws ecr get-login-password)" "https://$(aws sts get-caller-identity --...
0
votes
1answer
211 views

Deleting S3 files with a given prefix only

We have a bucket with more than 500,000 objects in it. I'm assigned a job where I've to delete files which have a specific prefix. There are around 300,000 files with the given prefix in the bucket. ...
0
votes
0answers
12 views

AWS Xray Logs is empty

I recently created a beanstalk app but when i go to my Xray console, the console is empty. Attached is a picture of my beanstalk and xray Beanstalk Health Dashboard AWS Xray Dashboard
1
vote
1answer
33 views

S3 PUT directly to glacier

This AWS post from 2018 makes it sound like it should be possible to make S3 style PUT requests to create archives in glacier now: I'm interpreting that to mean that you could use the s3 CLI or sdk ...
0
votes
1answer
33 views

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" ...
2
votes
1answer
49 views

AWS cli filter not applied

I want to receive some values from an AWS SecurityGroup and am using the following command: aws ec2 describe-security-groups --group-ids $GROUP \ --filters 'Name=ip-permission.from-port,Values=22 ...
1
vote
1answer
32 views

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

Bulk delete ec2 snapshots from Jenkins

Use case: Export list of snapshots in txt file (old_snapshots.txt) to S3 bucket. From Jenkins, use aws cp command copy file to Jenkins /tmp/directory --dry-run did not show any error However, when ...
1
vote
1answer
264 views

Using aws cli sync include and exclude with delete option

aws s3 sync /WordProcessing/DOCUMENTS s3://mybigbucket --delete --include "*" --exclude ".DS_Store" If somehow .DS_Store made its way to the AWS S3 mybigbucket (from a previous backup), using the ...
-1
votes
3answers
124 views

aws life cycle rules to transition files from s3 bucket to Glacier storage class

I am creating life cycle rules to move files from bucket to the glacier storage class. I was wondering if there is an option to copy files from S3 bucket to Glacier using either CLI or console? I ...
1
vote
1answer
336 views

Does AWS cli do a data integrity check on sync with s3?

I've been looking into using AWS cli for data integrity checks to verify a backup has been transferred from a Linux file server correctly to AWS s3. Likewise, I would like to verify when restoring a ...
0
votes
1answer
106 views

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-...
0
votes
1answer
233 views

Is it possible to force update of Route53 DNS resolver cache in AWS when IP changes?

I have several VPC's set up in AWS, and all of my instances use provisioned IP addresses, that is - not using Elastic IP Addresses. When any given instance boots up, it executes a script on the ...
1
vote
1answer
87 views

How do I list the AWS S3 storage classes in a single bucket?

I looked at the AWS Console and I don't see a way to display or list the storage class in a bucket for directories. I can see how to change the storage class, but it doesn't display what it is ...
0
votes
2answers
103 views

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 ...
1
vote
1answer
597 views

aws ssm start-session .. AWS-StartPortForwardingSession .. hangs

I am trying to set up port forwarding between my local PC and an AWS EC2 based on the AWS SSM port forwarding article instance like this: aws ssm start-session --target i-0822c9a6c52ca7394 \ --...
1
vote
1answer
38 views

Environment credentials are ignored by “aws ec2 describe-customer-gateways”

So I'm trying to list the customer gateways in an account using AWS CLI. The problem is that I can only get it to work with credentials from a profile, not from environment variables. I know I must ...
0
votes
1answer
77 views

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 ...
0
votes
1answer
63 views

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 ...
0
votes
0answers
90 views

How can I create AWS QuickSight users connected to SSO accounts?

My organization uses SSO to access AWS, so our account names look something like this: GodSSO/owner@domain.com DevSSO/coder@domain.com DevSSO/writer@domain.com ReadSSO/auditor@domain.com ReadSSO/...
2
votes
1answer
99 views

Aws console vpc id does not match aws cli

When I log into my aws console I see the vpc id as "vpc-6856c210" however on my server through the aws cli I see "vpc-82fe07e9" When I try to run a terraform script I get an error if i use 'vpc-...
0
votes
1answer
210 views

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

How to log into new EC2 instance

Trying to connect using CentOS7 I deployed a couple of EC2 instances using terraform and now and trying to log in. aws2 ec2-instance-connect send-ssh-public-key --instance-id i-0788274a4861154d44 --...
1
vote
1answer
21 views

Multiple Elastic IP for EC2

For a single EC2 instance, I have added 2IP Address Primary and one secondary. Later i cant remove one.. Is there any way that we can remove one IP Adresss
1
vote
1answer
204 views

How to create a database read replica on AWS Lightsail

I have an existing MySQL database running on AWS Lightsail, I want to create a read replica for that one, how can I do it?
0
votes
0answers
37 views

CloudwatchEventRule Target run commands on instances in different regions?

Amazon Web Services CloudWatch Event Rules allow you to respond to an autoscaling event by initiating an Amazon SSM Run-Command against an instance by instance-id or tag:Type. This is a good mechanism ...
0
votes
0answers
411 views

Can't delete User Pool Domain when Cognito User Pool already deleted

I deployed a CloudFormation template that sets up a Cognito User Pool and an associated User Pool Domain. As there was a misconfiguration in the template a rollback was triggered. The rollback ...
0
votes
1answer
81 views

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) ...
0
votes
1answer
39 views

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,...
1
vote
1answer
133 views

AWS Lambda boto3 : Instance launch from lambda boto3 python but not launching

while trying launch instance from python function instance not launching but not getting python syntax error. region = 'us-east-2' ec2 = boto3.client('ec2') ec2 = boto3.resource('ec2') client = boto3....

1
2 3 4 5
7