Problem
You are trying to create a CloudFront distribution using Amazon’s API.
You get the error:
“One or more of your origins do not exist”
Solution
In my case, I provided a different value for these two properties:
DistributionConfig.DefaultCacheBehavior.TargetOriginId
and
DistributionConfig.Origins.Items[0].Id
Just make sure that the Id for one of your origins matches the TargetOriginId of the DefaultCacheBehavior and the error should disappear.
Thanks! got stuck doing this for a while. My targetOriginID was prepending “http://”. gah.
Thank you man! I would click a thousand ads on your blog!
Thanks man! Works like a charm!
Thanks for that.
This fixed my issue. Thank you!