Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Feature Request: AWS Cloudfront Invalidation

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

3 answers

Hi @reconcept 

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

https://github.com/rudijs/aws-cloudfront-create-invalidation

https://cloud.docker.com/repository/docker/rudijs/aws-cloudfront-create-invalidation/

0 votes
Ana Retamal Atlassian Team Mar 29, 2019

Hi @reconcept ,

For feature requests, please use our portal at site/master. That's how we track suggestions from our users and keep a communication between developers, product managers, and users.

Hope that helps,

Ana 

It seems there is now an official Atlassian way to do so, documented here:

https://jira.atlassian.com/browse/BCLOUD-18563?focusedCommentId=2289580&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-2289580

- 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

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket Pipelines

Bitbucket Pipelines Runners is now in open beta

We are excited to announce the open beta program for self-hosted runners. Bitbucket Pipelines Runners is available to everyone. Please try it and let us know your feedback. If you have any issue...

576 views 14 9
Read article

Community Events

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

Events near you