Skip to content

Commit

Permalink
Merge pull request #12 from SylvainMartel/ansible_json_output
Browse files Browse the repository at this point in the history
vpcfix + changed outputs
  • Loading branch information
SylvainMartel authored May 23, 2024
2 parents 9dc8a22 + 56b7168 commit 02acd8b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 29 deletions.
26 changes: 0 additions & 26 deletions .github/workflows/documentation.yml

This file was deleted.

4 changes: 2 additions & 2 deletions networking.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
resource "aws_eip" "public_client_ip" {
count = var.use_elastic_ips ? 1 : 0

vpc = true
domain = "vpc"
network_interface = aws_network_interface.client_nic[count.index].id
associate_with_private_ip = aws_network_interface.client_nic[count.index].private_ip

Expand All @@ -19,7 +19,7 @@ resource "aws_eip" "public_client_ip" {
resource "aws_eip" "public_node_ip" {
count = var.use_elastic_ips ? 1 : 0

vpc = true
domain = "vpc"
network_interface = aws_network_interface.node_nic.id
associate_with_private_ip = aws_network_interface.node_nic.private_ip

Expand Down
7 changes: 6 additions & 1 deletion outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ output "node_info" {
aws_ebs_volume.data_volume.id,
# node_seed
# Remove special characters and crop to into a 32 character seed.
substr(replace(replace(random_id.node_seed.b64_url, "_", ""), "-", ""), 0, 32)
substr(replace(replace(random_id.node_seed.b64_url, "_", ""), "-", ""), 0, 32),
# The node's public Client IP. Used later on for automatic genesis file generation
aws_eip.public_client_ip,
# The node's public Node IP. Used later on for automatic genesis file generation.
# Should be the same as the first output, but we are putting this here anyay for clarity.
aws_eip.public_node_ip
]
}

0 comments on commit 02acd8b

Please sign in to comment.