News for hackers. Stuff that matters.
Re:AWS CloudShell by bgs113 on Tuesday December 15, 2020 @12:09PM (#25432249)
> CloudShell is intended to be used from the AWS Management Console and does not currently support programmatic interaction

Which unfortunately means I can only access this from a browser window and can't start up a session from my own terminal. Sure would be nice to be able to launch a secure, remote CLI without all the limitations of a web client.

Re:AWS CloudShell by alFReD-NSH on Tuesday December 15, 2020 @12:25PM (#25432461)
The point of CloudShell is to easy use AWS CLI without setting it up and setting the credentials, however to use this from your own terminal, it means you have to install software and then configure credentials, well then that would exactly same as installing AWS CLI and configuring it.
Re:AWS CloudShell by yjftsjthsd-h on Tuesday December 15, 2020 @01:07PM (#25433007)
On the flip side: How is installing a browser and authenticating in it any better than installing openssh and/or awscli and authenticating through them?
Re:AWS CloudShell by Thorrez on Wednesday December 16, 2020 @12:41AM (#25439475)
I think it's assumed that everyone already has a browser installed. Also to authenticate through openssh and/or awscli it will likely require some browser interaction, so that would require installing a browser if one isn't installed.
Re:AWS CloudShell by acdha on Tuesday December 15, 2020 @05:51PM (#25436406)
MFA and persistence — especially if you use SSO. If you have credentials sitting around in your home directory they can be harvested from a standard location by malware and people are often very slow to rotate them. In contrast, if you're following Amazon's guidelines your console login will already have MFA and be using short-term credentials.
Re:AWS CloudShell by yjftsjthsd-h on Tuesday December 15, 2020 @06:08PM (#25436629)
awscli directly supports 2fa (https://aws.amazon.com/premiumsupport/knowledge-center/authe... ); I guess having to harvest cookies out of a browser profile is more work, but it seems like a small difference
Re:AWS CloudShell by acdha on Tuesday December 15, 2020 @11:17PM (#25438999)
It supports some MFA (e.g. not U2F / FIDO) and not if you use SSO.

The browser profile is harder to exfiltrate, in part because modern OSes have ways to restrict access to particular processes, but that was also only part of the benefit: the main thing is the duration of the session. Tons of people leave AWS keys sitting around in ~/.aws for ages.

You can setup schemes with STS but not everyone remembers that and with this approach you have a very simple answer: it always uses STS, there's never a file sitting around for someone to accidentally save somewhere they shouldn't, etc.

Nothing here is something you couldn't do on your own — it's just a very easy option with safe defaults.

Re:AWS CloudShell by joseph on Tuesday December 15, 2020 @12:31PM (#25432532)
I think the issue is that web based terminals aren't very usable, as they mess with keybindings and line wrapping, for example. At least that is the case with GCP Cloud Shell. It makes it pretty difficult to use for even basic things like running vi or emacs.
Re:AWS CloudShell by isaveyou on Tuesday December 15, 2020 @02:03PM (#25433702)
Doesnt save link as a PWA make it behave like yet another electron app with regards to key capture?
Re:AWS CloudShell by ohyeshedid on Tuesday December 15, 2020 @04:50PM (#25435665)
You can connect via ssh to a GCP cloudshell instance, you just need to spin it up first.
Re:AWS CloudShell by the8472 on Tuesday December 15, 2020 @01:23PM (#25433183)
The problem is that AWS CLI without access to your custom workflows in the form of aliases, scripts and what-not is far less useful.

Or perhaps even entirely useless if you'd normally use it as part of a local build and test process.

Re:AWS CloudShell by staticassertion on Tuesday December 15, 2020 @12:26PM (#25432481)
Re:AWS CloudShell by hrez on Tuesday December 15, 2020 @02:54PM (#25434305)
to cloudshell?
Re:AWS CloudShell by Kiro on Tuesday December 15, 2020 @03:12PM (#25434563)
What would the difference be? Isn't CloudShell just a shell that you can easily access from the browser?
Re:AWS CloudShell by hrez on Tuesday December 15, 2020 @03:17PM (#25434633)
managed vs self-managed among other things
Re:AWS CloudShell by gizmodo59 on Tuesday December 15, 2020 @12:26PM (#25432482)
I think something like this: $gcloud alpha cloud-shell ssh

I love to be able to use my terminal client than browser. This is neat because I don't want to maintain another ec2 myself even if its in the free tier.

Re:AWS CloudShell by bdcravens on Tuesday December 15, 2020 @12:25PM (#25432453)
I think this is meant as an alternative to having the cli installed locally. What is the advantage to you of running a remote AWS cli session from your terminal?
Re:AWS CloudShell by derefr on Tuesday December 15, 2020 @12:46PM (#25432716)
The same thing you get from AWS WorkSpaces, but in CLI form: a machine that's running within/adjacent to your corporate VPC, with fast high-bandwidth access to all your internal infrastructure, especially things like storage buckets. As opposed to your own machine, running half-way across the country where you might only be able to achieve 10Mbps between you and the AWS datacenter.

Think "I'll run this arbitrary script to batch-process input-bucket X to output-bucket Y, enriching the data by calling out to internal service Foo and external service Bar." The kind of thing Google's Cloud Dataflow is for, but one-off and freeform.

—also, for a lot of people, just the fact that things are running in the cloud, means they're running more reliably. If you want to run something that's going to take four days to finish, you don't want to do it on your own workstation. What if the power cuts out in your house? (Just the fact that you can restart/OS-update your local computer and "keep your place" in the remote is nice, too.) You want a remote VM somewhere (preferably with live migration in case of host maintenance) running screen(1) or tmux(1), with your job inside it. Of course, you can just create a regular VM in your VPC, and do it on top of that; but a cloud shell abstracts that away, and "garbage collects" after itself if you leave it idle.

Re:AWS CloudShell by hrez on Tuesday December 15, 2020 @03:03PM (#25434430)
Except it doesn't run in any of your VPC's.
Re:AWS CloudShell by _alex_ on Tuesday December 15, 2020 @09:17PM (#25438226)
Not yet
Re:AWS CloudShell by RKearney on Tuesday December 15, 2020 @12:16PM (#25432346)
You mean like Cloud9?

https://aws.amazon.com/cloud9/

Re:AWS CloudShell by NeutronStar on Tuesday December 15, 2020 @12:22PM (#25432417)
"AWS Cloud9 is a cloud-based integrated development environment (IDE) that lets you write, run, and debug your code with just a browser."

I would say no.

Re:AWS CloudShell by RKearney on Tuesday December 15, 2020 @12:31PM (#25432523)
You can easily SSH to a Cloud9 instance, so it would satisfy the criteria given.

Alternatively, one can launch a custom AMI in EC2 to do whatever they want.

Multiple solutions already exist for the given problem, therefore yet another AWS service seems unnecessary.

Re:AWS CloudShell by bgs113 on Tuesday December 15, 2020 @01:11PM (#25433045)
Except that Cloud9 requires an EC2 instance and associated spend, whereas CloudShell is free.
Re:AWS CloudShell by _alex_ on Tuesday December 15, 2020 @09:15PM (#25438213)
I think you just described ssh