-
Notifications
You must be signed in to change notification settings - Fork 9
sendgrid integration #79
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
Changes from all commits
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 |
|---|---|---|
|
|
@@ -118,3 +118,12 @@ module "logging" { | |
| ebs_volume_size_in_gb = var.logging_volume_size_in_gb | ||
| create_service_role = var.logging_create_service_role | ||
| } | ||
|
|
||
| module "sendgrid" { | ||
| source = "commitdev/zero/aws//modules/sendgrid" | ||
| version = "0.0.2" | ||
| count = var.sendgrid_enabled ? 1 : 0 | ||
|
|
||
| zone_name = var.domain_name | ||
| sendgrid_api_key_secret_name = var.sendgrid_api_key_secret_name | ||
|
Contributor
Author
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. almost all the logic has been moved to commitdev/terraform-aws-zero@bd194a0 with the external-datasource 🎉 |
||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -71,6 +71,9 @@ parameters: | |
| options: | ||
| - "cloudwatch" | ||
| - "kibana" | ||
| - field: sendgridApiKey | ||
| label: "API key to setup email integration (optional: leave blank to opt-out of Sendgrid setup)" | ||
| info: Signup at https://signup.sendgrid.com or create an API key from https://app.sendgrid.com/settings/api_keys. Sendgrid is an email delivery service enabling transactional email sending and more. | ||
|
Contributor
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. How about a note here that they can leave this blank to not set up sendgrid? |
||
| - field: accountId | ||
| label: AWS Account ID | ||
| execute: aws sts get-caller-identity --query "Account" | tr -d '"' | ||
|
|
||
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 assumes the same api key will be shared for both staging / production, which I think is probably fine for now.