templates/main.template.yaml [607:637]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      - PolicyName: s3AllowReadPolicy
        PolicyDocument:
          Version: '2012-10-17'
          Statement:
          - Effect: "Allow"
            Action:
            - s3:PutObject
            - s3:DeleteObject
            - s3:GetObject
            - s3:ListBucket
            - s3:RestoreObject
            Resource:
              - !Join
                - ''
                - - 'arn:'
                  - !Ref AWS::Partition
                  - ':s3:::'
                  - !If
                    - HasS3BucketName
                    - !Ref S3Bucket
                    - !Sub ${AWS::StackName}-${AWS::Region}
              - !Join
                - ''
                - - 'arn:'
                  - !Ref AWS::Partition
                  - ':s3:::'
                  - !If
                    - HasS3BucketName
                    - !Ref S3Bucket
                    - !Sub ${AWS::StackName}-${AWS::Region}
                  - '/*'
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



templates/main.template.yaml [1090:1120]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      - PolicyName: s3AllowReadPolicy
        PolicyDocument:
          Version: '2012-10-17'
          Statement:
          - Effect: "Allow"
            Action:
            - s3:PutObject
            - s3:DeleteObject
            - s3:GetObject
            - s3:ListBucket
            - s3:RestoreObject
            Resource:
              - !Join
                - ''
                - - 'arn:'
                  - !Ref AWS::Partition
                  - ':s3:::'
                  - !If
                    - HasS3BucketName
                    - !Ref S3Bucket
                    - !Sub ${AWS::StackName}-${AWS::Region}
              - !Join
                - ''
                - - 'arn:'
                  - !Ref AWS::Partition
                  - ':s3:::'
                  - !If
                    - HasS3BucketName
                    - !Ref S3Bucket
                    - !Sub ${AWS::StackName}-${AWS::Region}
                  - '/*'
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



