39 lines
923 B
HCL
39 lines
923 B
HCL
module "deployer-ec2" {
|
|
source = "../../modules/compute/ec2"
|
|
|
|
additional_tags = { "Backup" : "None" }
|
|
# ami-id = "ami-072e4595d41025d94"
|
|
ami-id = data.aws_ami.ami-lookup.id
|
|
default-tags = local.default-tags
|
|
ebs-encrypted = true
|
|
asso-eip = false
|
|
instance-name = "rackspace-deployer-ec2-test"
|
|
instance-type = "t3.micro"
|
|
key-name = "whk1-ec2-key-555344966285"
|
|
asso-public-ip = false
|
|
root-volume-size = 15
|
|
security-groups = ["sg-03282995027b7a9fc"]
|
|
subnet-id = "subnet-07e4392828a70b1f9"
|
|
instance-profile = "TerraformRole"
|
|
}
|
|
|
|
data "aws_ami" "ami-lookup" {
|
|
most_recent = true
|
|
|
|
filter {
|
|
name = "name"
|
|
values = ["CIS Amazon Linux 2 Kernel 5.10*"]
|
|
}
|
|
|
|
filter {
|
|
name = "virtualization-type"
|
|
values = ["hvm"]
|
|
}
|
|
|
|
filter {
|
|
name = "architecture"
|
|
values = ["x86_64"]
|
|
}
|
|
|
|
owners = ["211372476111"] # CIS
|
|
} |