Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX: Update Deployment documentation #622

Merged
merged 4 commits into from
Jun 20, 2024
Merged

Conversation

kmaus-near
Copy link
Collaborator

Closes #599

Please let me know if there is anything else that needs to be added to this doc.

@kmaus-near kmaus-near requested review from volovyks and ppca May 30, 2024 18:31
@kmaus-near kmaus-near self-assigned this May 30, 2024
ppca
ppca previously approved these changes Jun 4, 2024
infra/README.md Outdated Show resolved Hide resolved
volovyks
volovyks previously approved these changes Jun 4, 2024
Copy link
Collaborator

@volovyks volovyks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work!
Internally we will need a list of permissions a person need to update both envs.


## Environments:
- Testnet (Production)
- Dev (Development)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we still have partner and testnet folders?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because partner is a codebase for our partners to use this code to deploy their environment. Testnet is our personal environment.

1. Make sure you have [terraform installed](https://developer.hashicorp.com/terraform/tutorials/aws-get-started/install-cli) on your local machine
2. Navigate to the `infra` directory, and then the `multichain-dev` directory
3. Verify the variables in both `variables.tf` and `terraform-dev.tfvars` are up to date
4. Verify the environment variables (`main.tf lines 17-61`, `variables.tf lines 87-150`) for the container are as desired
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would not mention lines here, we will forget to update it. I think it's better to mention specific fields you need to update.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feel free to add those, I am not sure what fields get updated frequently.

- partner
- internal
description: Do you want to deploy the Parner nodes or internal Pagoda nodes?
default: us-east1-docker.pkg.dev/pagoda-discovery-platform-prod/multichain-public/multichain-testnet
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we also need to build it from the main branch instead of develop branch.Can we add that as well? Thanks

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can select which branch to build from in the workflow dispatch run, it defaults to main branch.

@kmaus-near kmaus-near dismissed stale reviews from volovyks and ppca via 77a1baa June 18, 2024 15:57
@kmaus-near kmaus-near merged commit 4a091f4 into develop Jun 20, 2024
1 of 2 checks passed
@kmaus-near kmaus-near deleted the kmaus-near/deployment-docs branch June 20, 2024 19:57
Copy link

Terraform Feature Environment Destroy (dev-622)

Terraform Initialization ⚙️success

Terraform Destroy success

Show Destroy Plan


No changes. No objects need to be destroyed.

Either you have not created any objects yet or the existing objects were
already deleted outside of Terraform.

Destroy complete! Resources: 0 destroyed.

Pusher: @kmaus-near, Action: pull_request, Working Directory: ``, Workflow: Terraform Feature Env (Destroy)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deploy and Update instructions
3 participants