Questions tagged [aws-cli]

The AWS Command Line Interface (CLI) is a unified tool to manage AWS services.

The AWS Command Line Interface (CLI) is a unified tool to manage AWS services. Multiple AWS services can be controlled via the command line and various actions can be automated through this tool.

Questions involving an alternate implementation for Windows PowerShell, AWS Tools for PowerShell, should be tagged with instead.

Resources

4345 questions
1
vote
1 answer

JMESPath query with boolean values?

I'm trying to develop the expression to query Route53 and pull out the ID of our private zone. Problem is the query string returns an empty array. Base data below — running aws route53 list-hosted-zones: { "HostedZones": [ { …
OPP
  • 43
  • 5
1
vote
3 answers

AWS C++ Lambda - segmentation fault

I have successfully installed an AWS CLI on WSL. In addition I did follow these instructions: https://aws.amazon.com/blogs/compute/introducing-the-c-lambda-runtime/ Now, the first example works and when I run a testcase all is functioning properly…
Mart
  • 475
  • 4
  • 21
1
vote
0 answers

No Windows console found. Are you running cmd.exe? for simple AWScli commands when sending output to file

Windows 10. cmd, mobaxterm, ps, fluent, taby , vscode terminal etc. I have seen other similar questions and also looked at many possible solutions to this. I should point out that other non-awscli commands outputted to a file work just fine. Only…
Fayaz
  • 79
  • 1
  • 10
1
vote
2 answers

Sending email via SES in localstack, with an event destination with a sns topic, not working

I am trying to receive a message in a queue when triggering an email with SES in localstack. The SES service is using an event destination that connects to a SNS topic. The SNS topic is connected to a queue, where I want to receive the bounce, click…
AlbertMunichMar
  • 1,680
  • 5
  • 25
  • 49
1
vote
1 answer

pipe the output of `aws glue list-jobs` to `aws glue start-job-run`

How do I pipe the output of aws glue list-jobs... to aws glue start-job-run in powershell and bash? Ex. something like: aws glue list-jobs --tags name=something (magic here) | aws glue start-job-run (magic here) This being a solution to the problem:…
ams1
  • 113
  • 8
1
vote
2 answers

Can I set the TTL value while enabling TTL on a DynamoDB table via the AWS CLI?

We have a requirement to delete DynamoDB items that are 3 days old so I tried default AWS CLI update query but the query doesn't take input value for TTL. As per documentation, I'm following the below query to activate DynamoDB TTL (Time to Live)…
Mysterious288
  • 365
  • 5
  • 24
1
vote
0 answers

aws s3 moving file is copying again instead of just renaming the path

I have a file in s3 bucket S3://mainbucket/fold1/fold2/file.txt Now i want to move to the below path S3://mainbucket/fold1/file.txt I am doing aws s3 mv S3://mainbucket/fold1/fold2/file.txt S3://mainbucket/fold1/file.txt I see its copying the…
Santhosh
  • 9,965
  • 20
  • 103
  • 243
1
vote
1 answer

How can I delete AWS CLI configure access key and secret Access key of AWS CLI on command prompt?

I entered incorrect credentials on the secret access key and region name of the AWS CLI configure command on command prompt. I never found a way to change the secret access key. I entered: AWS Access Key AWS Secret Access Key Default region name…
1
vote
0 answers

AWS CLI failed to display response

I am using aws-cli version 2.8.8. Connecting to AWS using LDAP and it is successful. If I run command aws s3 ls then I get the results. However when I try run command aws dynamodb list-tables nothing get displayed. Same for aws ec2…
1
vote
0 answers

How to merge two buckets from the same endpoint with different credentials?

If I had a bucket called s3://jack/ on gateway.example.com with it's own access key and secret access key, and another bucket called s3://joe/ on gateway.example.com with another access key and secret key, would it be possible to merge the buckets…
zjavas
  • 23
  • 2
1
vote
2 answers

Need to upload/copy ALL files from specific local directory to AWS S3 bucket using AWS CLI on Ubuntu 22.04

I am working on an Ubuntu 22.04 desktop using AWS CLI. I am trying to upload ALL files located in a specific local directory to our S3 bucket using AWS CLI but I'm getting an error. Here is my command and the error: ms@ms01:~$ aws s3 cp…
Melinda
  • 1,501
  • 5
  • 25
  • 58
1
vote
1 answer

Why am I having AWS credential errors in my AWS terminal setup?

Wanted to learn AWS and found the tutorial Build a Serverless Web Application. In my research the closest Q&A I could find for my issue was Unable to locate credentials aws cli. My process has been: Created a repo in Github Navigated to IAM and…
DᴀʀᴛʜVᴀᴅᴇʀ
  • 7,681
  • 17
  • 73
  • 127
1
vote
1 answer

AWS SSO - List users assigned with an aws account

I have the list of all AWS accounts in my organization. I need to list the users present in each account via API. Through the documentation List account assigments, I can list only passing as parameters account + permission set. I wanted it to list…
1
vote
0 answers

how to send namespace in amazon-managed-prometheus via awscli

I want send the PromQL query to amazon-managed-prometheus via awscli, But I am not able to filter result based on namespace. I am able to send the same filter in local prometheus via prometheus_api_client.PrometheusConnect, but can not use the same…
user87005
  • 964
  • 3
  • 10
  • 27
1
vote
1 answer

How to create multiple profiles using Minio and aws-cli

I'm trying to connect to several profiles of local Minio instances using aws-cli without success. The problem persists when I remove --endpoint_url from the command. You will find the configuration files below With --endpoint-url: aws --profile…
Adil Blanco
  • 616
  • 2
  • 6
  • 23