Adding a lot of stuff.

This commit is contained in:
Patrick MARIE
2022-07-12 22:32:18 +02:00
parent 188cf2679c
commit 621e04fb94
35 changed files with 704 additions and 43 deletions

8
modules/eip-set/main.tf Normal file
View File

@ -0,0 +1,8 @@
module "eip" {
source = "../eip"
for_each = var.eips
eip_count = each.value.count
vpc = each.value.vpc
tags = each.value.tags
}

View File

@ -0,0 +1,3 @@
output "eip_groups" {
value = module.eip
}

View File

@ -0,0 +1,8 @@
variable "eips" {
description = "a map of elastic ip objects"
type = map(object({
vpc = bool
count = number
tags = map(string)
}))
}

View File

@ -0,0 +1,8 @@
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 4.4.0"
}
}
}