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 Worker KV Namespace Bindings #544

Merged
merged 3 commits into from
Dec 3, 2019
Merged

Add support for Worker KV Namespace Bindings #544

merged 3 commits into from
Dec 3, 2019

Conversation

Johnee
Copy link
Contributor

@Johnee Johnee commented Nov 27, 2019

This MR relies on https://github.com/terraform-providers/terraform-provider-cloudflare/pull/443 (Implement Workers KV Namespaces), as the acceptance tests cannot be run without it.

Proposed syntax for implementing KV namespace bindings is:

# from aforementioned MR
resource "cloudflare_workers_kv_namespace" "example" {
 title = "example"
}

resource "cloudflare_worker_script" "example" {
  name = "example"
  content = "example"

  kv_namespace_binding {
    name = "example"
    namespace_id = cloudflare_workers_kv_namespace.example.id
  }
}

@ghost ghost added size/L kind/documentation Categorizes issue or PR as related to documentation. size/XL and removed size/L labels Nov 27, 2019
@ghost ghost added size/L and removed size/XL labels Nov 29, 2019
@patryk patryk merged commit b278abc into cloudflare:master Dec 3, 2019
@patryk
Copy link
Contributor

patryk commented Dec 3, 2019

Thanks @Johnee !

boekkooi-lengoo pushed a commit to boekkooi-lengoo/terraform-provider-cloudflare that referenced this pull request Feb 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/documentation Categorizes issue or PR as related to documentation. size/L
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants