generated from clouddrove/terraform-module-template
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmain.tf
43 lines (35 loc) · 1.22 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
#tfsec:ignore:aws-ec2-enable-at-rest-encryption
module "ec2" {
source = "clouddrove/ec2/aws"
version = "2.0.3"
name = var.name
environment = var.environment
##----------------------------------------------------------------------------------
## Below A security group controls the traffic that is allowed to reach and leave the resources that it is associated with.
##----------------------------------------------------------------------------------
#tfsec:aws-ec2-no-public-ingress-sgr
vpc_id = var.vpc_id
ssh_allowed_ip = var.ssh_allowed_ip
ssh_allowed_ports = var.ssh_allowed_ports
#Instance
instance_count = var.instance_count
ami = var.ami
instance_type = var.instance_type
#Keypair
public_key = var.public_key
#Networking
subnet_ids = var.subnet_ids
#tfsec:aws-ec2-enable-at-rest-encryption
#IAM
iam_instance_profile = var.iam_instance_profile
#Root Volume
root_block_device = var.root_block_device
#EBS Volume
ebs_volume_enabled = var.ebs_volume_enabled
ebs_volume_type = var.ebs_volume_type
ebs_volume_size = var.ebs_volume_size
#Tags
instance_tags = var.instance_tags
#Mount EBS With User Data
user_data = var.user_data
}