Skip to content

Commit 1fb56e6

Browse files
committed
Add elastic-ip-amazon example
1 parent 5341a46 commit 1fb56e6

File tree

4 files changed

+37
-0
lines changed

4 files changed

+37
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
Terraform module which creates IPAM related resources (IPAM, Elastic IP, Prefix List) on AWS.
88

9+
- [elastic-ip](./modules/elastic-ip)
910
- [ipam](./modules/ipam)
1011
- [ipam-resource-discovery](./modules/ipam-resource-discovery)
1112
- [prefix-list](./modules/prefix-list)
@@ -30,6 +31,7 @@ Terraform Modules from [this package](https://github.com/tedilabs/terraform-aws-
3031
### VPC
3132

3233
- [prefix-lists](./examples/prefix-lists)
34+
- [elastic-ip-amazon](./examples/elastic-ip-amazon/)
3335

3436

3537
## Self Promotion

examples/elastic-ip-amazon/main.tf

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
provider "aws" {
2+
region = "us-east-1"
3+
}
4+
5+
6+
###################################################
7+
# Elastic IP
8+
###################################################
9+
10+
module "eip" {
11+
source = "../../modules/elastic-ip"
12+
# source = "tedilabs/ipam/aws//modules/elastic-ip"
13+
# version = "~> 0.2.0"
14+
15+
name = "test-amazon"
16+
type = "AMAZON"
17+
18+
tags = {
19+
"project" = "terraform-aws-ipam-examples"
20+
}
21+
}

examples/elastic-ip-amazon/outputs.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
output "eip" {
2+
description = "The Elastic IP."
3+
value = module.eip
4+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
terraform {
2+
required_version = "~> 1.5"
3+
4+
required_providers {
5+
aws = {
6+
source = "hashicorp/aws"
7+
version = "~> 5.0"
8+
}
9+
}
10+
}

0 commit comments

Comments
 (0)