-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmain.tf
31 lines (27 loc) · 962 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
provider "aws" {
region = "us-east-1"
skip_credentials_validation = true
skip_requesting_account_id = true
access_key = "mock_access_key"
secret_key = "mock_secret_key"
}
resource "aws_instance" "web_app" {
ami = "ami-674cbc1e"
instance_type = "m5.4xlarge" # <<<<< Try changing this to m5.8xlarge to compare the costs
root_block_device {
volume_size = 50
}
ebs_block_device {
device_name = "my_data"
volume_type = "io1" # <<<<< Try changing this to gp2 to compare costs
volume_size = 500
iops = 800
}
}
resource "aws_lambda_function" "hello_world" {
function_name = "hello_world"
role = "arn:aws:lambda:us-east-1:account-id:resource-id"
handler = "exports.test"
runtime = "nodejs12.x"
memory_size = 1024 # <<<<< Try changing this to 512 to compare costs
}