Questions tagged [aws-cloudshell]
The aws-cloudshell tag has no usage guidance.
aws-cloudshell
26
questions
0
votes
0
answers
38
views
AWS CloudShell: Timed out
I am attempting to open CloudShell on my AWS account with administrative access, but I keep encountering the following error:
Failed to open session: Timed out while opening the session
I have tried ...
-1
votes
1
answer
150
views
How to fetch user's (my) public IP address inside AWS CloudShell?
I'm not looking for the public IP address of CloudShell; I know that I can find it out by hitting some external website.
I would like to find out what my public IP address is when I'm connected to ...
0
votes
1
answer
798
views
Connecting to EC2 instance via CloudShell using its private IP
I am trying to connecting to an EC2 instance via CloudShell.
When I use its public IPv4 DNS it works but when I use its private IP I get the following message:
connect to host 172.xx.xx.xxx port 22: ...
1
vote
0
answers
179
views
Downloading aws cloudshell file to local windows machine
I tried to download cloudshell file to windows machine. But error showing 'Unable to download the file. Check the file name and path and try again.'. What is the right path I have to provide? Can ...
0
votes
1
answer
167
views
How can I add request header parameters in HTTP integration WebSocket api gateway AWS
I'm new to AWS. I want to add header parameters to my HTTP request. I tried the below command in CloudShell but it was not working.
aws apigatewayv2 update-integration --integration-id xxx --api-id ...
0
votes
1
answer
1k
views
AWSCloudShell - CDK Bootstrap failure with NodeJS version 16 EOL, how to upgrade?
I am following a tutorial on CDK using AWSCloudShell, and installed it using npm command:
sudo npm install -g aws-cdk
However, when I tried running the CDK command cdk bootstrap provides this error:
...
0
votes
1
answer
107
views
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 code.
s3://inventoryfiles/warehouse/2020/jan/inv12_20200301_220145.csv
s3://inventoryfiles/...
1
vote
0
answers
538
views
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 ...
0
votes
2
answers
195
views
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 ...
1
vote
1
answer
641
views
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;
...
1
vote
0
answers
766
views
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 ...
4
votes
1
answer
4k
views
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 ...
0
votes
1
answer
615
views
AWS CloudShell - List instances by ARN prefix
In AWS Backup, I have created a resource assignment to a backup-plan, which targets all EC2 instances.
The ARN prefix looks like this:
arn:aws:ec2:*:*:instance/*
How can I list all instances that ...
0
votes
1
answer
691
views
How to exclude a specific user when deleting all user in Cognito user pool
I have a script I use to remove all users from a user pool on a regular basis for testing. There is however one user that constantly needs to be manually re-created as it should not get removed when ...
0
votes
1
answer
622
views
Difference of "zsh" vs "source zsh" in ".bashrc"
Amazon recommends adding zsh to .bashrc to change default shell for AWS CloudShell, since chsh somehow doesn't work. As I understand correctly, zsh runs in a child process. I wonder if I could add ...