sh EC2

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh EC2相关的知识,希望对你有一定的参考价值。

# PERSIS VOLUME ATTACHED TO A RUNNING INSTANCE
# docs https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/terminating-instances.html#delete-on-termination-running-instance

# https://alexjoz.gitbooks.io/code-life/content/chapter4.html

# mapping.json
[
  {
    "DeviceName": "/dev/sda1",
    "Ebs": {
      "DeleteOnTermination": false
    }
  }
]

# Via AWS CLI
aws ec2 modify-instance-attribute --instance-id i-0e8f655ecb1168db7 --region us-east-2 --block-device-mappings file://mapping.json

以上是关于sh EC2的主要内容,如果未能解决你的问题,请参考以下文章

sh ec2别名

sh EC2实例的内存监控

sh 获取EC2实例标记

sh EC2

sh AWS EC2自动恢复

sh ELB注册/注销ec2