-
Notifications
You must be signed in to change notification settings - Fork 20
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
feat: fogg create tfe folder #730
Conversation
@@ -30,7 +30,7 @@ import ( | |||
const rootPath = "terraform" | |||
|
|||
// Apply will run a plan and apply all the changes to the current repo. | |||
func Apply(fs afero.Fs, conf *v2.Config, tmp *templates.T, upgrade bool) error { | |||
func Apply(fs afero.Fs, conf *v2.Config, tmpl *templates.T, upgrade bool) error { |
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.
tmp was confusing to me since it sounded like temporary
comp2: {} | ||
accounts: | ||
account: {} | ||
tfe: |
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.
example of how to add this support to your fogg yml
testdata/tfe_config/fogg.yml
Outdated
gh_org: chanzuckerberg | ||
gh_repo: fogg | ||
tfe_org: si.prod.tfe.czi.technology | ||
module_source: github.com/chanzuckerberg/cztack//aws-params-reader-policy?ref=v0.15.1 |
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.
in the real world, you would use something like [email protected]:chanzuckerberg/shared-infra//terraform/modules/tfe-management?ref=tfe-management-v1.0.0
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.
I had to change it so CICD would pass since its a private module
Summary
This PR adds a feature to fogg that adds an optional tfe/ folder to synchronize fogg env/accounts with tfe workspaces.