diff --git a/deployer.ec2/main.tf b/deployer.ec2/main.tf deleted file mode 100644 index 667538b..0000000 --- a/deployer.ec2/main.tf +++ /dev/null @@ -1,39 +0,0 @@ -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 -} \ No newline at end of file diff --git a/deployer.ec2/terraform.tfvars b/deployer.ec2/terraform.tfvars deleted file mode 100644 index 18b17d0..0000000 --- a/deployer.ec2/terraform.tfvars +++ /dev/null @@ -1,8 +0,0 @@ -aws-region = "ap-southeast-1" -customer-name = "bea" -environment = "dev" -project = "iac" -application = "terraform" -CostCenter = "none" -DynamicAddressGroup = "" -Owner = "Rackspace" \ No newline at end of file diff --git a/deployer.ec2/variables.tf b/deployer.ec2/variables.tf deleted file mode 100644 index ab91799..0000000 --- a/deployer.ec2/variables.tf +++ /dev/null @@ -1,25 +0,0 @@ -variable "aws-region" {} -variable "customer-name" {} -variable "environment" {} -variable "project" {} -variable "application" {} -variable "owner" {} -variable "costcenter" {} -variable "DynamicAddressGroup" {} - -locals { - default-tags = { - ServiceProvider = "RackspaceTechnology" - Environment = var.environment - Project = var.project - Application = var.application - TerraformMode = "managed" - BuildDate = formatdate("YYYYMMDD", timestamp()) - Owner = var.owner - CostCenter = var.costcenter - DynamicAddressGroup = var.DynamicAddressGroup - - } - resource-prefix = "${var.environment}-substr(${var.aws-region},0,2)-${var.customer-name}-${var.project}" -} -