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 support for Cloud Scheduler #2571

Closed
maryamhanifpour opened this issue Dec 4, 2018 · 8 comments
Closed

Add support for Cloud Scheduler #2571

maryamhanifpour opened this issue Dec 4, 2018 · 8 comments

Comments

@maryamhanifpour
Copy link

maryamhanifpour commented Dec 4, 2018

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

Please add support for Cloud Scheduler: https://cloud.google.com/scheduler/

New or Affected Resource(s)

  • google_cloud_scheduler_job

Potential Terraform Configuration

# Propose what you think the configuration to take advantage of this feature should look like.
# We may not use it verbatim, but it's helpful in understanding your intent.
resource "google_cloud_scheduler_job" "foo" {
  name = "foo"
  description = "my job"
  schedule = "30 12 * * *"
  timezone = "America/New_York"
  retry_config {
    retry_count = 4
    max_retry_duration = 60
    min_backoff_duration = 5
    max_backoff_duration = 30
    max_doublings = 3
  }
  pubsub_target {
    topic_name = "projects/myproject/topics/mytopic"
    data = "my message payload"
    attributes = {
      mykey = "myvalue"
    }
  }
  # or
  app_engine_http_target {
    http_method = "POST"
    app_engine_routing {
      service = "web"
      version = "prod"
      instance = "my-instance-001"
    }
    relative_uri = "/my/path"
    headers = {
      My-Header = "my value"
    }
    body = "my body"
  }
  # or
  http_target {
    uri = "https://www.example.com/my/endpoint"
    http_method = "POST"
    headers = {
      My-Header = "my value"
    }
    body = "my body"
  }
}

References

  • #0000
@ghost ghost added the enhancement label Dec 4, 2018
@paddycarver
Copy link
Contributor

Updated the issue with a bit more detail. Sounds like a nice thing to add, though!

@paddycarver paddycarver changed the title cloudscheduler Add support for Cloud Scheduler Dec 5, 2018
@g-harel
Copy link

g-harel commented Dec 16, 2018

Hey, I'd like to give this issue a try if that would be helpful. If you think it might be too involved as a first issue please let me know!

Just to double-check, since Cloud Scheduler is in beta, it looks like I should plan on opening a PR in the google-beta provider repo?

@watchinharrison
Copy link

I'd be really keen to offer some assistance on this issue too

@g-harel
Copy link

g-harel commented Dec 19, 2018

Per this page, I'll fork off of the beta repo.

@davidharrisonlb Still not sure if this is something that could be auto-generated, but I'll be working here (on the cloud-scheduler branch) for now. We can talk over email if that works for you!

gabrielj.harel@gmail.com

g-harel added a commit to g-harel/terraform-provider-google-beta that referenced this issue Dec 19, 2018
@watchinharrison
Copy link

Hey @g-harel I've done some work on your branch and need to push it up, or I can fork your branch and PR my changes? email is below for adding me as a contributor

david.harrison@ladbiblegroup.com

@paddycarver
Copy link
Contributor

Hey y'all, as per the contributing guide we're actually doing all our development in the magic modules repo now, so PRs against that would be preferred. That doesn't mean the resource needs to be generated, just that we're going to have to make the changes there, so it's easier if the PR happens against that, instead. :)

@rileykarson
Copy link
Collaborator

Closed by GoogleCloudPlatform/magic-modules#1102

@ghost
Copy link

ghost commented Mar 1, 2019

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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks!

@ghost ghost locked and limited conversation to collaborators Mar 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants