Below is my code to add policy but not sure what's wrong as its givng error while running for cloud formation as error occurred (ValidationError) when calling the ValidateTemplate operation: Template format error: Number of resources, 201, is greater than maximum allowed, 200\n", "stdout": "", "stdout_lines": []}
AWSTemplateFormatVersion: 2010-09-09
Description: ''
Resources:
PSEJenkinsS3Policy:
Type: 'AWS::IAM::ManagedPolicy'
Properties:
ManagedPolicyName: pse-jenkins-s3-policy
PolicyDocument:
Version: '2012-10-17'
Statement:
- Effect: Allow
Action:
- s3:GetObject
- s3:ListBucket
- s3:ListAllMyBuckets
- s3:PutObject
- s3:PutObjectTagging
Resource:
- arn:aws:s3:::pase-*/*
Outputs:
PSEJenkinsS3PolicyOutput:
Value: !Ref PSEJenkinsS3Policy
Export:
Name: PSEJenkinsS3Policy