本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
AWS-ExtendEbsVolume
Description
AWS-ExtendEbsVolume Runbook 會增加 Amazon EBS 磁碟區的大小,並擴展檔案系統。此自動化支援 xfs和 ext4 檔案系統。
文件類型
自動化
擁有者
Amazon
平台
Linux、Windows
參數
-
AutomationAssumeRole
類型:字串
描述:(選用) 允許 Systems Manager Automation 代表您執行動作的 (IAM) 角色的 AWS Identity and Access Management Amazon Resource Name (ARN)。如果未指定角色,Systems Manager Automation 會使用啟動此 Runbook 之使用者的許可。
-
DriveLetter
類型:字串
描述:(選用) 您要延伸其檔案系統的磁碟機字母。Windows 執行個體需要此參數。
-
InstanceId
類型:字串
描述:(選用) 您要延伸之 Amazon EBS 磁碟區的 Amazon EC2 執行個體 ID。
-
KeepSnapshot
類型:布林值
預設:true
描述:(選用) 決定是否在增加 Amazon EBS 磁碟區大小之前,先建立快照。
-
MountPoint
類型:字串
描述:(選用) 您要擴充其檔案系統之磁碟機的掛載點。Linux 執行個體需要此參數。
-
SizeGib
類型:字串
描述:(必要) 您要修改 Amazon EBS 磁碟區的大小,以 GiB 為單位。
-
VolumeId
類型:字串
描述:(必要) 您要擴展的 EBS 磁碟區的 ID。
必要的 IAM 許可
AutomationAssumeRole 參數需要下列動作才能成功使用 Runbook。
-
ec2:CreateSnapshot -
ec2:CreateTags -
ec2:DeleteSnapshot -
ec2:DescribeVolumes -
ec2:ModifyVolume -
ssm:DescribeInstanceInformation -
ssm:GetCommandInvocation -
ssm:SendCommand
文件步驟
-
aws:executeScript- 將磁碟區的大小增加到您在VolumeId參數中指定的值,並擴展檔案系統。