0xjjpa / zkaccess-infra

Setting up a Ceramic prod node via Terraform / Ansible using GitHub Actions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Your Ceramic Quick Start Guide

Global Needs

Pre-reqs

how to install gpg

Setting up the repo

mac/linux

  1. Create a new key-pair (be sure to avoid committing the private key to the repo)
    ssh-keygen -f ./ansible-key -t rsa -b 4096 -C ansible-key
  2. Create a new secret in your repo called ANSIBLE_PUBLIC_KEY and paste the contents of ansible-key.pub into the value field.
  3. Encrypt the private key with gpg (you will commit this to the repo)
    gpg --symmetric --cipher-algo AES256 ansible-key
  4. Enter a super strong password, but keep it handy.
  5. Create a new secret in your repo called SSH_PASSPHRASE and paste the super strong password you used above into the value field.
  6. Make sure the encrypted private key is in the proper directory
    mv ansible-key.gpg .github/config/ansible-key.gpg    ```
  7. Commit the encrypted private key to your repo in the .github/config directory
    git add .github/config/ansible-key.gpg
    git commit -m "Add encrypted ansible key"
    git push

Configuring a cloud provider

AWS Instructions You need to set the following info from your aws account That means you also need an aws account!

AWS_ACCESS_KEY_ID

AWS_SECRET_ACCESS_KEY

GCP Instructions Not yet implemented
Digital Ocean Instructions Not yet implemented

Deploying the infrastructure

Some general instructions about how to use Actions

About

Setting up a Ceramic prod node via Terraform / Ansible using GitHub Actions


Languages

Language:JavaScript 100.0%