-
Notifications
You must be signed in to change notification settings - Fork 45
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
[tf-module:push-notifications] Allow to define multiple apps per client platform #347
[tf-module:push-notifications] Allow to define multiple apps per client platform #347
Conversation
…ent platform NOTE: This is a breaking change and requires Terraform state migration ('terraform state mv') Due to the fact that multiple different clients (app/build ID) can be connected to the same backend and at the same time desire to receive push notifications, it should be possible to register those apps to the same events/notifications queue.
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.
requires Terraform state migration ('terraform state mv')
Could you document the state migration procedure required in a bit more detail?
Sure :+1 |
Additionally, @akshaymankar feedback was:
After giving this a little bit of thought, I came to the conclusion, that it would have little value to move them together. The arguments are:
I had another peek into how our own SNS setup currently looks like. The |
939f568
to
b700483
Compare
…rces This changeset unifies both platform resources. This is possible because TF - for once - behaves as expected and drops a resource attribute that is set to 'null'. This also helps to deduplicate the logic that is used to massage the app lists inputs to cope with 'for_each'. Allow the list of apps to not being set. Because this is now allowed, the overall existence of any application is used as indicator to figure out whether the IAM policy has to be created or not.
b700483
to
41043bd
Compare
NOTE: This is a breaking change and requires Terraform state migration ('terraform state mv')
Due to the fact that multiple different clients (app/build ID) can be connected to
the same backend and at the same time desire to receive push notifications, it should
be possible to register those apps to the same events/notifications queue.
preliminary work for: https://github.com/zinfra/backend-issues/issues/1794