Skip to main content

All Questions

-1 votes
1 answer
45 views

Is there a way to drop file extensions when using AWS CLI with --recursive?

I am trying to recursively upload parquet files to an AWS S3 bucket using AWS CLI. I want to drop the .parquet and use the file name as the target table name. So in a directory of table1.parquet, ...
clueless's user avatar
0 votes
1 answer
1k views

Publish SNS message with AWS CLI including attributes

What is the correct syntax to include message attributes when publishing a message to an SNS topic? I know it's --message-attributes, but how to properly pass the values? For example, to send a ...
Andrey's user avatar
  • 953
0 votes
0 answers
48 views

How to copy and paste files or folders based on modified timestamp range in one s3 location to another s3 location using AWS CLI

I am having some data files in a AWS s3 location across different sub-directories. When normally these files are received, AWS Event notification will be triggered and these files will be processed by ...
Ananth Bulusu's user avatar
0 votes
1 answer
205 views

deleting all old ecr images for a particular branch

I want have some git branch deployments. For a particular branch, I want to keep the latest (sorted by imagePushedAt) and delete the remaining. This is what I am trying: image_tags_json=$(aws ecr ...
x89's user avatar
  • 3,500
0 votes
0 answers
208 views

Get a list of instances from aws via cli containing ID - tag instance name, and detailed OS information

Get a list of instances from aws via cli containing ID - tag instance name, and detailed OS information. Hello, I need help getting a list of instances in aws via cli containing ID - tag instance name,...
Lekost93's user avatar
0 votes
1 answer
659 views

AWS CLI query return on one line

I have the following CLI command in a shell file. I can't figure out how to get the output to come out all on 1 line: aws ec2 describe-instances --query 'Reservations[].Instances[].[Tags[?Key==`Name`]....
L.Ray's user avatar
  • 127
0 votes
1 answer
910 views

How to list only empty directories using AWS CLI

I want to list down all the empty directories inside a S3 bucket using AWS CLI. Does anyone know what can be query for this? I tried running this: aws s3 ls bucket_name/ --recursive but it is ...
JG1's user avatar
  • 11
0 votes
2 answers
182 views

How to get meaningful help pages for aws CLI subcommands like `aws s3 cp`?

I'm trying to figure out what options there are for the aws s3 cp CLI command but neither of the following work. When I use --help or -h I get the following useless CLI output that doesn't say ...
Cornelius Roemer's user avatar
-1 votes
2 answers
213 views

Creating DynamoDB Table in CLI

I created a DynamoDB table and was running the following command in the CLI aws dynamodb put-item \ --table-name NBATeams \ --item '{"Team": {"S": "Team Name"},"...
Kyle M's user avatar
  • 1
1 vote
1 answer
275 views

No way to Get-Item in powershell?

So I've tried a few things now, one of which is AWS.Tools.DynamoDBv2 and nothing seems to work. AWS CLI works in powershell to an extent, for example, the command "aws ec2 describe-instances...&...
adminaf's user avatar
  • 58
0 votes
1 answer
864 views

I have a list of EC2's, and want to loop through the list in bash, does anyone have a way?

I'm using this command "aws ec2 describe-instances --region us-west-2 --filters "Name=instance-state-name,Values=running" --output table --query 'Reservations[].Instances[].InstanceId'&...
Tyrin Jefferson's user avatar
0 votes
1 answer
725 views

How to undo --no-verify-ssl in aws cli

Basically, I was looking for answers for SSL Validation error that I am getting, while connecting airflow to AWS S3 bucket. With this being the easiest solution, I typed into the cmd prompt: aws s3 ls ...
layman's user avatar
  • 109
0 votes
1 answer
1k views

Any way to use —arguments on aws glue start-job-run to append

From the AWS documentation, it looks like we can use —-arguments to start-job-run to replace default arguments. Are there any way to append to existing arguments rather than replacing the entire list?
J W's user avatar
  • 127
0 votes
0 answers
335 views

error when using script OIDv4 to download images. error: aws' is not recognized as an internal or external command, operable program or batch file

I'm using script OIDv4 to automatically download annotated images for YOLOv3 from Open Image Dataset found here: https://github.com/pythonlessons/OIDv4_ToolKit This is part of a larger exercise where ...
lingyau lee's user avatar
0 votes
0 answers
383 views

Change DisplayName and ID of objects of an S3 bucket by AWS CLI

I have a bucket that has objects with two possible owners (kafka and dataware). When I run a get-object-acl of some object, it comes like this. { "Owner": { "DisplayName&...
Nakano's user avatar
  • 27

15 30 50 per page
1
2 3 4 5