File tree 1 file changed +35
-0
lines changed
1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change
1
+ provider "aws" {
2
+ region = " us-east-1"
3
+ skip_credentials_validation = true
4
+ skip_requesting_account_id = true
5
+ access_key = " mock_access_key"
6
+ secret_key = " mock_secret_key"
7
+ }
8
+
9
+ resource "aws_instance" "my_web_app" {
10
+ ami = " ami-005e54dee72cc1d00"
11
+
12
+ instance_type = " m3.xlarge" # <<<<<<<<<< Try changing this to m5.xlarge to compare the costs
13
+
14
+ tags = {
15
+ Environment = " production"
16
+ Service = " web-app"
17
+ }
18
+
19
+ root_block_device {
20
+ volume_size = 1000 # <<<<<<<<<< Try adding volume_type="gp3" to compare costs
21
+ }
22
+ }
23
+
24
+ resource "aws_lambda_function" "my_hello_world" {
25
+ runtime = " nodejs12.x"
26
+ handler = " exports.test"
27
+ image_uri = " test"
28
+ function_name = " test"
29
+ role = " arn:aws:ec2:us-east-1:123123123123:instance/i-1231231231"
30
+
31
+ memory_size = 512
32
+ tags = {
33
+ Environment = " Prod"
34
+ }
35
+ }
You can’t perform that action at this time.
0 commit comments