官术网_书友最值得收藏!

Types

You can get different processor and memory configurations on your instances. Let's abstract our provider into a root file and move our outputs into a file of their own called main.tf:

provider "aws" {
region = "us-east-1"
}
module "compute" {
source = "./compute"
}

And we will do the same for another file called outputs.tf:

output "id" {
value = "${aws_instance.example.id}"
}

And finally, we can do this for the variables.tf file:

variable "zones" {
default = ["us-east-1a", "us-east-1b"]
}
主站蜘蛛池模板: 都兰县| 磐安县| 伊吾县| 寿光市| 故城县| 抚远县| 喜德县| 刚察县| 乌审旗| 永年县| 花莲县| 金昌市| 读书| 滦南县| 民县| 衡南县| 德清县| 安新县| 江达县| 辉县市| 盘锦市| 雅江县| 闻喜县| 临泽县| 鹤岗市| 镇远县| 太湖县| 香格里拉县| 曲水县| 赣州市| 中卫市| 永济市| 怀集县| 尉犁县| 衡水市| 抚顺县| 普格县| 茶陵县| 民乐县| 长治市| 黄骅市|