> ## Content Index
> Fetch the complete content index at: https://blog.chainsafe.io/llms.txt
> Use this file to discover other available public pages before exploring further.

# Deployment Automation for Goerli testnet in 10 minutes
- URL: https://blog.chainsafe.io/deployment-automation-for-goerli-testnet-in-10-minutes/
- Published: 2019-01-09T00:21:35.000Z
- Updated: 2026-05-08T23:22:48.000Z
- Author: ChainSafe Systems
- Tags: Ethereum, #Import 2023-11-01 00:46, #Import 2026-11-04 06:17

Authored by **Priom Chowdhury**  
**Updated the article to include the installation steps for Terraform to make the process easier.**

Hello world, happy new year to everyone. Hope you are having a great start to 2019.

> Today, I'm going to share a short tutorial to quickly deploy the new **[Goerli](https://goerli.com/?ref=blog.chainsafe.io)** Proof-of-Authority cross-client test network which was originally developed at **[ETHBerlin](https://ethberlin.com/?ref=blog.chainsafe.io)** in September 2018 and then we, **[Afri](https://twitter.com/5chdn?ref=blog.chainsafe.io)** (@5chdn) and **[ChainSafe](https://twitter.com/chainsafeth?ref=blog.chainsafe.io) (@chainsafeth),** have been actively developing **Goerli**. As of now, **Goerli** is \*\*\*\* supported in **[Geth](https://github.com/ethereum/go-ethereum?ref=blog.chainsafe.io), [Parity](https://github.com/paritytech/parity-ethereum?ref=blog.chainsafe.io), [Pantheon](https://github.com/PegaSysEng/pantheon?ref=blog.chainsafe.io), [Nethermind](https://github.com/NethermindEth/nethermind?ref=blog.chainsafe.io)** and **EthereumJ**S.

### If you would like to follow the current development of \_**Goerli**, f\_ork the **Goerli** testnet *[repo](https://github.com/goerli/testnet?ref=blog.chainsafe.io)*.

![ETHBerlin - Goerli Demo](https://miro.medium.com/1*2IvbXbp80TjyqbGKJMIuoQ.jpeg)

Let's get started. These steps will work on any **UNIX system (Mac & Linux).** First, go ahead and create a **GCP (Google Cloud Platform)** account *[here](https://cloud.google.com/?ref=blog.chainsafe.io)* and then create a project. By default, Google gives $300 worth of free credits for a year.

Then, we need **[Terraform](https://www.terraform.io/?ref=blog.chainsafe.io),** it is an open source tool to easily create reusable and modular infrastructure deployment automation code.

To install it on **Mac,** you can use **[brew](https://brew.sh/?ref=blog.chainsafe.io),** if you don't have **brew**, you can install it using this script. Once, you are done, then go ahead and install using the next command.

```
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

```

```
brew install terraform

```

If you are on any **Linux,** follow the quick walkthrough *[here](https://learn.hashicorp.com/terraform/getting-started/install.html?ref=blog.chainsafe.io)* to install Terraform. **Terraform** has some excellent documentation on how to get up and running quickly.

Next step, you have to create a *service account key* in GCP.

![GCP IAM](https://miro.medium.com/1*QW8rRWOD6N_05jZ576x4rA.png)

On the creation screen, give it a name and description. For the role access, make sure you give it **Compute Engine Admin** role. Next, create your key and download the **JSON** key. Make sure to **securely** store this file, this file is **very very private and sensitive**! And **DO NOT EVER PUSH THIS FILE TO YOUR PUBLIC REPO!**

![GCP service account key creation](https://miro.medium.com/1*fIB74o-aFsMmilzh9d3P7w.png)

Now that we have our necessary steps done, we will start writing our Terraform deployment script.

In your project directory, copy the **JSON** file which you just downloaded and then create a file called **goerli.tf** (you can name it whatever you want).

This is what your Terraform file will look like. In the first block, we define the provider which is *google* for us, inside that we define the location for the *credentials.json* and your *project ID* which you will find in your project settings.

Next, we define our *virtual instance's name, region, cpu, ram, hard disk, operating system, firewalls, and other necessary configs.*

At the very bottom, we define our *startup script* where the list of commands will run after the virtual instance is created to do the basic housekeeping stuff like updating the **OS**, installing **[Node.js](https://nodejs.org/?ref=blog.chainsafe.io)** and **[Geth](https://geth.ethereum.org/?ref=blog.chainsafe.io)** (the client which will be running **Goerli** at).

Now, in your terminal, run the command:

```
terraform apply

```

And, you should see your instance is being created in the GCP compute engine console.

### Congratulations, you have successfully deployed your virtual machine on the cloud! 👏 👏 👏

Next, we will SSH into our newly created VM. GCP provides few ways to connect to your remote machine rather than traditional methods; creating and managing your SSH keys like other cloud providers so, we will use the **gcloud** utils. You need to have **gcloud** installed on your computer so, go ahead and follow the instructions *[here](https://cloud.google.com/sdk/install?ref=blog.chainsafe.io)*.

![gcloud command in GCP console](https://miro.medium.com/1*3Hat1Xt8itUFxqFHI9qDVQ.png)

Once, you SSH'd into your VM, go ahead and clone the **Goerli** testnet repo from *[Github](https://github.com/goerli/testnet?ref=blog.chainsafe.io)* into your home directory and then we will run a few commands.

```
geth init ./testnet/geth/goerli.genesis

```

This is to initialize **Goerli**'s **Genesis** block.

We are almost done, next, we will copy the *boot nodes (the IP addresses of the peer nodes)* to the **geth* data directory.*

```
cp testnet/geth/static-nodes.json .ethereum

```

Now, we will boot up our **Goerli** node

```
nohup geth --networkid 6284 &

```

This will continue to run in the background. *6284* is the network ID of **Goerli** so when running Geth we need to specify as the - *goerli* hasn't been merged to **Geth** master yet. Here is the *[link](https://github.com/ethereum/go-ethereum/pull/18121?ref=blog.chainsafe.io)* to the PR.

You will see a file called *nohup.out,* where it stores the log. Now, if you do:

```
tail -f nohup.out

```

You should see the terminal output of **Geth** running the **Goerli** network.

### Congrats, we are done here, you are successfully one of the peers in the **Goerli** network! 🎉🎉🎉

You can use the same Terraform file by just tweaking a little bit to automate your deployment to any cloud provider like AWS, Azure, AliCloud, DigitalOcean, or even Heroku. You can also customize the current configuration to play with it.

**Here is a list of a few useful resources:**

> [**ethereum/go-ethereum**](https://github.com/ethereum/go-ethereum/wiki/geth?ref=blog.chainsafe.io)

> [**Provider: Google Cloud Platform - Terraform by HashiCorp**](https://www.terraform.io/docs/providers/google/index.html?ref=blog.chainsafe.io)

> [**Concepts | Compute Engine | Google Cloud**](https://cloud.google.com/compute/docs/concepts?ref=blog.chainsafe.io)

---

> If you like this article, please give some 👏🏻 . If you have any questions and feedbacks, please leave comments below. You can also reach me in T[witter ](https://twitter.com/pri0m?ref=blog.chainsafe.io)at @p[ri0m ](https://twitter.com/pri0m?ref=blog.chainsafe.io)and follow me on G[ithub.](https://github.com/priom?ref=blog.chainsafe.io)

> Follow [ChainSafe Systems](None), to learn more about Ethereum and upcoming development updates. Reach out to us in [Twitter](https://twitter.com/chainsafeth?ref=blog.chainsafe.io) at [@chainsafeth](https://twitter.com/chainsafeth?ref=blog.chainsafe.io).