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

Provide a script to create a workspace folder and copy the terraform over #40

Open
seansund opened this issue Mar 21, 2022 · 1 comment

Comments

@seansund
Copy link
Member

In the IBM Cloud infrastructure release we provided a setup.sh script that copied the terraform into a new workspace/ folder. There were at least two reasons for doing this:

  1. It separated the immutable terraform content in the repo from the working copy of everything. That way changes don't accidentally get pushed back into the repo. It also means that new updates could be brought down via git pull without immediately applying those changes to the working copy
  2. Multiple workspace folders could be created to preserve the configuration and state for different deployments

In the past the setup.sh script did a lot of things but in this case we could simplify the logic to just copying the modules into a workspace folder.

@mjperrins
Copy link
Member

in FS Cloud we used setup-workspace shall we agree on setup.sh ?

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

No branches or pull requests

2 participants