Repository: serverless/serverless (JavaScript) — Bug Fix

Issue:
cloudFront events using originPath to distinguish origins
# Bug Report

CloudFront Origins created using CloudFront events try to distinguish origins based on the OriginPath and not the pathPattern

## Description

<!-- Please use https://forum.serverless.com, StackOverflow or other forums for Q&A -->
<!-- Please answer ALL the question below. Otherwise we probably have to close the issue due to missing information -->

1. What did you do?
Tried to create a service with cloudfront and multiple origins

2. What happened?
only a single origin was created

3. What should've happened?
There should have been a different origin for each domain

4. What's the content of your `serverless.yml` file?

```
service:
  name: cloudfront-test

plugins:
  - serverless-webpack

provider:
  name: aws
  runtime: nodejs10.x
  versionFunctions: false

package:
  individually: true

custom:
  cognito:
    userPoolId: us-east-1_PaQ64Aj9U
    clientId: 6v0ob3bhc5dkqpl8rtugobnf3n
    authDomain: auth-cf6b415c.auth.us-east-1.amazoncognito.com
  origins:
    default:
      DomainName: example.org
      CustomOriginConfig:
        OriginProtocolPolicy: http-only
    dummy:
      DomainName: example.com
      CustomOriginConfig:
        OriginProtocolPolicy: match-viewer

functions:
  checkAuth:
    handler: src/check-auth/index.handler
    events:
      - cloudFront:
          eventType: viewer-request
          origin: ${self:custom.origins.default}
  parseAuth:
    handler: src/parse-auth/index.handler
    events:
      - cloudFront:
          eventType: viewer-request
          pathPattern: /loginredirect
          origin: ${self:custom.origins.other}
  refreshAuth:
    handler: src/refresh-auth/index.handler
    events:
      - cloudFront:
          eventType: viewer-request
          pathPattern: /refreshauth
          origin: ${self:custom.origins.dummy}
  signOut:
    handler: src/sign-out/index.handler
    events:
      - cloudFront:
          eventType: viewer-request
          pathPattern: /signout
          origin: ${self:custom.origins.dummy}
```

5. What's the output you get when you use the `SLS_DEBUG=*` environment variable (e.g. `SLS_DEBUG=* serverless deploy`)

```
Serverless: Load command config
Serverless: Load command config:credentials
Serverless: Load command create
Serverless: Load command install
Serverless: Load command package
Serverless: Load command deploy
Serverless: Load command deploy:function
Serverless: Load command deploy:list
Serverless: Load command deploy:list:functions
Serverless: Load command invoke
Serverless: Load command invoke:local
Serverless: Load command info
Serverless: Load command logs
Serverless: Load command metrics
Serverless: Load command print
Serverless: Load command remove
Serverless: Load command rollback
Serverless: Load command rollback:function
Serverless: Load command slstats
Serverless: Load command plugin
Serverless: Load command plugin
Serverless: Load command plugin:install
Serverless: Load command plugin
Serverless: Load command plugin:uninstall
Serverless: Load command plugin
Serverless: Load command plugin:list
Serverless: Load command plugin
Serverless: Load command plugin:search
Serverless: Load command config
Serverless: Load command config:credentials
Serverless: Load command rollback
Serverless: Load command rollback:function
Serverless: Load command webpack
Serverless: Load command login
Serverless: Load command logout
Serverless: Load command generate-event
Serverless: Load command test
Serverless: Load command dashboard
Serverless: Invoke deploy
Serverless: Invoke package
Serverless: Invoke aws:common:validate
Serverless: Invoke aws:common:cleanupTempDir
Serverless: Invoke webpack:validate
Serverless: Invoke webpack:compile
Serverless: Bundling with Webpack...
Serverless: [AWS sts 200 2.903s 0 retries] assumeRole({
  RoleArn: 'arn:aws:iam::554858243091:role/OrganizationAccountAccessRole',
  RoleSessionName: 'aws-sdk-js-1571433354379'
})
Time: 4579ms
Built at: 18/10/2019 22:15:59
                          Asset      Size  Chunks             Chunk Names
        src/check-auth/index.js   835 KiB       0  [emitted]  src/check-auth/index
src/check-auth/index.js.LICENSE  4.41 KiB          [emitted]  
Entrypoint src/check-auth/index = src/check-auth/index.js
  [2] external "crypto" 42 bytes {0} [built]
 [17] external "querystring" 42 bytes {0} [built]
 [19] ./node_modules/jwks-rsa/lib/JwksClient.js 5 KiB {0} [built]
 [29] ./node_modules/jwks-rsa/lib/errors/index.js 1020 bytes {0} [built]
 [30] ./node_modules/jsonwebtoken/lib/JsonWebTokenError.js 428 bytes {0} [built]
 [36] ./node_modules/jsonwebtoken/index.js 276 bytes {0} [built]
 [53] ./node_modules/jsonwebtoken/decode.js 767 bytes {0} [built]
 [57] ./node_modules/jsonwebtoken/lib/NotBeforeError.js 362 bytes {0} [built]
 [58] ./node_modules/jsonwebtoken/lib/TokenExpiredError.js 395 bytes {0} [built]
[104] ./node_modules/jwks-rsa/lib/index.js 1.18 KiB {0} [built]
[105] ./node_modules/cookie/index.js 3.94 KiB {0} [built]
[111] ./node_modules/jsonwebtoken/verify.js 6.78 KiB {0} [built]
[113] ./node_modules/jsonwebtoken/sign.js 6.66 KiB {0} [built]
[255] ./src/shared/configuration.json 1.06 KiB {0} [built]
[256] ./src/check-auth/index.ts + 2 modules 11.9 KiB {0} [built]
      | ./src/check-auth/index.ts 4.59 KiB [built]
      | ./src/check-auth/validate-jwt.ts 1.38 KiB [built]
      | ./src/shared/shared.ts 5.88 KiB [built]
    + 242 hidden modules
Time: 4269ms
Built at: 18/10/2019 22:15:59
                          Asset       Size  Chunks             Chunk Names
        src/parse-auth/index.js   38.1 KiB       0  [emitted]  src/parse-auth/index
src/parse-auth/index.js.LICENSE  244 bytes          [emitted]  
Entrypoint src/parse-auth/index = src/parse-auth/index.js
 [0] ./node_modules/axios/lib/utils.js 8.28 KiB {0} [built]
 [1] external "https" 42 bytes {0} [built]
 [4] external "querystring" 42 bytes {0} [built]
 [5] ./node_modules/axios/lib/helpers/bind.js 256 bytes {0} [built]
 [6] ./node_modules/axios/lib/cancel/isCancel.js 102 bytes {0} [built]
 [7] ./node_modules/axios/lib/defaults.js 2.55 KiB {0} [built]
[14] ./node_modules/axios/lib/core/mergeConfig.js 1.69 KiB {0} [built]
[15] ./node_modules/axios/lib/cancel/Cancel.js 385 bytes {0} [built]
[16] ./node_modules/axios/index.js 40 bytes {0} [built]
[17] ./node_modules/cookie/index.js 3.94 KiB {0} [built]
[18] ./node_modules/axios/lib/axios.js 1.39 KiB {0} [built]
[20] ./node_modules/axios/lib/core/Axios.js 2.4 KiB {0} [built]
[45] ./node_modules/axios/lib/cancel/CancelToken.js 1.21 KiB {0} [built]
[47] ./src/shared/configuration.json 1.06 KiB {0} [built]
[48] ./src/parse-auth/index.ts + 1 modules 8.16 KiB {0} [built]
     | ./src/parse-auth/index.ts 2.27 KiB [built]
     | ./src/shared/shared.ts 5.88 KiB [built]
    + 34 hidden modules
Time: 4267ms
Built at: 18/10/2019 22:15:59
                            Asset       Size  Chunks             Chunk Names
        src/refresh-auth/index.js     38 KiB       0  [emitted]  src/refresh-auth/index
src/refresh-auth/index.js.LICENSE  244 bytes          [emitted]  
Entrypoint src/refresh-auth/index = src/refresh-auth/index.js
 [0] ./node_modules/axios/lib/utils.js 8.28 KiB {0} [built]
 [1] external "https" 42 bytes {0} [built]
 [4] external "querystring" 42 bytes {0} [built]
 [5] ./node_modules/axios/lib/helpers/bind.js 256 bytes {0} [built]
 [6] ./node_modules/axios/lib/cancel/isCancel.js 102 bytes {0} [built]
 [7] ./node_modules/axios/lib/defaults.js 2.55 KiB {0} [built]
[14] ./node_modules/axios/lib/core/mergeConfig.js 1.69 KiB {0} [built]
[15] ./node_modules/axios/lib/cancel/Cancel.js 385 bytes {0} [built]
[16] ./node_modules/axios/index.js 40 bytes {0} [built]
[17] ./node_modules/cookie/index.js 3.94 KiB {0} [built]
[18] ./node_modules/axios/lib/axios.js 1.39 KiB {0} [built]
[20] ./node_modules/axios/lib/core/Axios.js 2.4 KiB {0} [built]
[45] ./node_modules/axios/lib/cancel/CancelToken.js 1.21 KiB {0} [built]
[47] ./src/shared/configuration.json 1.06 KiB {0} [built]
[48] ./src/refresh-auth/index.ts + 1 modules 8.21 KiB {0} [built]
     | ./src/refresh-auth/index.ts 2.31 KiB [built]
     | ./src/shared/shared.ts 5.88 KiB [built]
    + 34 hidden modules
Time: 2988ms
Built at: 18/10/2019 22:15:57
                        Asset       Size  Chunks             Chunk Names
        src/sign-out/index.js   6.39 KiB       0  [emitted]  src/sign-out/index
src/sign-out/index.js.LICENSE  123 bytes          [emitted]  
Entrypoint src/sign-out/index = src/sign-out/index.js
[0] external "querystring" 42 bytes {0} [built]
[1] ./node_modules/cookie/index.js 3.94 KiB {0} [built]
[2] ./src/shared/configuration.json 1.06 KiB {0} [built]
[3] ./src/sign-out/index.ts + 1 modules 7.26 KiB {0} [built]
    | ./src/sign-out/index.ts 1.37 KiB [built]
    | ./src/shared/shared.ts 5.88 KiB [built]
Serverless: Invoke webpack:package
Serverless: Packaging service...
Serverless: Invoke aws:package:finalize
Serverless: Invoke aws:common:moveArtifactsToPackage
Serverless: Invoke aws:common:validate
Serverless: Invoke aws:deploy:deploy
Serverless: [AWS cloudformation 400 0.479s 0 retries] describeStacks({ StackName: 'cloudfront-test-dev' })
Serverless: Creating Stack...
Serverless: [AWS cloudformation 200 0.578s 0 retries] createStack({
  StackName: 'cloudfront-test-dev',
  OnFailure: 'DELETE',
  Capabilities: [ 'CAPABILITY_IAM', 'CAPABILITY_NAMED_IAM', [length]: 2 ],
  Parameters: [ [length]: 0 ],
  TemplateBody: '{"AWSTemplateFormatVersion":"2010-09-09","Description":"The AWS CloudFormation template for this Serverless application","Resources":{"ServerlessDeploymentBucket":{"Type":"AWS::S3::Bucket","Properties":{"BucketEncryption":{"ServerSideEncryptionConfiguration":[{"ServerSideEncryptionByDefault":{"SSEAlgorithm":"AES256"}}]}}}},"Outputs":{"ServerlessDeploymentBucketName":{"Value":{"Ref":"ServerlessDeploymentBucket"}}}}',
  Tags: [ { Key: 'STAGE', Value: 'dev' }, [length]: 1 ]
})
Serverless: Checking Stack create progress...
Serverless: [AWS cloudformation 200 0.448s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
...Serverless: [AWS cloudformation 200 0.469s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.442s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.449s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.449s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
..
Serverless: Stack create finished...
Serverless: [AWS cloudformation 200 0.512s 0 retries] describeStackResource({
  StackName: 'cloudfront-test-dev',
  LogicalResourceId: 'ServerlessDeploymentBucket'
})
Serverless: [AWS s3 200 0.527s 0 retries] listObjectsV2({
  Bucket: 'cloudfront-test-dev-serverlessdeploymentbucket-1x2xi0iy8cki7',
  Prefix: 'serverless/cloudfront-test/dev'
})
Serverless: [AWS lambda 404 0.47s 0 retries] getFunction({ FunctionName: 'cloudfront-test-dev-checkAuth' })
Serverless: [AWS lambda 404 0.469s 0 retries] getFunction({ FunctionName: 'cloudfront-test-dev-parseAuth' })
Serverless: [AWS lambda 404 0.315s 0 retries] getFunction({ FunctionName: 'cloudfront-test-dev-refreshAuth' })
Serverless: [AWS lambda 404 0.33s 0 retries] getFunction({ FunctionName: 'cloudfront-test-dev-signOut' })
Serverless: [AWS sts 200 0.427s 0 retries] getCallerIdentity({})
Serverless: Uploading CloudFormation file to S3...
Serverless: [AWS s3 200 0.603s 0 retries] putObject({
  Body: <Buffer 7b 22 41 57 53 54 65 6d 70 6c 61 74 65 46 6f 72 6d 61 74 56 65 72 73 69 6f 6e 22 3a 22 32 30 31 30 2d 30 39 2d 30 39 22 2c 22 44 65 73 63 72 69 70 74 ... 8809 more bytes>,
  Bucket: 'cloudfront-test-dev-serverlessdeploymentbucket-1x2xi0iy8cki7',
  Key: 'serverless/cloudfront-test/dev/1571433359535-2019-10-18T21:15:59.535Z/compiled-cloudformation-template.json',
  ContentType: 'application/json',
  Metadata: { filesha256: 'MQJ85zwFQq7DFYFZn6RrX0e2I6QRoOyQZs5b9HA0jIo=' }
})
Serverless: Uploading artifacts...
Serverless: Uploading service checkAuth.zip file to S3 (273.88 KB)...
Serverless: Uploading service parseAuth.zip file to S3 (15.94 KB)...
Serverless: Uploading service refreshAuth.zip file to S3 (15.89 KB)...
Serverless: [AWS s3 200 0.893s 0 retries] putObject({
  Body: <Buffer 50 4b 03 04 14 00 08 00 08 00 00 00 21 00 00 00 00 00 00 00 00 00 00 00 00 00 17 00 00 00 73 72 63 2f 70 61 72 73 65 2d 61 75 74 68 2f 69 6e 64 65 78 ... 16270 more bytes>,
  Bucket: 'cloudfront-test-dev-serverlessdeploymentbucket-1x2xi0iy8cki7',
  Key: 'serverless/cloudfront-test/dev/1571433359535-2019-10-18T21:15:59.535Z/parseAuth.zip',
  ContentType: 'application/zip',
  Metadata: { filesha256: '3e/6Mncg9gMazKdyXg4RiyD2qROc51mvA5Of8BaGXgI=' }
})
Serverless: Uploading service signOut.zip file to S3 (3.24 KB)...
Serverless: [AWS s3 200 0.925s 0 retries] putObject({
  Body: <Buffer 50 4b 03 04 14 00 08 00 08 00 00 00 21 00 00 00 00 00 00 00 00 00 00 00 00 00 19 00 00 00 73 72 63 2f 72 65 66 72 65 73 68 2d 61 75 74 68 2f 69 6e 64 ... 16222 more bytes>,
  Bucket: 'cloudfront-test-dev-serverlessdeploymentbucket-1x2xi0iy8cki7',
  Key: 'serverless/cloudfront-test/dev/1571433359535-2019-10-18T21:15:59.535Z/refreshAuth.zip',
  ContentType: 'application/zip',
  Metadata: { filesha256: 'wxVG6BDMaiWhwDhG77t4KlOEX5MODKK5VCuP9Fjqr1s=' }
})
Serverless: [AWS s3 200 0.586s 0 retries] putObject({
  Body: <Buffer 50 4b 03 04 14 00 08 00 08 00 00 00 21 00 00 00 00 00 00 00 00 00 00 00 00 00 15 00 00 00 73 72 63 2f 73 69 67 6e 2d 6f 75 74 2f 69 6e 64 65 78 2e 6a ... 3269 more bytes>,
  Bucket: 'cloudfront-test-dev-serverlessdeploymentbucket-1x2xi0iy8cki7',
  Key: 'serverless/cloudfront-test/dev/1571433359535-2019-10-18T21:15:59.535Z/signOut.zip',
  ContentType: 'application/zip',
  Metadata: { filesha256: 'WeOACqHHnDVdQ54Rb17wLOIO1XjOtYvsSvgnDjBt6XA=' }
})
Serverless: [AWS s3 200 4.606s 0 retries] putObject({
  Body: <Buffer 50 4b 03 04 14 00 08 00 08 00 00 00 21 00 00 00 00 00 00 00 00 00 00 00 00 00 17 00 00 00 73 72 63 2f 63 68 65 63 6b 2d 61 75 74 68 2f 69 6e 64 65 78 ... 280406 more bytes>,
  Bucket: 'cloudfront-test-dev-serverlessdeploymentbucket-1x2xi0iy8cki7',
  Key: 'serverless/cloudfront-test/dev/1571433359535-2019-10-18T21:15:59.535Z/checkAuth.zip',
  ContentType: 'application/zip',
  Metadata: { filesha256: 'tM1fycJO9WQmmQMtlRpcQy16ySfZvv5BIAlYlJHJXRg=' }
})
Serverless: Validating template...
Serverless: [AWS cloudformation 200 0.596s 0 retries] validateTemplate({
  TemplateURL: 'https://s3.amazonaws.com/cloudfront-test-dev-serverlessdeploymentbucket-1x2xi0iy8cki7/serverless/cloudfront-test/dev/1571433359535-2019-10-18T21:15:59.535Z/compiled-cloudformation-template.json'
})
Serverless: Updating Stack...
Serverless: [AWS cloudformation 200 0.782s 0 retries] updateStack({
  StackName: 'cloudfront-test-dev',
  Capabilities: [ 'CAPABILITY_IAM', 'CAPABILITY_NAMED_IAM', [length]: 2 ],
  Parameters: [ [length]: 0 ],
  TemplateURL: 'https://s3.amazonaws.com/cloudfront-test-dev-serverlessdeploymentbucket-1x2xi0iy8cki7/serverless/cloudfront-test/dev/1571433359535-2019-10-18T21:15:59.535Z/compiled-cloudformation-template.json',
  Tags: [ { Key: 'STAGE', Value: 'dev' }, [length]: 1 ]
})
Serverless: Checking Stack update progress...
Serverless: [AWS cloudformation 200 0.578s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
...............Serverless: [AWS cloudformation 200 0.484s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.548s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.603s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
.............Serverless: [AWS cloudformation 200 0.575s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
.............Serverless: [AWS cloudformation 200 0.632s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
.Serverless: [AWS cloudformation 200 0.787s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.589s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.882s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.566s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.875s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.593s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.601s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.572s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.59s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.822s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.602s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.886s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.599s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.691s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.558s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.842s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.919s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 1.108s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.591s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.922s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.601s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.662s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.881s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.59s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.834s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.607s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.945s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.9s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.95s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.67s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.588s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.847s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.756s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.587s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.935s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.605s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.655s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.573s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.824s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.619s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.723s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.594s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.799s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.776s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.623s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.889s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 1.171s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.605s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.778s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.859s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.651s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.789s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.689s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.676s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.662s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.782s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.581s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.892s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.655s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 1.198s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.732s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.725s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.573s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.774s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.591s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.775s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.936s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.971s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.64s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.699s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.578s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.787s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.615s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.739s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.572s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.657s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.573s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.819s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.915s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.838s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.61s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.927s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.632s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 1.039s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.556s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.588s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 1.186s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.884s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.631s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.622s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.856s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.591s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.578s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.831s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.595s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.594s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.602s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.863s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.623s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.581s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.949s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.559s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.903s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.891s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.95s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.96s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.557s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.583s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.627s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.891s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.887s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.602s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.61s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.602s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.95s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.786s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.583s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.783s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.758s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.832s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 1.016s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.884s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.573s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.899s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.556s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.585s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.631s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.74s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.599s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.576s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.576s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.841s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.592s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.633s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.602s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.585s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.588s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.638s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
Serverless: [AWS cloudformation 200 0.734s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
.....Serverless: [AWS cloudformation 200 1.29s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
....Serverless: [AWS cloudformation 200 0.643s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
....Serverless: [AWS cloudformation 200 0.775s 0 retries] describeStackEvents({
  StackName: 'arn:aws:cloudformation:us-east-1:554858243091:stack/cloudfront-test-dev/7be853b0-f1ec-11e9-ab0a-12dffdf25cac'
})
..
Serverless: Stack update finished...
Serverless: Invoke aws:info
Serverless: [AWS cloudformation 200 0.596s 0 retries] describeStacks({ StackName: 'cloudfront-test-dev' })
Serverless: [AWS cloudformation 200 0.53s 0 retries] listStackResources({ StackName: 'cloudfront-test-dev' })
Service Information
service: cloudfront-test
stage: dev
region: us-east-1
stack: cloudfront-test-dev
resources: 19
api keys:
  None
endpoints:
  CloudFront - d19m9ntvwzzvfy.cloudfront.net
functions:
  checkAuth: cloudfront-test-dev-checkAuth
  parseAuth: cloudfront-test-dev-parseAuth
  refreshAuth: cloudfront-test-dev-refreshAuth
  signOut: cloudfront-test-dev-signOut
layers:
  None
Serverless: Invoke aws:deploy:finalize
Serverless: [AWS s3 200 0.5s 0 retries] listObjectsV2({
  Bucket: 'cloudfront-test-dev-serverlessdeploymentbucket-1x2xi0iy8cki7',
  Prefix: 'serverless/cloudfront-test/dev'
})
Serverless: Run the "serverless" command to setup monitoring, troubleshooting and testing.
```


Discussion:
The fix is relatively straightforward as the check for an existing origin only checks for a matching OriginPath. If it was changed to find a match on DomainName and OriginPath It would correctly.

I'm happy to submit a pull request for this fix

Resolving patch:
diff --git a/lib/plugins/aws/package/compile/events/cloudFront/index.js b/lib/plugins/aws/package/compile/events/cloudFront/index.js
index 3097f1a39cb..126141269de 100644
--- a/lib/plugins/aws/package/compile/events/cloudFront/index.js
+++ b/lib/plugins/aws/package/compile/events/cloudFront/index.js
@@ -166,7 +166,10 @@ class AwsCompileCloudFrontEvents {
 
             let origin = createOrigin(functionName, event.cloudFront.origin, this.provider.naming);
 
-            const existingOrigin = _.find(origins, o => o.OriginPath === origin.OriginPath);
+            const existingOrigin = _.find(
+              origins,
+              o => o.DomainName === origin.DomainName && o.OriginPath === origin.OriginPath
+            );
 
             if (!existingOrigin) {
               origins.push(origin);


Test patch:
diff --git a/lib/plugins/aws/package/compile/events/cloudFront/index.test.js b/lib/plugins/aws/package/compile/events/cloudFront/index.test.js
index b80360c5ef7..93cba16388a 100644
--- a/lib/plugins/aws/package/compile/events/cloudFront/index.test.js
+++ b/lib/plugins/aws/package/compile/events/cloudFront/index.test.js
@@ -410,5 +410,69 @@ describe('AwsCompileCloudFrontEvents', () => {
         S3OriginConfig: {},
       });
     });
+
+    it('should create different origins for different domains with the same path', () => {
+      awsCompileCloudFrontEvents.serverless.service.functions = {
+        first: {
+          name: 'first',
+          events: [
+            {
+              cloudFront: {
+                eventType: 'viewer-request',
+                origin: 's3://bucketname.s3.amazonaws.com/files',
+              },
+            },
+          ],
+        },
+        second: {
+          name: 'second',
+          events: [
+            {
+              cloudFront: {
+                eventType: 'viewer-request',
+                origin: 's3://anotherbucket.s3.amazonaws.com/files',
+              },
+            },
+          ],
+        },
+      };
+
+      awsCompileCloudFrontEvents.serverless.service.provider.compiledCloudFormationTemplate.Resources = {
+        FirstLambdaFunction: {
+          Type: 'AWS::Lambda::Function',
+          Properties: {
+            FunctionName: 'first',
+          },
+        },
+        SecondLambdaFunction: {
+          Type: 'AWS::Lambda::Function',
+          Properties: {
+            FunctionName: 'second',
+          },
+        },
+      };
+
+      awsCompileCloudFrontEvents.compileCloudFrontEvents();
+
+      expect(
+        awsCompileCloudFrontEvents.serverless.service.provider.compiledCloudFormationTemplate
+          .Resources.CloudFrontDistribution.Properties.DistributionConfig.Origins[0]
+      ).to.eql({
+        Id: 'First/files',
+        DomainName: 'bucketname.s3.amazonaws.com',
+        OriginPath: '/files',
+        S3OriginConfig: {},
+      });
+
+      expect(
+        awsCompileCloudFrontEvents.serverless.service.provider.compiledCloudFormationTemplate
+          .Resources.CloudFrontDistribution.Properties.DistributionConfig.Origins[1]
+      ).to.eql({
+        Id: 'Second/files',
+        DomainName: 'anotherbucket.s3.amazonaws.com',
+        OriginPath: '/files',
+        S3OriginConfig: {},
+      });
+    });
   });
 });