Skip to content

Commit df92904

Browse files
committed
Use sha256 for firezone id
1 parent 5368f61 commit df92904

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ resource "aws_instance" "gateway" {
1616
1717
export DEBIAN_FRONTEND=noninteractive
1818
sudo apt-get update
19-
sudo apt-get install -y curl uuid-runtime iptables
19+
sudo apt-get install -y curl iptables
2020
2121
FIREZONE_TOKEN="${var.firezone_token}" \
2222
FIREZONE_VERSION="${var.firezone_version}" \
2323
FIREZONE_NAME="${var.firezone_name}" \
24-
FIREZONE_ID="$(uuidgen)" \
24+
FIREZONE_ID="$(head -c /dev/urandom | sha256)" \
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

0 commit comments

Comments
 (0)