Skip to content

Commit 367e630

Browse files
committed
v0.1.0
1 parent 6d84889 commit 367e630

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

main.tf

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
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]
66

77
tags = {
8-
Name = var.inst_name,
9-
Project = var.proj_name,
8+
Name = var.inst_name,
9+
Project = var.proj_name,
1010
Environment = var.env_name
1111
}
1212
}

variables.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
variable "inst_type" {
22
description = "Enter the EC2 Instance Type:"
3-
type = string
4-
default = "t3.micro"
3+
type = string
4+
default = "t3.micro"
55
}
66

77
variable "inst_name" {
@@ -35,6 +35,6 @@ variable "ami_id" {
3535

3636
variable "security_groups" {
3737
description = "Enter the security group you want:"
38-
type = any
39-
default = null
38+
type = any
39+
default = null
4040
}

0 commit comments

Comments
 (0)