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

Create Workers with service bindings #1696

Closed
taliaferro opened this issue Jun 12, 2022 · 2 comments · Fixed by #1760
Closed

Create Workers with service bindings #1696

taliaferro opened this issue Jun 12, 2022 · 2 comments · Fixed by #1760
Labels
kind/enhancement Categorizes issue or PR as related to improving an existing feature. service/workers Categorizes issue or PR as related to the Workers service. triage/accepted Indicates an issue or PR is ready to be actively worked on. workflow/pending-upstream-library Indicates an issue or PR requires changes from an upstream library.
Milestone

Comments

@taliaferro
Copy link

taliaferro commented Jun 12, 2022

Current Terraform and Cloudflare provider version

Terraform v1.2.2
on darwin_arm64
+ provider registry.terraform.io/cloudflare/cloudflare v3.16.0

Description

Workers can be bound to other workers using the service binding mechanism. Terraform ought to be able to create Workers with these bindings too.

Use cases

The end goal would be to use Terraform to orchestrate a sort of service mesh architecture, made up of small, composable microservices.

Potential Terraform configuration

resource "cloudflare_worker_script" "auth" {
  name    = auth
  content = file("auth_service.js")
}

resource "cloudflare_worker_script" "api" {
  name    = "api"
  content = file("api.js")
  service_binding {
    name            = "AUTH_SERVICE"
    bound_worker_id = cloudflare_worker_script.auth.id
  }
}

References

I'm sure this'll get tagged with pending-upstream-library, since this functionality doesn't exist in cloudflare-go yet, so I've created an issue in the cloudflare-go project too.

@taliaferro taliaferro added kind/enhancement Categorizes issue or PR as related to improving an existing feature. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Jun 12, 2022
@taliaferro taliaferro changed the title Support Service bindings for Workers Create Workers with service bindings Jun 12, 2022
@jacobbednarz jacobbednarz added workflow/pending-upstream-library Indicates an issue or PR requires changes from an upstream library. triage/accepted Indicates an issue or PR is ready to be actively worked on. service/workers Categorizes issue or PR as related to the Workers service. and removed needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Jun 13, 2022
@sodabrew
Copy link

Begins to be unblocked by #1728!

@github-actions
Copy link
Contributor

This functionality has been released in v3.19.0 of the Terraform Cloudflare Provider.

Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement Categorizes issue or PR as related to improving an existing feature. service/workers Categorizes issue or PR as related to the Workers service. triage/accepted Indicates an issue or PR is ready to be actively worked on. workflow/pending-upstream-library Indicates an issue or PR requires changes from an upstream library.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants