Skip to content

Commit 3531e0e

Browse files
authored
Merge pull request #8 from firezone/chore/device-id
chore: use sha256 for firezone id
2 parents 5368f61 + df92904 commit 3531e0e

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)