I just set up s3 deployment and it works great. I was already deploying to s3 from my local machine. However, after deploying, I need to run an AWS Cloudfront invalidation to prevent caching issues. Would it possible to include this in the pipeline?
Specifically what I run locally is:
aws cloudfront create-invalidation --distribution-id XXX --paths /index.html /error.html
I was searching for the same solution when google lead me to this thread.
I went ahead and whipped up my own pipe which is working well for me - you may find it useful and are welcome to check it out.
I used the aws-s3-deploy code as a starter and just adapted it.
I use both bitbucket and github, the repo for this pipe is on githhub and published on hub.docker.com
It seems there is now an official Atlassian way to do so, documented here:
- pipe: atlassian/aws-cloudfront-invalidate:0.1.2 variables: AWS_ACCESS_KEY_ID: "<string>" AWS_SECRET_ACCESS_KEY: "<string>" AWS_DEFAULT_REGION: "<string>" DISTRIBUTION_ID: "<string>" # PATHS: "<string>" # Optional # DEBUG: "<boolean>" # Optional
...hey are a part of us, shaping how we interact with the world around us. The same holds true for programming languages when we think about how different kinds of vulnerabilities raise their heads in t...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events