Skip to content

Commit

Permalink
add: debian12 cis
Browse files Browse the repository at this point in the history
Signed-off-by: Manuel Weber <[email protected]>
  • Loading branch information
mm-weber committed Nov 1, 2024
1 parent 516da0d commit f3bfdae
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions aws/ec2-instances/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,39 @@ module "debian12_cnspec" {
user_data_replace_on_change = true
}


module "debian12_cis" {
source = "terraform-aws-modules/ec2-instance/aws"
version = "~> 5.6.1"

create = var.create_debian12_cis
name = "${var.prefix}-debian12-cis-${random_id.instance_id.id}"
ami = data.aws_ami.debian12_cis.id
instance_type = var.linux_instance_type
vpc_security_group_ids = [module.linux_sg.security_group_id]
subnet_id = module.vpc.public_subnets[0]
key_name = var.aws_key_pair_name
associate_public_ip_address = true
}

module "debian12_cis_cnspec" {
source = "terraform-aws-modules/ec2-instance/aws"
version = "~> 5.6.1"

create = var.create_debian12_cis_cnspec
name = "${var.prefix}-debian12-cis-cnspec-${random_id.instance_id.id}"
ami = data.aws_ami.debian12_cis.id
instance_type = var.linux_instance_type
vpc_security_group_ids = [module.linux_sg.security_group_id]
subnet_id = module.vpc.public_subnets[0]
key_name = var.aws_key_pair_name
associate_public_ip_address = true
user_data = base64encode(local.linux_user_data)
user_data_replace_on_change = true
}



// Oracle 7

module "oracle7" {
Expand Down

0 comments on commit f3bfdae

Please sign in to comment.