-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
SNS applications #3335
SNS applications #3335
Conversation
Sample invokation |
@radeksimko @phinze @catsby ok, should be ready for a review / don't consider this a WIP anymore. I've moved the secret (credential) to use StateFunc, so that we only store a hash. I still store the principal in plaintext, but that's either a cert or a client id and shouldn't be considered secret anyways. This is working for me, so if the code looks good I can write the docs up. Let me know if acceptance tests are needed to get these accepted (I might have a hard time writing them, as I've never done this for terraform yet). |
Thanks @dalehamel for submitting this. Acceptance test, at least a basic one for resource existence, would definitely help to move this PR forward. Feel free to get some inspiration from |
@radeksimko cool - i'll try and whip something up. The tricky thing here is that we'll need a pair of credentials to try and authenticate with... hopefuly they don't have to be valid! I'll try and just create some mock x509 cert/keys. |
Really think I'm tapped here . sns sam client in my logcat extreme . other weird stuff. Anyone have good suggestions for a brother ? |
Hey @dalehamel – I'm going to close this for now, let us know if you plan on picking it back up sometime |
@dalehamel I may have a need for something like this soon. Would you mind if I picked it up where you left off? Thanks! |
Please do On Fri, Aug 12, 2016 at 11:35 AM, Xirel notifications@github.com wrote:
|
@radeksimko I have unit tests for this written up, and they pass with my GCM Api Key. But before I submit this, I'm wondering what the suggestion is for not submitting my own GCM Api Key. The tests will not pass without a valid key. Thanks! |
Pull Request Submitted, build failing as expecting without the GCM and APNS keys in the environment variable. Looking for ways to overcome this without providing our credentials. |
any news on this? |
@MattBlack85 The implementation was done a few months back. Tests, Documentation, everything should be up to HashiCorp standards. Please take a look at my pull request here: #8294 A couple of folks have been asking for it over in that Pull Request as well, please join in if it's something you want merged in as well. Thanks! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
This adds support for SNS applications. This allows managing iOS, Android, and other mobile application push notifications via SNS in terraform, which is a use case we have.
This is modeled heavily after SNS topics.
The biggest obvious issue with this is that the private key will be stored in terraform state. A potential work-around for this would be to hash the contents store the hash instead of the actual contents in some way, but I'm not sure on how to do that.
Tested basic things like create/update/destroy manually.
Some things I'll expect would be needed to get this merged:
@phinze @catsby for review
cc @thegedge