Skip to content

Commit c180dc1

Browse files
authored
Merge pull request #10 from firezone/fix/sha256
fix: use more ubiquitous sha256sum over sha256
2 parents 3531e0e + 4e75029 commit c180dc1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

examples/internet-gateway/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ locals {
1010
firezone_token = "<YOUR TOKEN HERE>"
1111

1212
# We recommend a minimum of 3 instances for high availability.
13-
gateway_count = 4
13+
gateway_count = 3
1414

1515
# Whether to attach Elastic IPs to the Gateway instances. Set to false to restrict the Gateways
1616
# to private subnets only. Note: using only private subnets for the Gateway will require a NAT in a public subnet.

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ resource "aws_instance" "gateway" {
2121
FIREZONE_TOKEN="${var.firezone_token}" \
2222
FIREZONE_VERSION="${var.firezone_version}" \
2323
FIREZONE_NAME="${var.firezone_name}" \
24-
FIREZONE_ID="$(head -c /dev/urandom | sha256)" \
24+
FIREZONE_ID="$(head -c 32 /dev/urandom | sha256sum | cut -d' ' -f1)" \
2525
FIREZONE_API_URL="${var.firezone_api_url}" \
2626
bash <(curl -fsSL https://raw.githubusercontent.com/firezone/firezone/main/scripts/gateway-systemd-install.sh)
2727

variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
variable "base_ami" {
2-
description = "The base AMI for the instances"
2+
description = "The base AMI for the instances. This module assumes a Debian-based AMI."
33
type = string
44
}
55

0 commit comments

Comments
 (0)