terraform-aws-access/examples/basic/main.tf

29 lines
860 B
HCL

provider "aws" {
default_tags {
tags = {
Id = local.identifier
Owner = "terraform-ci@suse.com"
}
}
}
provider "acme" {
server_url = "https://acme-staging-v02.api.letsencrypt.org/directory"
}
locals {
identifier = var.identifier
name = "tf-${local.identifier}"
zone = var.zone
domain = "${local.identifier}.${local.zone}"
}
# AWS reserves the first four IP addresses and the last IP address in any CIDR block for its own use (cumulatively)
module "this" {
source = "../../"
vpc_name = local.name
vpc_cidr = "10.0.255.0/24" # gives 256 usable addresses from .1 to .254, but AWS reserves .1 to .4 and .255, leaving .5 to .254
security_group_name = local.name
security_group_type = "egress"
load_balancer_name = local.name
domain = local.domain
}