Adding a lot of stuff.
This commit is contained in:
6
modules/eip/main.tf
Normal file
6
modules/eip/main.tf
Normal 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
3
modules/eip/outputs.tf
Normal file
@ -0,0 +1,3 @@
|
||||
output "eips" {
|
||||
value = aws_eip.self.*
|
||||
}
|
12
modules/eip/variables.tf
Normal file
12
modules/eip/variables.tf
Normal 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"
|
||||
}
|
Reference in New Issue
Block a user