Questions tagged [aws-cloudshell]
24 questions
3
votes
1 answer
Unable to install postgresql-client client on AWS Cloud Shell
I'm trying to install postgresql client from AWS Cloud shell, however getting below error:
Preparing your terminal...
Failed to open session : Timed out while opening the session
Trying to open session (Retrying. Attempt #1)
Connection is lost.…

Pravin Maske
- 43
- 8
3
votes
2 answers
How to add headers in existing AWS API gateway integration request
I have created a Integration Request, I am trying to add headers to that request using AWS cloudshell:
aws apigateway update-integration --rest-api-id abcdefgh --resource-id
abcdefghj --http-method POST…

HMT
- 2,093
- 1
- 19
- 51
3
votes
1 answer
How can I create profiles in the AWS CloudShell to access different roles?
The new CloudShell service from AWS allows me to get a CLI session directly within the browser.
In this session, I am acting under my currently active role:
$ aws sts get-caller-identity
{
"UserId": "AROA2MDGRZUIRD434HHAF:johndoe",
…

mat
- 1,645
- 15
- 36
3
votes
1 answer
How to generate AWS CLI equivalent of any console operation
How can I find the CLI equivalent of any console operation in AWS?
Is there any way to generate that?

rooni
- 1,036
- 3
- 17
- 33
2
votes
1 answer
AWS CloudShell Error 'Unable to start the environment...'
It works in my root account but not in the IAM user account even though i have attached 'AWSCloudShellFullAccess' policy to the user group. And i have checked in policy simulator there i see no errors. I even switched browsers(root user works but…
user17037928
2
votes
1 answer
How to npm install in AWS CloudShell?
I'm trying to install an npm package in the new AWS CloudShell (comes with pre-configured Node.js support) - but I'm getting a EACCESS error.
npm ERR! code EACCES
npm ERR! syscall access
npm ERR! path /usr/lib/node_modules
npm ERR! errno -13
npm…

Felipe Hoffa
- 54,922
- 16
- 151
- 325
1
vote
1 answer
Running multiple MSCK REPAIR TABLE statements in AWS Athena
So I'm trying to execute the following in AWS Athena which allows to run only one statement at a time:
MSCK REPAIR TABLE some_database.some_table_001;
MSCK REPAIR TABLE some_database.some_table_002;
MSCK REPAIR TABLE…

P.Max
- 11
- 2
1
vote
0 answers
AWS CloudShell not working after creating a new account with Control Tower
I have created a new testing AWS account in my organization with Control Tower, a new user was assigned to the new account with IAM Identity Center, and as I'm using this account to run testing, so my user has been assigned with an explicit full…

Benjamin Valiente
- 11
- 3
1
vote
1 answer
React-snap faild in postbulid when uploading to AWS Amplify
I`ve pushed my react project to AWS amplify with git. I installed the react-snap package for SEO reasons. When inspecting the Amplify Console, it shows that the provision step succeeded, but the building step failed. The error log shows this:
Some…

Heinz
- 115
- 2
- 9
0
votes
0 answers
cloudshell rename only specific files that has date timestamp
i am trying to rename 1000s of csv files that are in s3 bucket which has date part in it and struggling with code.
s3://inventoryfiles/warehouse/2020/jan/inv12_2020_03_01_22_01_45.csv…

user10591810
- 49
- 3
0
votes
1 answer
rename files with dates timestamp in aws cloudshell
i am trying to rename 100s of csv files that are in s3 bucket which has date part in it and struggling with…

user10591810
- 49
- 3
0
votes
0 answers
How to install postgres-client 'psql' in AWS CloudShell permanently
I have successfully installed postgresql-client 'psql' in the AWS CloudShell. When I close the instance and re-open it. The installation is not there, I am getting "-bash: psql: command not found".
It seems like the installation is only for the…

Thaz
- 35
- 9
0
votes
0 answers
(RESOLVED) AWS CloudShell not accepting ARN for Comprehend Document Classifier?
I'm configuring a project through CloudShell where I am using it to design an AWS Comprehend Classifier for a college final project. I'm using this guide to be precise. The step that I'm having trouble on is training the Comprehend Document…

UndeclaredWars
- 1
- 1
0
votes
2 answers
How to get N files from S3 bucket ordered by max size and modified after certain date using CloudShell?
I tried to use this command:
aws s3api list-objects-v2 --bucket BUCKETNAME --query 'Contents[?LastModified>=2022-12-28].Key && sort_by(Contents, &Size)[-5:]'
And while it searches for 5 files ordered by max size, the files may be last modified…

Andrew Savetchuk
- 1,552
- 1
- 16
- 21
0
votes
0 answers
scripted file upload to aws cloudshell environment
We maintain dozens of developer accounts on AWS and for maintenance purposes it would be amazing if on all cloudshell environments we would have a set of scripts available.
It is possible to upload files to the cloudshell environment manually by…

rexford
- 5,192
- 5
- 27
- 40