This property accepts a Json type, similar to AWS::S3::BucketPolicyPolicyDocument property. I can pass the bucket policy through a parameter with no issues.
On the other hand, PolicyDocument of bucket policy resource accepts both object and string value type.
"PolicyDocument" : {
"description" : "A policy document containing permissions to add to the specified bucket. In IAM, you must provide policy documents in JSON format. However, in CloudFormation you can provide the policy in JSON or YAML format because CloudFormation converts YAML to JSON before submitting it to IAM.",
"type" : [ "object", "string" ]
}
Request
From the investigation above, I believe this use case can be fulfilled if FileSystemPolicy accepts both object and string. Please let us know otherwise.
Hence, I would like to request for AWS::EFS::FileSystem resource to support String value for FileSystemPolicy property.
Name of the resource
AWS::EFS::FileSystem
Resource name
AWS::EFS::FileSystem
Description
Use case
I would like to provide the following file system policy through a CloudFormation String parameter
FSPolicy
:Policy
CFN template
However, this fails with
This property accepts a
Json
type, similar toAWS::S3::BucketPolicy
PolicyDocument property. I can pass the bucket policy through a parameter with no issues.Schema
Looking at the resource type schema for EFS FS, I see that it accepts
object
value type.On the other hand,
PolicyDocument
of bucket policy resource accepts bothobject
andstring
value type.Request
From the investigation above, I believe this use case can be fulfilled if
FileSystemPolicy
accepts bothobject
andstring
. Please let us know otherwise.Hence, I would like to request for AWS::EFS::FileSystem resource to support String value for FileSystemPolicy property.
Thank you!
Other Details
No response