【问题标题】:Create EFS accesspoints for an existing EFS using CloudFormation使用 CloudFormation 为现有 EFS 创建 EFS 接入点
【发布时间】:2021-07-01 04:42:58
【问题描述】:

是否可以通过 CloudFormation 为现有 EFS 创建接入点?

例如,在 CloudFormation 模板中:

先通过参数引用EFS

FileSystemResource:
Type: 'AWS::EFS::FileSystem'
Properties:
  FileSystemId: !Ref some_param
  BackupPolicy:
    Status: ENABLED
  PerformanceMode: generalPurpose
  Encrypted: true
  ThroughputMode: bursting

然后引用EFS来创建接入点?

SomeAccessPoint:
Type: 'AWS::EFS::AccessPoint'
Properties:
  FileSystemId: !Ref FileSystemResource

【问题讨论】:

  • 进展如何?仍然不清楚为什么可以这样做?

标签: amazon-web-services amazon-cloudformation amazon-efs


【解决方案1】:

您必须先将现有文件系统import 导入 CloudFormation,然后才能执行此操作。

【讨论】:

  • 如何引用已导入 CloudFormation 堆栈的 EFS?目标是将接入点和 EFS 放在一个堆栈中,以便将它们的生命周期捆绑在一起。
  • @KeyserSoze 就像你现在在SomeAccessPoint 中一样。 FileSystemIdFileSystemResource 中是错误的。
猜你喜欢
  • 2021-09-30
  • 2021-07-03
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2021-01-11
  • 2017-08-08
  • 2018-01-16
相关资源
最近更新 更多