File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 1
1
resource "aws_instance" "pulsiot_ec2_instance" {
2
- ami = var. ami_id
3
- instance_type = var. inst_type
4
- key_name = var. key_pair
5
- security_groups = [ var . security_groups ]
2
+ ami = var. ami_id
3
+ instance_type = var. inst_type
4
+ key_name = var. key_pair
5
+ security_groups = [var . security_groups ]
6
6
7
7
tags = {
8
- Name = var.inst_name,
9
- Project = var.proj_name,
8
+ Name = var.inst_name,
9
+ Project = var.proj_name,
10
10
Environment = var.env_name
11
11
}
12
12
}
Original file line number Diff line number Diff line change 1
1
variable "inst_type" {
2
2
description = " Enter the EC2 Instance Type:"
3
- type = string
4
- default = " t3.micro"
3
+ type = string
4
+ default = " t3.micro"
5
5
}
6
6
7
7
variable "inst_name" {
@@ -35,6 +35,6 @@ variable "ami_id" {
35
35
36
36
variable "security_groups" {
37
37
description = " Enter the security group you want:"
38
- type = any
39
- default = null
38
+ type = any
39
+ default = null
40
40
}
You can’t perform that action at this time.
0 commit comments