Coder Social home page Coder Social logo

fbuinosquy1985 / blueprint-aws-cdn-behavior-origin Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 30 KB

Where the terraform code is going to be located , that executes the update script that add a origin and behavior to a cloudfront distribution and on destroy it removes the configuration.

HCL 8.13% Shell 91.87%

blueprint-aws-cdn-behavior-origin's Introduction

blueprint-aws-cdn-behavior-origin

Shell script glue with Terraform to add a origin and a behavior & terraform code to a existing Cloudfront Distribution , and when destroy is executed it removes the origin and behavior.

Check the aws path that is set on the script ( is hardcoded )

How to use the script from terraform ?

Example:

Edit the variables.tf file then run

terraform init
terraform plan
terraform apply

How to use the add script from a console ?

Example:

./update_cdn.sh E3554BHOW3RXY2 aac5e1e3235cc4c028de730c26369163-d8052e4acdbbae74.elb.us-east-1.amazonaws.com crm-fe-prod

Where the fields mean.

./update_cdn.sh CLOUDFRONT_ID LOAD_BALANCER_URL CLOUDFRONT_BEHAVIOR_PATH

How to use the remove script from a console ?

Example:

./remove_cdn.sh E3554BHOW3RXY2 crm-fe-prod

Where the fields mean.

./remove_cdn.sh CLOUDFRONT_ID CLOUDFRONT_BEHAVIOR_PATH

blueprint-aws-cdn-behavior-origin's People

Contributors

fbuinosquy1985 avatar

Watchers

 avatar

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.