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

feat: fogg create tfe folder #730

Merged
merged 7 commits into from
Sep 19, 2022
Merged

feat: fogg create tfe folder #730

merged 7 commits into from
Sep 19, 2022

Conversation

jakeyheath
Copy link
Contributor

Summary

This PR adds a feature to fogg that adds an optional tfe/ folder to synchronize fogg env/accounts with tfe workspaces.

@jakeyheath jakeyheath requested a review from a team as a code owner September 16, 2022 23:22
@jakeyheath jakeyheath requested a review from fctczi September 16, 2022 23:22
@@ -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 {
Copy link
Contributor Author

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:
Copy link
Contributor Author

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

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
Copy link
Contributor Author

@jakeyheath jakeyheath Sep 16, 2022

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

Copy link
Contributor Author

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

@jakeyheath jakeyheath enabled auto-merge (squash) September 19, 2022 16:31
@jakeyheath jakeyheath merged commit b259e9b into main Sep 19, 2022
@jakeyheath jakeyheath deleted the heathj/fogg-tfe branch September 19, 2022 16:33
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.

2 participants