Open gehan opened 4 years ago
+1
+1
Will update. Changes should not break anything but will confirm.
Wonderful PR, I also encountered with exactly same issue like
InvalidArgument: The parameter origin ID must be unique.
@gehan Can you please 🙏 confirm that changes should not break anything so that @danielcondemarin can take this further 🚀
Wonderful PR, I also encountered with exactly same issue like
InvalidArgument: The parameter origin ID must be unique.
@gehan Can you please 🙏 confirm that changes should not break anything so that @danielcondemarin can take this further 🚀
What config are you using to get this error? I'll update accordingly!
What config are you using to get this error? I'll update accordingly!
Hi, @gehan I think you already fix the issue in this PR.
Actually, I have 2 origins with the same domain but with different paths like this configuration.
{
"defaults": {...},
"origins": [
{
"url": "http://xxx-pwa-prod.s3.amazonaws.com",
"private": true,
"pathPatterns": {
"_next/*": {
"ttl": 86400
},
"static/*": {
"ttl": 86400
}
}
},
{
"url": "http://xxx-pwa-prod.s3.amazonaws.com/_next/static",
"private": true,
"pathPatterns": {
"service-worker.js": {
"ttl": 0
}
}
}
]
}
and its end-up with same Id
like
I just added a console.log(JSON.stringify(Origins));
in this line to get this result.
{
"Quantity": 2,
"Items": [
{
"Id": "xxx-pwa-prod",
"DomainName": "xxx-pwa-prod.s3.amazonaws.com",
"CustomHeaders": {
"Quantity": 0,
"Items": []
},
"OriginPath": "",
"S3OriginConfig": {
"OriginAccessIdentity": "origin-access-identity/cloudfront/<identity>"
}
},
{
"Id": "xxx-pwa-prod",
"DomainName": "xxx-pwa-prod.s3.amazonaws.com",
"CustomHeaders": {
"Quantity": 0,
"Items": []
},
"OriginPath": "/_next/static",
"S3OriginConfig": {
"OriginAccessIdentity": "origin-access-identity/cloudfront/<identity>"
}
}
]
}
@krish-dev oh yes sorry I see! misunderstood. i'll check my PR for breaking changes 👍
@gehan @danielcondemarin any update on the same.
Any update on this?
I am getting errors due to IncludeBody
being true for on-supported events.
This PR would fix the issue.
Thanks
LGTM aside from just a few things as per my comments 🚀
It also doesn't seem like the change would be breaking, could you confirm?
Long delay here! Updated as per comments and is non-breaking
Related to https://github.com/serverless-components/aws-cloudfront/issues/18