del: removing deployer.ec2 which is too simple to have an example
This commit is contained in:
@@ -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
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
aws-region = "ap-southeast-1"
|
||||
customer-name = "bea"
|
||||
environment = "dev"
|
||||
project = "iac"
|
||||
application = "terraform"
|
||||
CostCenter = "none"
|
||||
DynamicAddressGroup = ""
|
||||
Owner = "Rackspace"
|
||||
@@ -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}"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user