forked from Intellipaat-Training/Shark-Secure-Pipeline
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tf
30 lines (27 loc) · 696 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
provider "aws" {
access_key = ""
secret_key = ""
region = "us-west-1"
}
resource "aws_instance" "k8-M" {
ami = "ami-036cafe742923b3d9"
instance_type = "t2.xlarge"
key_name = "AksithApril24"
tags = {
Name = "Kmaster"
}
// Adding block device mapping for additional storage
ebs_block_device {
device_name = "/dev/sda1" // The device name may vary depending on the AMI
volume_size = 30
volume_type = "gp2" // Adjust volume type as per your requirement
}
}
resource "aws_instance" "k8-S1" {
ami = "ami-036cafe742923b3d9"
instance_type = "t2.medium"
key_name = "AksithApril24"
tags = {
Name = "Kslave"
}
}