下面是我添加策略的代码,但不确定在调用 ValidateTemplate 操作时发生错误 (ValidationError) 时出现错误,因为它在运行云形成时出现错误:模板格式错误:资源数,201,大于允许的最大值,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