... | ... | @@ -7,12 +7,13 @@ |
|
|
3. Download [Packer](https://www.packer.io/downloads) (used with 1.7.3, latest is 1.7.6)
|
|
|
|
|
|
4. Create new ssh key (optional but recommended)
|
|
|
`ssh-keygen -t rsa -b 4096 -C "your_email@example.com"`
|
|
|
Remember the name/location of the private key as we'll have to specify it later.
|
|
|
The public key `~/.ssh/KEY.pub` will have to be uploaded to the cloud provider.
|
|
|
`ssh-keygen -t rsa -b 4096 -C "your_email@example.com" `
|
|
|
Remember the name/location of the private key as we'll have to specify it later.
|
|
|
The public key `~/.ssh/KEY.pub` will have to be uploaded to the cloud provider.
|
|
|
|
|
|
5. Copy the `envs/template_env` folder creating whatever name you want. Per domain for smaller setups, possibly per team for larger organizations. `envs/template_env` is in vcs while every other folder in `envs` is ignored by git. This is to prevent various tokens and other secrets such as those in `credentials.tf` from being caught by git.
|
|
|
`cp envs/template_env envs/your_env_folder`
|
|
|
5. Copy the `envs/template_env` folder creating whatever name you want. Per domain for smaller setups, possibly per team for larger organizations. `envs/template_env` is in vcs while all other folders in `envs` are ignored by git. This is to prevent various tokens and other secrets such as those in `credentials.tf` from being caught by git.
|
|
|
|
|
|
`cp envs/template_env envs/your_env_folder`
|
|
|
|
|
|
>I personally have no experience using the following technology, but if its necessary to keep values in your env_folder version controlled (cross-team collab), mozilla has a very handy tool for that called [SOPS: Secrets OPerationS](https://github.com/mozilla/sops#sops-secrets-operations). This encrypts secrets/keys in a file and allows them to be commited and only certain individuals would be able to decrypt those values.
|
|
|
|
... | ... | @@ -20,5 +21,11 @@ The public key `~/.ssh/KEY.pub` will have to be uploaded to the cloud provider. |
|
|
|
|
|
<br>
|
|
|
|
|
|
After your workstation is setup, you can move on to [configuring your cloud provider](cloud-provider)
|
|
|
After your workstation is setup, you can move on to [configuring your cloud provider](cloud-provider).
|
|
|
|
|
|
---
|
|
|
|
|
|
- 1/4 ~~[Setup workstation](workstation)~~ <- Current page
|
|
|
- 2/4 [Configure a cloud provider](cloud-provider)
|
|
|
- 3/4 [Configure an external domain](domain)
|
|
|
- 4/4 [Adjust settings and deploy](deploy) |
|
|
\ No newline at end of file |