我需要用加密的 EFS 替换 EFS。计划是将其所有内容复制到 S3,使用 S3 内容填充新 EFS,然后卸载旧 EFS 并将新 EFS 安装在同一位置。
问题是,我不知道如何找到挂载到该特定 EFS 的所有 EC2 实例。我已经浏览了 aws efs
文档,但没有任何东西可以满足我的需求。
最佳答案
没有一个地方或命令可以列出挂载 EFS 的 ec2 实例。
我建议做的下一个最好的事情是使用带有 EFS 指标的 Cloudwatch 仪表板。 There is one metric that shows you the number of EC2 instances that are connected to your EFS share: It is the Sum
statistic of the ClientConnections
metric under EFS 。
您可以轻松创建 Cloudwatch 仪表板 -
该图将是与之的连接数。当您将 EC2 从非加密驱动器移开时,这个数字应该会下降。
最终的仪表板将如下所示:
关于amazon-efs - 如何找到挂载到特定 EFS 的所有 EC2 实例,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55697577/