Ruby on Rails & AWS Serverless consulting

Ensure caller_reference is unique

I wanted to invalidate a AWS Cloudfront distribution using ruby.

This is documented in the AWS documentation here.

However what was not clear to me was that the parameter 'caller_reference' must be unique for each invalidation.

At least this seems to be the case. When I call that method using the same caller reference string, no new invalidations are created. However if I send a unique string each time, a new invalidation is created.

There you go...


telephone: +44 07867 784162


twitter: @p3d