Questions tagged [aws-cli]

aws-cli is the Amazon Web Services Command Line Interface

Filter by
Sorted by
Tagged with
-1
votes
1answer
21 views

How to control AWS EC2 live from a web app

We are building some penetration testing stations (both attack & target) for a hackathon in AWS VPC and I need a way to control the following in a live setting: VPN connection access: if someone ...
1
vote
1answer
35 views

Schedule RDS upgrades/downgrades

I have a project that sends notifications to various services. Users manage their subscriptions 24 hours a day, but we need a stronger MySQL RDS instance during the week (t3.xlarge), specifically Tue-...
-1
votes
0answers
9 views

Detach security group from running AWS instances using CLI [closed]

I have security group which is no longer used which I need to detach using AWS CLI in running instance. What command should I use
0
votes
0answers
24 views

Chmod 400 not working to change .pem key permissions

I am on a Macbook, and trying to use chmod 400 ".pem key" doesn't seem to be changing the permissions to the key and I keep on getting "Permission denied (publickey)" when trying ...
1
vote
1answer
127 views

AWS Cloudformation Template error: every Ref object must have a single String value

SNSTopic Type: 'AWS::SNS'...... SNSTopic2 Type: 'AWS::SNS'....... EventRule: Type: 'AWS::Events::Rule' Properties: Name: !Ref EventRuleName Description: State: ...
-2
votes
1answer
55 views

How can I connect AWS by using AWS-CLI in Windows Subsystem Linux?

I am totaly new for AWS I am trying to use awscli by calling below code : root@DESKTOP-QK5VI8R:~# aws s3 ls I applied lots of solution for that: I added port 8888 into Inbound/Outbound Rule set in ...
1
vote
0answers
40 views

Create custom AMI for Aarch64 with latest Debian and custom Kernel

I am trying to create a custom Debian based AMI with my own custom kernel for AWS EC2 instances, specifically I'm trying to run it on t4g.micro/medium instances. I debootstrap an ARM64 Debian and copy ...
0
votes
0answers
16 views

Terminating AWS ECS services and tasks automatically

We have created a ECS cluster with Fargate and have created few tasks in service to be used in a CI/CD pipeline. Service has desired count of 1. So if we terminate any task, new task comes up ...
1
vote
0answers
98 views

AWS - VPC creation date

Could you possibly let me know how I can check when the VPC has been created? Or how to check in cloudtrail who created vpc via cli? I've tried to use cloudtrail and search in event name for CreateVpc ...
0
votes
0answers
28 views

Copy old data from local Centos to AWS S3 bucket

I have the following task to complete. I hope someone can provide the feedback to get me started. We have a directory with thousands of images in many folders and sub-folders The goal is to have a ...
0
votes
1answer
31 views

Add Error Logging to script

I have the following Big Sur Mac OS script: #!/bin/zsh /usr/local/bin/aws s3 cp /Library/FileMaker\ Server/Data/Backups/S3/noon_db_* s3://testbackupnoon rm -rf /Library/FileMaker\ Server/Data/...
0
votes
0answers
16 views

aws cli delete access key that is currently authenticating

I am working on an aws account management process, and try to script as much as possible, so the process is always the same. After I have created an account, I create an access key as root user, and ...
0
votes
2answers
88 views

How to check via aws cli if a Security Group description contains a secific string?

Using aws cli, I would like to be able to fuzzy search for a part of a string in the 'description' of a Security Group. For example let's say Security Group sd-afafaf00 contains "Hey there kaipee&...
1
vote
1answer
334 views

pip upgrade downloading every previous version until storage is full

On CentOS 7, I am trying to upgrade awscli: /usr/bin/python3 -m pip install awscli --upgrade --user Why is this downloading every single previous version, until there is finally no space left on ...
0
votes
1answer
59 views

AWS WAF Web ACL Rule — programmatically get details

While adding resources to protect with AWS Shield Advanced through the console, the 'wizard' created a Web ACL rate-limiting rule, which I can see in the console under AWS WAF > Web ACLs > ...
0
votes
2answers
37 views

AWS backup is not in the list of command line interface commands

When I'm trying to use aws backup on my AWS server through command-line interface, but it's not in the list of available commands. How do I add this in? Currently when I run aws backup I get the ...
1
vote
1answer
45 views

What is the best way to attach instance to auto scaling?

This is my first post so hope I will get the answer. I want to create auto scaling on my existing EC2 instance, so I found this approach so hope someone will tell me is it good ( or suggest me how to ...
0
votes
0answers
30 views

aws sftp transfer user inventory

I've been using the aws-transfer system for a while, and I wanted to check my user list. I can do this though the GUI, but I was hoping to export a nice table with aws-cli. I have two commends. The ...
0
votes
0answers
34 views

AWS S3 unexpected bucket size increase

So I had a S3 bucket with 2.7M objects and around 1.03TB. Server side encryption was not enabled so no objects were encrypted. Object versioning is also disabled. I activated SSE-S3 and to encrypt the ...
1
vote
1answer
77 views

How to tag launch template _itself_ in AWS with JSON and `create-launch-template` AWS CLI

While creating EC2 launch templates with the create-launch-template AWS CLI ec2 command and a JSON spec, I can't seem to figure out how to tag the template itself. I'm providing the TagSpecifications ...
0
votes
0answers
37 views

Find volume id in AWS ubuntu linux

I'm trying to find volume id in ubuntu linux using AWS CLI, I have written below command aws ec2 describe-volumes --region us-east-1 --filters Name=attachment.instance-id,Values=i-0b0df4542545f8a Name=...
0
votes
0answers
51 views

How to automate the generation of the table schema json for aws dynamodb create-table?

Currently if I run aws dynamodb create-table --generate-cli-skeleton, it will generate a template for me to fill in column definitions etc to create a new dynamodb table. I want to be able to dump ...
0
votes
0answers
25 views

Unable to access port of AWS EC2

I have a VPN tunnel setup between Local Infrastructure and EC2 instances. I am able to ssh into the EC2 instance means I am able to access port 22 but unable to access 5432 port. Below is Security ...
0
votes
0answers
144 views

Ansible lookup plugin 'aws_secret' returning Signature Expired

After some months working perfectly well, a task where I use the plugin lookup aws_secret began to return the following error: {"msg": "An unhandled exception occurred while running ...
0
votes
1answer
102 views

Cannot Delete S3 Bucket even though the IAM user as S3FullAccess policy

I cannot delete the bucket from an IAM user account which uses a virtual MFA device profile I have generated session toekns and added it to the profile section of ~/.aws/credentials file. and the ...
0
votes
0answers
33 views

Launching RStudio Server from AWS EC2 instance on Chromebook Linux/Debian Terminal

So I was able to install and activate the rstudio-server but I'm not sure how to launch the server so I can start writing and running script through a local host as described in https://indicatrix.org/...
0
votes
0answers
61 views

AWS error Unsupported: Not enough free disk space in /boot to proceed with import

a company would migrate they servers (they are VM) to Amazon AWS. In this moment the virtual machine are running on a Hyper-V server. I have exported one VM (it is a Ubuntu VM). After that I have ...
1
vote
1answer
980 views

awscli v2 needs sudo to run otherwise get permission denied error ubuntu 20.04.01

I've installed the awscli V2 as per the official AWS instructions here: $ curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" $ unzip awscliv2.zip $ ...
0
votes
1answer
430 views

SSH connection getting a Connection timed out in AWS

I have a website hosted in AWS EC2 with the t2.micro instance(Ubuntu 18.04.4). When I tried to connect through Putty or browser-based SSH connection from the AWS console, i am getting a connection ...
0
votes
0answers
193 views

Using InputTemplate with aws put-targets to send event details to ECS

I am using InputTemplate with aws put-targets to set up a rule target to send event details to ECS, and I cannot get the syntax correct. I am using the commandline, aws events put-targets and ...
0
votes
1answer
26 views

VM ram requirement for aws s3 sync job

I have a VM setup to sync 15TB of data split in 25GB volumes to S3 using the latest awscli v.2. I have a 100Mbps upload capacity, and the job will probably take 16 days. I haven't had any experience ...
0
votes
2answers
635 views

AWS-CLI - Find ELB by Name tag

I'm trying to find a load balancer that has a Name tag with some value. aws elb describe-load-balancers --query 'LoadBalancerDescriptions[*].LoadBalancerName' I'm iterating over the results and ...
1
vote
0answers
143 views

How to access a S3 bucket accessible only through a EKS Pod

We've got a S3 bucket we use to store files used by an application deployed on EKS, to access the bucket we have a secret web identity token. The application maintenance guys sometime need to browse ...
0
votes
0answers
150 views

Stuck importing OVA into EC2 AMI

I'm attempting to convert an OVA into an AMI, and since starting the conversion process with an OVA stored in an S3, bucket, its been several days and the progress has not moved past 27%. When running ...
0
votes
0answers
26 views

Can you use workforce qualifications with AWS SageMaker?

Is there a way, perhaps through the developer API/CLI, to specify Qualificaitons (System or Premium) when using AWS SageMaker GroundTruth to create Mechanical Turk jobs? There is a list of Mechanical ...
0
votes
0answers
37 views

After Creating AMI from running source instance, can't connect to that source instance and website is down

While I am trying to transfer AWS EC2 instance from one account to another account, I have created AMI from the source running instance. After creating instance don't know what happened, the source ...
0
votes
0answers
137 views

How do I poll for when the ssm agent is started and session manager can connect for newly created instances?

I use SSM to connection to windows ec2 instances with the cli: aws ssm start-session --target <id> It takes the ssm service on a windows instance a few mins to start sometimes I can check when ...
0
votes
0answers
233 views

How to discover the kernel of Amazon AMIs

The AWS documentation says that one can see details of AMIs by running the following: aws ec2 describe-images However, the returned description does not seem to include the kernel version (for Linux ...
1
vote
2answers
593 views

How to post logs to Cloudwatch with CLI?

Im tring to create a bash script that checks the status of the website, Im using this command: This one to create the logstream aws logs create-log-stream --log-group-name "WebsiteStatusMessage" --...
1
vote
1answer
71 views

Amazon SES data via AWS S3: Is there a simple way to list and download a folder and get line counts?

I've set up Amazon SES to send a company announcement to a list of about 1,000 contacts. I set up the Kenesis Firehose to log all e-mail events (e.g., Send, Bounce, Click) to a bucket in S3. SES seems ...
0
votes
0answers
571 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
196 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?
1
vote
1answer
118 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
1k 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 ...
3
votes
1answer
2k 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
24 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
53 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
176 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
41 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
56 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 ...

1
2 3 4 5
7