24 lines
740 B
HCL
24 lines
740 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}"
|
|
}
|
|
# 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
|
|
subnet_use_strategy = "skip" # everything depending on subnet is skipped implicitly
|
|
}
|