-
Notifications
You must be signed in to change notification settings - Fork 6
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
AWS for all sources in single example #293
Conversation
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.
OK, some suggestions. Found the init-tfvars.sh
script a bit hard to follow, probably easier to manage in JSON format.
@@ -0,0 +1,23 @@ | |||
#!/bin/bash |
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.
this file seen 3 times so far. Could be a symlink, but for what I've read quickly needs git config core.symlinks=true to work well, and not supported in Windows I believe. Maybe worth to play with to reduce duplication
version = "~> 4.12" | ||
} | ||
|
||
# for the API connections to Google Workspace |
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.
missing azure provider?
@@ -0,0 +1 @@ | |||
../../../tools/az-auth.sh |
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.
is this a symlink??? looks like, the icon is different. Then use it in build
too
infra/modular-examples/aws/main.tf
Outdated
locals { | ||
msft_365_enabled = length(module.worklytics_connector_specs.enabled_msft_365_connectors) > 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.
move this local to the MSFT section where it is used
@@ -0,0 +1,82 @@ | |||
#!/bin/bash | |||
|
|||
# fills a terraform vars file with values that are required for the Terraform configuration to work |
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.
maybe use a node script that outputs the terraform vars in json
probably simpler to manage and don't really need to parse the terraform state/providers.
so it can read the enabled_connectors
variable and generate the missing values if non-existent
so adding a new connector will just be enabling it and run this on top, it may complement existing config
@@ -0,0 +1,553 @@ | |||
terraform { |
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 understand that this should be the only main.tf
to exist for aws
from now on
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.
aren't these folders - aws-google-workspace, aws-msft-365 deprecated?? now everything should be just aws
, right?
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.
yeah, but people who set-up using current modular-examples will still main.tf
s that are equivalent to these. so I prefer not to fully drop them at this point (we can't drop the modular-example
versions, and I like have dev examples that use those)
Features
Change implications