记得当时考试的时候有道题是问的这个问题,当中有两个选项我犹豫不定。所以特意总结一下如何将一个EBS Volume加密。
首先说,不能直接给Volume加密,没有这个功能。所以只能“曲线救国”,使用snapshot来做。这里的重点是第四步,用snapshot来复制snapshot的时候才能选择加密。
- Stop the instance
- Go to Volume option
- Create a snapshot for your EBS volume
- Copy the snapshot to change it to an encrypted snapshot
- Create EBS volume from the new snapshot
- Remove the old unencrypted volume then attach the encrypted volume.
- Start the instance
