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
Cloud Scheduler Name Error #3086
Comments
It looks like, as a workaround, you can specify the name as |
unfortunately I still get a similar error doing that:
[image: image.png]
…On Tue, Feb 19, 2019 at 7:12 PM Paddy ***@***.***> wrote:
It looks like, as a workaround, you can specify the name as
"/projects/$PROJECT_ID/$NAME where $PROJECT_ID and $NAME are replaced
with the appropriate values. But we should probably make this default to
the project configured on the resource unless the user has a / in the
name.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#3086 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AVfYLxSenrNrG6qW_F_9HTzmkSXMyMltks5vPJMIgaJpZM4bEIGq>
.
--
*Kaitlin Ardiff*
kardiff@google.com
Strategic Cloud Engineer
|
Unfortunately, I can't see the image :( |
Error creating job: googleapi: Error 400: Job name must be formatted:
"projects/<PROJECT_ID>/locations/<LOCATION_ID>/jobs/<JOB_ID>
with using
name="/projects/${var.project}/locations/${var.region}/jobs/${var.jobid}"
…On Tue, Feb 19, 2019 at 7:33 PM Paddy ***@***.***> wrote:
Unfortunately, I can't see the image :(
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#3086 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AVfYL57mRfvbs2RPq1b8N2ZHFgX48wBZks5vPJfEgaJpZM4bEIGq>
.
--
*Kaitlin Ardiff*
kardiff@google.com
Strategic Cloud Engineer
|
This issue here is the https://www.terraform.io/docs/providers/google/r/cloud_scheduler_job.html#topic_name |
https://github.com/GoogleCloudPlatform/magic-modules/pull/1450/files#diff-698fbd497afa0f10e3c05a34bf2e3389 should help clarify how to use this; regardless, the disctinction is already documented and I'm hesitant to add a regex-based validation here. |
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! |
Community Note
Affected Resource(s)
Terraform Configuration Files
Debug Output
google_cloud_scheduler_job.schedule_job: 1 error(s) occurred:
google_cloud_scheduler_job.schedule_job: Error creating Job: googleapi: Error 400: Resource name should start with "/projects/<PROJECT_ID>/"
Expected Behavior
Create a scheduler job
Actual Behavior
Steps to Reproduce
terraform apply
The text was updated successfully, but these errors were encountered: