Terraform module to provisiong AWS Elastic IP.
The MIT License (MIT)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
Source: <https://opensource.org/licenses/MIT>
See LICENSE for full details.
Name | Version |
---|---|
terraform | >= 0.14 |
aws | >= 2.0.0 |
No modules.
Name | Type |
---|---|
aws_eip.this | resource |
Name | Description | Type | Default | Required |
---|---|---|---|---|
associate_with_private_ip | A user specified primary or secondary private IP address to associate with the Elastic IP address. If no private IP address is specified, the Elastic IP address is associated with the primary private IP address. |
string |
null |
no |
instance | EC2 instance ID | string |
null |
no |
name | Name of the EIP resource | string |
n/a | yes |
network_interface | Network interface ID to associate with | string |
null |
no |
public_ipv4_pool | EC2 IPv4 address pool identifier or amazon. This option is only available for VPC EIPs. | string |
null |
no |
tags | Map of tags to assign to bucket. | map(string) |
{} |
no |
vpc | Boolean if the EIP is in a VPC or not | bool |
null |
no |
Name | Description |
---|---|
id | Contains the EIP allocation ID |
public_dns | Public DNS associated with the Elastic IP address |
public_ip | Contains the public IP address |
module "app_prod_label" {
source = "cloudposse/label/null"
version = "v0.25.0"
namespace = "app"
stage = "prod"
name = "logs"
attributes = ["private"]
delimiter = "-"
tags = {
"BusinessUnit" = "XYZ",
}
}
module "app_prod_eip" {
source = "../../"
name = join(module.app_prod_label.delimiter, [module.app_prod_label.stage, module.app_prod_label.name, var.name])
}