UNPKG

serverless-custom-buckets

Version:
53 lines (48 loc) 1.56 kB
service: serverless-custom-buckets-example provider: name: aws apiName: serverless-custom-buckets-example runtime: nodejs8.10 stage: dev region: eu-west-2 custom: customBuckets: - name: test-bucket-1 config: versioning: true serverSideEncryption: AES256 publicAccess: PublicAccessBlockConfiguration: BlockPublicAcls: true BlockPublicPolicy: true IgnorePublicAcls: true RestrictPublicBuckets: true - name: test-bucket-2 config: versioning: true serverSideEncryption: AES256 publicAccess: PublicAccessBlockConfiguration: BlockPublicAcls: true BlockPublicPolicy: true IgnorePublicAcls: true RestrictPublicBuckets: true cors: CORSConfiguration: CORSRules: - AllowedHeaders: - '*' AllowedMethods: - 'HEAD' AllowedOrigins: - '*' MaxAgeSeconds: 3000 plugins: - serverless-custom-buckets functions: helloServerless: handler: index.handler events: - http: path: hello method: get