Change to the "~/next" directory and run:
next keygen
This generates a fresh set of keypairs for your network next instance, so that it uniquely secured vs. any other network next instances.
Secrets are generated and stored under ~/secrets.
Back up the secrets directory somewhere. If you lose it, you will not be able to administer your network next instance.
Edit the config.json file at the root fo the next repository.
By default it should contain something like this:
{
"company_name": "alocasia",
"vpn_address": "45.79.157.168",
"cloudflare_zone_id": "eba5d882ea2aa23f92dfb50fbf7e3cf4",
"cloudflare_domain": "virtualgo.net",
"google_billing_account": "012279-A33489-722F96",
"google_org_id": "434699063105",
"ssh_key": "~/secrets/next_rsa"
}-
Set company_name to be some unique identifier. It could be your company name or a random word. It is not publicly visible, but it must be unique. It may contain only letters and underscores.
-
Set vpn_address to the IP address of the OpenVPN that you setup in the previous section
-
Set cloudflare_zone_id to the zone id for your domain managed by cloudflare. You can find the zone id in the cloudflare portal.
-
Set cloudflare_domain to the domain name you are using with network next. This domain must correspond to the zone id in cloudflare.
-
Set google_billing_account to one of your linked billing accounts in google cloud. Run
gcloud billing accounts listto list the set of billing accounts linked to your google cloud account. There is usually only one. -
Set google_org_id to your google organization id. Run
gcloud organizations listto get a list of organization ids linked to your account. There is usually only one.
Change to "~/next" and run:
next config
This config will modify source files throughout the repository.
Please review the changes with:
git diff
And commit these changes to the repository:
git commit -am "config" && git push origin
You are now ready to Create Google Cloud Projects with Terraform
