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

6
modules/eip/main.tf Normal file
View File

@ -0,0 +1,6 @@
resource "aws_eip" "self" {
count = var.eip_count
vpc = var.vpc
tags = var.tags
}

3
modules/eip/outputs.tf Normal file
View File

@ -0,0 +1,3 @@
output "eips" {
value = aws_eip.self.*
}

12
modules/eip/variables.tf Normal file
View File

@ -0,0 +1,12 @@
variable "vpc" {
type = bool
description = "Boolean if the EIP is in a VPC or not"
}
variable "eip_count" {
type = number
description = "The number of elastic ip to create"
}
variable "tags" {
type = map(string)
description = "The tags to set on the eip"
}