GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — sendgrid integration by davidcheung · Pull Request #79 · commitdev/zero-aws-eks-stack Conversation
|
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should do something similar to what I did in post-apply, and source a script that is specific to sendgrid, then we can optionally include it. We may want to make this support optional via a parameter.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
All this stuff is quite vulnerable to them making changes to their API, but it seems like it's the only option.. :feelsbadman:
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Yeah hopefully they won't make breaking changes on their /v3 api, then we would have the option to manually upgrade it 🤞
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This should be templated rather than a var?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I'm relying on the script to generate tfvars.json that will look something like
//terraform/environments/stage/sendgrid.auto.tfvars.json { "sendgrid_enabled": true, "sendgrid_domain_id": 9104854, "sendgrid_cname": [ [ "em7596.email.get0.dev", "u18291290.wl041.sendgrid.net" ], [ "s1._domainkey.email.get0.dev", "s1.domainkey.u18291290.wl041.sendgrid.net" ], [ "s2._domainkey.email.get0.dev", "s2.domainkey.u18291290.wl041.sendgrid.net" ] ] } // terraform/environments/stage/sendgrid-secrets.auto.tfvars.json {"sendgrid_apikey": "SG.blahblah-secret"}
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Oh yeah, I must have missed that. Hm, not sure how I feel about this.. I'll think a bit more about it.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Yeah, actually this would make the tf totally unusable.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
with the variables and default values in the stage/prod, they will just go to the default (enabled:false) and empty values
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Could use something in the readme about how to create a sendgrid account and an api key and have everything in the right state to start this process. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
should be "sendgrid_cnames"
Sorry, something went wrong.
There was an error while loading. Please reload this page.
bcfa649 to
de15e2c
Compare
2a90088 to
af652d7
Compare
af652d7 to
fc37a51
Compare
| count = var.sendgrid_enabled ? 1 : 0 | ||
|
|
||
| zone_name = var.domain_name | ||
| sendgrid_api_key_secret_name = var.sendgrid_api_key_secret_name |
There was a problem hiding this comment.
The 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 🎉
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
|
||
| module "sendgrid_api_key" { | ||
| source = "../../modules/secret" | ||
| name = "${local.project}-sendgrid-<% index .Params `randomSeed` %>" |
There was a problem 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.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| - "kibana" | ||
| - field: sendgridApiKey | ||
| label: API key to setup email integration | ||
| 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. |
There was a problem hiding this comment.
The 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?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
* sendgrid integration * reimpl with external datasource * docs: message for optional sendgird api key
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.