当前位置: 首页 > 软件库 > 云计算 > >

intro-to-terraform

授权协议 View license
开发语言 C/C++
所属分类 云计算
软件类型 开源软件
地区 不详
投 递 者 孟和怡
操作系统 跨平台
开源组织
适用人群 未知
 软件概览

An Introduction to Terraform Sample Code

This repo contains the sample code for the blog post series A Comprehensive Guide toTerraform. The examples correspond to thefollowing parts of the series:

  1. An Introduction to Terraform
    • single-web-server: Deploy a single EC2 Instance with a web server that will return"Hello, World" for every request on port 8080.
    • cluster-of-web-servers: Deploy a cluster of EC2 Instances in an Auto Scaling Group(ASG) and an Elastic Load Balancer (ELB). The ELB listens on port 80 and distributes load across the EC2Instances, each of which runs the same "Hello, World" web server.
  2. How to Manage Terraform State
    • s3-backend: Create an S3 bucket and DynamoDB table to use as a Terraform backend.
    • database: Deploy MySQL on top of Amazon's Relational Database Service (RDS).
  3. How to create reusable infrastructure with Terraform modules
    • modules: Examples of reusable Terraform modules, including a module that can deploy a web servercluster on top of ASG with an ELB.
    • live: Examples of how to deploy different live environments (i.e., staging, production) using the codefrom the modules folder.
  4. Terraform tips & tricks: loops, if-statements, and pitfalls
    • loops-with-count: Examples of how to use the count parameters to "loop" over resources.
    • loops-with-for-each: Examples of how to use for_each to "loop" over inline blocks.
    • loops-with-for: Examples of how to use for to "loop" over individual values.

Quick start

Note: These examples deploy resources into your AWS account. Although all the resources should fall under theAWS Free Tier, it is not our responsibility if you are charged money for this.

  1. Install Terraform.
  2. Set your AWS credentials as the environment variables AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY.
  3. cd into one of the example folders.
  4. Run terraform init.
  5. Run terraform apply.
  6. After it's done deploying, the example will output URLs or IPs you can try out.
  7. To clean up and delete all resources after you're done, run terraform destroy.

License

Please see LICENSE.txt for details on how the code in this repo is licensed.

  • 本文主要向大家展示如何为阿里云 Terraform Provider 贡献自己的力量,帮助开发者和志同道合的朋友尽快加入到开源生态的建设中来。 本文面向所有的对Terraform熟悉和感兴趣的朋友,如果您还不了解Terraform,快快戳这里。 本文会从环境搭建和开发规范两个方面向大家展示如何开放 terraform provider。 环境搭建 安装 Golang 本地安装go >1.10.0

  • » What is Terraform? Terraform is a tool for building, changing, and versioning infrastructure safely and efficiently. Terraform can manage existing and popular service providers as well as custom in-

  • 本文来自Rancher Labs 介 绍 在Kubernetes 1.14版本中已经GA了对Windows的支持。这一结果凝结了一群优秀的工程师的努力,他们来自微软、Pivotal、VMware、红帽以及现在已经关闭的Apprenda等几家公司。我在Apprenda工作时,不定时会为sig-windows社区做出一些贡献。即便现在在Rancher Labs任职,也一直关注它的动向。所以当公司决定在

 相关资料
  • Intro to GraphQL Scott Moss & Frontend Masters Resources Slides Nodejs MongoDB Apollo GraphQL Course This course has two parts, slides and excercises. The slides describe the excerices in detail. Each

  • Overview So far I have shown you 2d drawing, animation, and hardware accelerated 3d. When you build something with these technologies you may notice something is missing: sound! Traditionally good sou

  • 实现 UIScrollView 视图切换时淡入淡出的切换效果。手指滑动 scroll view 时,scroll view上的视图切换不像一般那样的页面切换效果,而是一种淡入淡出的切换效果。Demo还支持Scroll View自动滚动。 [Code4App.com]

  • material-intro A simple material design app intro with cool animations and a fluent API. Very inspired by Google's app intros. Demo: A demo app is available on Google Play: Screenshots: Simple slide C

  • Path Intro View 实现了类似 Path 首次启动时的介绍界面效果。

  • Nuxt.js具有完全模块化的架构,允许开发人员使用灵活的API扩展Nuxt Core的任何部分。 如果有兴趣开发自己的模块,请查看 Modules 教程 获取更多详细信息。 本节有助于熟悉Nuxt内部,并可以作为参考,在编写自己的模块时更好地理解它。 Core 这些类是Nuxt的核心,应该在运行时和构建时都存在。 Nuxt Nuxt Class 来源: core/nuxt.js Renderer