Skip to content

A project based on Packer and Terraform combined with Tencent Cloud AS to complete the deployment of 1024 mini games.

License

Notifications You must be signed in to change notification settings

tencentcloudstack/packer-terraform-as

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A project based on Packer and Terraform combined with Tencent Cloud AS to complete the deployment of 1024 mini games.

Resources

License

Stars

Watchers

Forks

Packages

No packages published