-
Notifications
You must be signed in to change notification settings - Fork 224
/
Copy pathmain.tf
33 lines (27 loc) · 959 Bytes
/
main.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
terraform {
# This module is now only being tested with Terraform 1.1.x. However, to make upgrading easier, we are setting 1.0.0 as the minimum version.
required_version = ">= 1.0.0"
}
# Configure the AWS Provider
provider "aws" {
region = "us-east-2"
}
# This shows an example of how to use a Terraform module.
module "example_rails_app_stage" {
# The source field can be a path on your file system or a Git URL (even a versioned one!)
source = "./rails-module"
# Pass parameters to the module
name = "Example Rails App (Stage)"
port = 3000
ami = var.ami
key_pair_name = var.key_pair_name
}
module "example_rails_app_prod" {
# The source field can be a path on your file system or a Git URL (even a versioned one!)
source = "./rails-module"
# Pass parameters to the module
name = "Example Rails App"
port = 8080
ami = var.ami
key_pair_name = var.key_pair_name
}