Git Product home page Git Product logo

0x4447_product_aws_artifacts's Introduction

๐Ÿ’  AWS Artifacts

This is such a tiny project and yet so useful, at least to us. CodePipeline needs a Bucket to store temporary files for each stage in a Pipeline. The problem is that after a while you end up with GB of data that is costing you money and wasting unnecessary space. The simple solution is to add a Life Time Policy to the bucket, but we kept having the following recurring issues:

  • Forgetting how to name the bucket in a meaningful way that is organized.
  • Forgetting to add the region in the name of the bucket.
  • Enable a life time policy which would remove artifacts after 24h.

So yes, this stack will literally make one bucket with a standardized name, and one life time policy which deletes any object after 24h.

We now deploy this stack for each AWS Account that has CodePipeline - and we don't have to think about it anymore. If this helps us be more organize, and spend less โ€“ maybe it will help you to.

DISCLAIMER!

This stack is available to anyone at no cost, but on an as-is basis. 0x4447, LLC is not responsible for damages or costs of any kind that may occur when you use the stack. You take full responsibility when you use it.

F.A.Q

Why don't you include a CodePipeline bucket to the main CloudFormation file?

Because we would end up having dozens of buckets just to store this temporary files. You can just have one, and use it's name when you deploy the main stack - so those multiple pipelines can use a single bucket.

This is it?

Yes it is :)

Deploy

CloudFormation

To deploy this stack, all you need to do is click the button to the left and follow the instructions that CloudFormation provides in your AWS Dashboard. Alternatively, you can download the CF file from here.

What Will Deploy?

Pay Diagram

The stack takes advantage of just S3.

  • 1x S3 Bucket with a life time policy.

Pricing

Standard S3 Pricing applies.

How to work with this project

When you want to deploy the stack, the only file you should be interested in is the CloudFormation.json file. If you'd like to modify the stack, we recommend that you use the Grapes framework, which was designed to make it easier to work with the CloudFormation file. If you'd like to keep your sanity, never edit the main CF file ๐Ÿคช.

The End

If you enjoyed this project, please consider giving it a ๐ŸŒŸ. And check out our 0x4447 GitHub account, where you'll find additional resources you might find useful or interesting.

Sponsor ๐ŸŽŠ

This project is brought to you by 0x4447 LLC, a software company specializing in building custom solutions on top of AWS. Follow this link to learn more: https://0x4447.com. Alternatively, send an email to [email protected].

0x4447_product_aws_artifacts's People

Contributors

davidgatti avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

chadd1783 rdpli

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.