-
Notifications
You must be signed in to change notification settings - Fork 7
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
Add doc for share environments #193
Changes from 5 commits
b358367
4f7594b
fd55710
2fe28ae
e6261d1
90e3abf
c35cfd2
df9173f
6d478d7
1c8786c
2c63ab5
02f9b2f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,35 @@ | ||||||||||
# How to share environment with others | ||||||||||
|
||||||||||
This explanation is for multiple person operating in the same environment. | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
|
||||||||||
feeblefakie marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||
## Get a public/private key-pair from the person who built the environment | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Since we can just generate a corresponding public key, I deleted the statement. |
||||||||||
|
||||||||||
:memo: Also need all the tfstate files when using `local` backend | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
|
||||||||||
## Update the tfstate of the network module | ||||||||||
|
||||||||||
- Fix key_path of `example.tfvars` in your local | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Overall it's weird to talk about |
||||||||||
|
||||||||||
``` | ||||||||||
public_key_path = "./example_key.pub" | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
|
||||||||||
private_key_path = "./example_key" | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
``` | ||||||||||
|
||||||||||
- Update the output value `private_key_path` and `public_key_path` of tfstate | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
|
||||||||||
``` | ||||||||||
cd example/[aws|azure]/network | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
terraform init | ||||||||||
terraform refresh -var-file=example.tfvars | ||||||||||
``` | ||||||||||
|
||||||||||
## Update the tfstate of the cassandra, scalardl and monitor modules | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
|
||||||||||
- Update the value `private_key_path` and `public_key_path` of `data.terraform_remote_state.network` in each tfstate | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
|
||||||||||
``` | ||||||||||
cd example/[aws|azure]/[cassandra|scalardl|monitor] | ||||||||||
terraform init | ||||||||||
terraform refresh -var-file=example.tfvars | ||||||||||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.