aws(学习笔记第九课)
- 使用
AWS
的网络存储EBS
学习内容:
- 使用
AWS
的网络存储EBS
1.使用AWS
的网络存储EBS
EBS
是什么
EBS
是aws Elastic Block Store
的缩写,就是AWS
的弹性数据块存储。EBS
有如下特点。- 它不属于
EC2
的一部分,独立存在。 - 可以独立存在或者同一时间挂载到一个
EC2
实例上。
注意,同一时间不能挂在到两个以及两个以上的EC2
- 可以像普通的磁盘一样使用。
- 它不属于
- 练习使用
EBS
- 创建一个
EBS
,之后用EC2
进行挂载。{ "AWSTemplateFormatVersion": "2010-09-09", "Description": "(EBS)", "Parameters": { "KeyName": { "Description": "Key Pair name", "Type": "AWS::EC2::KeyPair::KeyName", "Default": "my-cli-key" }, "VPC": { "Description": "Just select the one and only default VPC", "Type": "AWS::EC2::VPC::Id" }, "Subnet": { "Description": "Just select one of the available subnets", "Type": "AWS::EC2::Subnet::Id" }, "AttachVolume": { "Description": "Should the volume be attached?", "Type": "String", "Default": "yes", "AllowedValues": ["yes", "no"] } }, "Mappings": { "EC2RegionMap": { "ap-northeast-1": { "AmazonLinuxAMIHVMEBSBacked64bit": "ami-cbf90ecb"}, "ap-southeast-1": { "AmazonLinuxAMIHVMEBSBacked64bit":
- 创建一个