在AWS启动实例时,是否有一种方法可以禁用创建.pem文件?
我的问题是:说用户想在AWS中启动一个实例。有没有办法告诉AWS不要让他们使用.pem文件启动它?任何帮助将不胜感激!
My question is about this: Let´s say a user wants to launch an instance in AWS. Is there a way to tell AWS to not let them launch it with a .pem file? Any help would be appreciated!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
使用AWS CLI时,
- 键 - 名称
参数是可选的。来自此链接(大胆的文本矿山)因此,从CLI创建时,您无需提供钥匙对。但是,旋转EC2的UI似乎需要密钥对。
When using the AWS CLI, the
--key-name
parameter is optional. From this link(Bold text mine) So you do not need to supply a key pair when creating from the CLI. However, it looks like the UI to spin up an EC2 requires the key pair though.
当您从GUI控制台或AWS CLI创建任何AWS EC2实例时,附加Keypair始终是可选的。
可以在不使用.pem文件的情况下创建AWS EC2实例,而且如果您配置了 Session Manager ,则可以使用AWS Console GUI登录它。
您可以在CLI命令中删除此参数,并且可以在没有pem文件的情况下完成必要的内容。
-Key-Name< EC2键配对名称>
While You Creating any AWS EC2 instance from the GUI console or AWS CLI, attaching KeyPair is always optional to it.
an AWS EC2 instance can be created without using the .pem file and also if you configure the session manager, you can log in to it using AWS Console GUI.
you can remove this parameter in the CLI command and that will do the needful without.pem file.
--key-name < ec2-key-pair-name>