AWS存储、内容交付与计算服务全解析
1. 验证EFS文件系统连接
为了确认EFS文件系统、挂载目标和安全组是否正常工作,你可以添加客户端实例进行连接。具体操作步骤如下:
1. 配置实例参数 :在顶级 Parameters 部分添加以下参数:
MountPoint:
Description: The path on disk to mount the EFS file system
Type: String
Default: /mnt/efs
KeyName:
Description: The SSH key pair allowed to connect to the client instance
Type: AWS::EC2::KeyPair::KeyName
- 添加自动扩展组 :在
Resources部分添加AutoScalingGroup,确保服务器无论位于哪个可用区(AZ),都能通过本地挂载点访问EFS文件系统:
AutoScalingGroup:
Type: AWS::AutoScaling::AutoScalingGroup
DependsOn: MountTargetA
Properties:
MinSize: 2
MaxSize: 2
超级会员免费看
订阅专栏 解锁全文

被折叠的 条评论
为什么被折叠?



