Skip to content
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

Add google_fcm_server_key resource #8294

Open
mleonhard opened this issue Jan 25, 2021 · 2 comments
Open

Add google_fcm_server_key resource #8294

mleonhard opened this issue Jan 25, 2021 · 2 comments

Comments

@mleonhard
Copy link

mleonhard commented Jan 25, 2021

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment. If the issue is assigned to the "modular-magician" user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If the issue is assigned to a user, that user is claiming responsibility for the issue. If the issue is assigned to "hashibot", a community member has claimed the issue already.

Description

I wish to automate configuring Firebase Cloud Messaging for apps. This has several purposes:

  • eliminate error-prone manual steps
  • reduce manual handling of credentials
  • bring FCM config under our software development process (code reviews, continuous integration, continuous deployment)

New or Affected Resource(s)

  • google_fcm_server_key resource
    • google_firebase_project_id
    • key attribute

Potential Terraform Configuration

resource "google_project" "default" {
  provider = google-beta

  project_id = "app-staging"
  name       = "app-staging"
  org_id     = "123456789"
}

resource "google_firebase_project" "default" {
  provider = google-beta
  project  = google_project.default.project_id
}

resource "google_fcm_server_key" "default" {
  google_firebase_project_id = google_firebase_project.default.id
}
output "google_fcm_server_key" {
  value = google_fcm_server_key.default.key
}

References

@slevenick
Copy link
Collaborator

Same as others the other linked requests, we will need a REST API for this

@rileykarson
Copy link
Collaborator

This doesn't appear to have changed- API surface at https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants