You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As with most other resource policies and identity policies, you're able to define these in YAML within a CloudFormation template. However, with the AWS::Logs::ResourcePolicy resource, you have to define the JSON string within your CloudFormation, which is less ideal. For instance, this example resource will fail with an error message Properties validation failed for resource MyLogGroupPolicy with message: #/PolicyDocument: expected type: String, found: JSONObject:
Name of the resource
AWS::Logs::ResourcePolicy
Description
As with most other resource policies and identity policies, you're able to define these in YAML within a CloudFormation template. However, with the
AWS::Logs::ResourcePolicy
resource, you have to define the JSON string within your CloudFormation, which is less ideal. For instance, this example resource will fail with an error messageProperties validation failed for resource MyLogGroupPolicy with message: #/PolicyDocument: expected type: String, found: JSONObject
:Other Details
Resource spec: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-resourcepolicy.html
AWS::IAM::Policy
spec showing the definition of a policy in YAML: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iam-policy.htmlThe text was updated successfully, but these errors were encountered: