Execute file inside AWS CloudShell using lambda

1k Views Asked by At

In AWS CloudShell I have a bash script file that we are using to run some commands inside an EKS cluster in the same region. Everytime I have to manually access the cloud shell and then run the bashscript. is there any automated way of doing this?

I am thinking to have an AWS Lambda that can access the cloudshell and run the script, But I cant find any information about how we can access cloudshell files using Lambda. Any help or suggestion on this? Thanks

1

There are 1 best solutions below

3
On

Sadly you can't do this. CloudShell is only for an interactive work through browser.

Depending on what exactly do you want to do, you can run your script in lambda directly, or ECS task or even EC2 instance.