Giter Club home page Giter Club logo

packer-terraform-as's Introduction

packer + terraform + as实践

示例使用Packer + Terraform结合Tencentcloud AS实现业务弹性伸缩, 结合github action实现CI/CD。

示例仅供参考。

场景描述

1、部署2048小游戏在云服务器上

2、可多地域复制

3、可根据负载弹性伸缩

目录结构

├── packer                  # packer build配置文件
│   └── packer_tencentcloud_as_1.0.json
├── service                # 业务应用代码
│   ├── 2048.css
│   ├── index.html
│   ├── jquery.min.js
│   ├── main.js
│   ├── showanimation.js
│   └── support.js
├── terraform               # 实现业务部署
│   └── as
│       ├── main.tf         # vpc、clb、as
│       ├── provider.tf
│       └── variables.tf
├── go.mod
└── README.md

结果展示

github action运行结果

img.png

应用部署结果

img.png


业务应用代码来源:https://github.com/bodhiye/2048

packer-terraform-as's People

Contributors

gitmkn avatar hellertang avatar

Watchers

 avatar  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.