TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: AWS CloudShell Equivalent?

3 点作者 helsontaveras18超过 2 年前
My engineering team has created a suite of CLI tools that can create users, interact with APIs, modify data, etc. It’s basically a CLI interface on top of our business logic.<p>It became so useful for testing purposes that I started using it for day-to-day operations. When ops makes a request, I SSH into our production environment (running in a secure EC2 instance) and run the CLI.<p>We use Retool for internal tools, but it’s become way faster to iterate on this terminal than to iterate on a UI, write the APIs, and maintain both the Retool and terminal app.<p>I’d like to expose this terminal application behind our private company VPN to specific team members in a controlled way. Really what I want is AWS CloudShell, and I want it to only run that specific script.<p>Is there a way to do this using open source tools?

3 条评论

awsanswers超过 2 年前
I&#x27;m not 100% sure of the ask but I think Teleport can do this sort of thing. <a href="https:&#x2F;&#x2F;goteleport.com&#x2F;docs&#x2F;" rel="nofollow">https:&#x2F;&#x2F;goteleport.com&#x2F;docs&#x2F;</a><p>also -<p>AWS has AWS Systems Manager. Any system can run AWS SSM agent and SSM Documents define scripts that can be run on machines running SSM agent. On demand or scheduled, with some dynamic inputs etc.
评论 #34791004 未加载
mtmail超过 2 年前
Users can ssh but the server admin can limit which commands they&#x27;re able to run by setting a different shell command, e.g. <a href="https:&#x2F;&#x2F;www.linuxshelltips.com&#x2F;restrict-ssh-user-commands&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.linuxshelltips.com&#x2F;restrict-ssh-user-commands&#x2F;</a><p>So you could instruct users to run &quot;ssh me@cli-server.internal &#x27;cli-command --param1 --param2&#x27;&quot; without them having extra access to the server.<p>That said even in school it was a fun game trying to get around such limitations, e.g. trying to crash the script to get shell access.
perpil超过 2 年前
I&#x27;m also not quite sure about the ask, but if you want to have a runbook or documentation that authorizes specific GitHub users&#x2F;teams&#x2F;orgs, prompts them for inputs and builds the exact commands they need to run, optionally with scoped temporary AWS credentials, you might check out Speedrun. <a href="https:&#x2F;&#x2F;speedrun.nobackspacecrew.com" rel="nofollow">https:&#x2F;&#x2F;speedrun.nobackspacecrew.com</a>