Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
Merge pull request #161 from apache/DLAB-911
Browse files Browse the repository at this point in the history
[DLAB-911]: added creation of Elastic IP address for Endpoint
  • Loading branch information
omartushevskyi committed Jul 16, 2019
2 parents b1fe14e + 7295736 commit b8f8034
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,8 @@ output "ssn_subnets" {

output "ssn_k8s_sg_id" {
value = aws_security_group.ssn_k8s_sg.id
}

output "endpoint_eip_" {
value = aws_eip.k8s-endpoint-eip.allocation_id
}
7 changes: 7 additions & 0 deletions infrastructure-provisioning/terraform/aws/ssn-k8s/main/vpc.tf
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,13 @@ data "aws_subnet" "k8s-subnet-c-data" {
id = aws_subnet.ssn_k8s_subnet_c.0.id
}

resource "aws_eip" "k8s-endpoint-eip" {
vpc = true
tags = {
Name = "${var.service_base_name}-endpoint-eip"
}
}

//resource "aws_eip" "k8s-lb-eip-a" {
// vpc = true
// tags = {
Expand Down

0 comments on commit b8f8034

Please sign in to comment.