即使有条件,AWS CloudFormation也会创buildEFS
我有一个CloudFormation脚本具有以下内容: "Parameters": { "optionalExistingEFSDrive": { "Description": "EFS drive to store client content. If left empty a new drive will be created automatically.", "Type": "String", "Default": "" } }, "Conditions": { "CreateEFSDrive": { "Fn::Equals": [ { "Ref": "optionalExistingEFSDrive" }, "" ] }, }, "Resources": { "WebFileSystem": { "Type": "AWS::EFS::FileSystem", "Condition": "CreateEFSDrive", "DeletionPolicy": "Retain", "Properties": { "FileSystemTags": […]