forked from cloudflare/terraform-provider-cloudflare
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'cloudflare:master' into master
- Loading branch information
Showing
83 changed files
with
2,320 additions
and
225 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
```release-note:bug | ||
resource/cloudflare_risk_behavior: fix bug where partial definition of risk behaviors resulted in a provider error | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
```release-note:enhancement | ||
resource/cloudflare_teams_list: add support for descriptions on list items | ||
``` |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
```release-note:note | ||
resource/cloudflare_worker_cron_trigger: deprecated in favour of `cloudflare_workers_cron_trigger` and will be removed in the next major version. | ||
``` | ||
|
||
```release-note:note | ||
resource/cloudflare_worker_domain: deprecated in favour of `cloudflare_workers_domain` and will be removed in the next major version. | ||
``` | ||
|
||
```release-note:note | ||
resource/cloudflare_worker_route: deprecated in favour of `cloudflare_workers_route` and will be removed in the next major version. | ||
``` | ||
|
||
```release-note:note | ||
resource/cloudflare_worker_script: deprecated in favour of `cloudflare_workers_script` and will be removed in the next major version. | ||
``` | ||
|
||
```release-note:note | ||
resource/cloudflare_worker_secret: deprecated in favour of `cloudflare_workers_secret` and will be removed in the next major version. | ||
``` | ||
|
||
|
||
```release-note:note | ||
resource/cloudflare_workers_for_platforms_namespace: deprecated in favour of `cloudflare_workers_for_platforms_dispatch_namespace` and will be removed in the next major version. | ||
``` | ||
|
||
```release-note:new-resource | ||
cloudflare_workers_secret | ||
``` | ||
|
||
```release-note:new-resource | ||
cloudflare_workers_script | ||
``` | ||
|
||
```release-note:new-resource | ||
cloudflare_workers_route | ||
``` | ||
|
||
```release-note:new-resource | ||
cloudflare_workers_domain | ||
``` | ||
|
||
```release-note:new-resource | ||
cloudflare_workers_cron_trigger | ||
``` | ||
|
||
```release-note:new-resource | ||
cloudflare_workers_for_platforms_dispatch_namespace | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
```release-note:note | ||
resource/cloudflare_record: `value` is now deprecated in favour of `content` | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
```release-note:enhancement | ||
resource/cloudflare_teams_rule: Add `disable_clipboard_redirection` attribute to `BISOAdminControls` | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
```release-note:bug | ||
resource/cloudflare_list_item: handle overlapping hostname `url_hostname` | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
```release-note:enhancement | ||
resource/hyperdrive_config: Add support for creating Hyperdrive over Access configs | ||
``` | ||
|
||
```release-note:enhancement | ||
resource/hyperdrive_config: Add support for max_age and stale_while_revalidate in Hyperdrive Config caching settings | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
.gritmodules* | ||
*.log |
9 changes: 9 additions & 0 deletions
9
.grit/patterns/cloudflare_record_deprecate_value_for_content.grit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
engine marzano(0.1) | ||
language hcl | ||
|
||
pattern cloudflare_record_deprecate_value_for_content() { | ||
`value = $v` as $record => `content = $v` where $record <: and { | ||
within `resource "cloudflare_record" $_ { $_ }`, | ||
not within `data { $_ }`, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
--- | ||
page_title: "cloudflare_workers_cron_trigger Resource - Cloudflare" | ||
subcategory: "" | ||
description: |- | ||
Worker Cron Triggers allow users to map a cron expression to a Worker script | ||
using a ScheduledEvent listener that enables Workers to be executed on a | ||
schedule. Worker Cron Triggers are ideal for running periodic jobs for | ||
maintenance or calling third-party APIs to collect up-to-date data. | ||
--- | ||
|
||
# cloudflare_workers_cron_trigger (Resource) | ||
|
||
Worker Cron Triggers allow users to map a cron expression to a Worker script | ||
using a `ScheduledEvent` listener that enables Workers to be executed on a | ||
schedule. Worker Cron Triggers are ideal for running periodic jobs for | ||
maintenance or calling third-party APIs to collect up-to-date data. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
resource "cloudflare_workers_script" "example_script" { | ||
account_id = "f037e56e89293a057740de681ac9abbe" | ||
name = "example-script" | ||
content = file("path/to/my.js") | ||
} | ||
resource "cloudflare_workers_cron_trigger" "example_trigger" { | ||
account_id = "f037e56e89293a057740de681ac9abbe" | ||
script_name = cloudflare_worker_script.example_script.name | ||
schedules = [ | ||
"*/5 * * * *", # every 5 minutes | ||
"10 7 * * mon-fri", # 7:10am every weekday | ||
] | ||
} | ||
``` | ||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `account_id` (String) The account identifier to target for the resource. | ||
- `schedules` (Set of String) Cron expressions to execute the Worker script. | ||
- `script_name` (String) Worker script to target for the schedules. | ||
|
||
### Read-Only | ||
|
||
- `id` (String) The ID of this resource. | ||
|
||
## Import | ||
|
||
Import is supported using the following syntax: | ||
|
||
```shell | ||
$ terraform import cloudflare_workers_cron_trigger.example <account_id>/<script_name> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
--- | ||
page_title: "cloudflare_workers_domain Resource - Cloudflare" | ||
subcategory: "" | ||
description: |- | ||
Creates a Worker Custom Domain. | ||
--- | ||
|
||
# cloudflare_workers_domain (Resource) | ||
|
||
Creates a Worker Custom Domain. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
resource "cloudflare_workers_domain" "example" { | ||
account_id = "f037e56e89293a057740de681ac9abbe" | ||
hostname = "subdomain.example.com" | ||
service = "my-service" | ||
zone_id = "0da42c8d2132a9ddaf714f9e7c920711" | ||
} | ||
``` | ||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `account_id` (String) The account identifier to target for the resource. **Modifying this attribute will force creation of a new resource.** | ||
- `hostname` (String) Hostname of the Worker Domain. | ||
- `service` (String) Name of worker script to attach the domain to. | ||
- `zone_id` (String) The zone identifier to target for the resource. **Modifying this attribute will force creation of a new resource.** | ||
|
||
### Optional | ||
|
||
- `environment` (String) The name of the Worker environment. Defaults to `production`. | ||
|
||
### Read-Only | ||
|
||
- `id` (String) The ID of this resource. | ||
|
||
## Import | ||
|
||
Import is supported using the following syntax: | ||
|
||
```shell | ||
$ terraform import cloudflare_workers_domain.example <account_id>/<worker_domain_id> | ||
``` |
48 changes: 48 additions & 0 deletions
48
docs/resources/workers_for_platforms_dispatch_namespace.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
--- | ||
page_title: "cloudflare_workers_for_platforms_dispatch_namespace Resource - Cloudflare" | ||
subcategory: "" | ||
description: |- | ||
The Workers for Platforms https://developers.cloudflare.com/cloudflare-for-platforms/workers-for-platforms/ resource allows you | ||
to manage Cloudflare Workers for Platforms dispatch namespaces. | ||
--- | ||
|
||
# cloudflare_workers_for_platforms_dispatch_namespace (Resource) | ||
|
||
The [Workers for Platforms](https://developers.cloudflare.com/cloudflare-for-platforms/workers-for-platforms/) resource allows you | ||
to manage Cloudflare Workers for Platforms dispatch namespaces. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
resource "cloudflare_workers_for_platforms_dispatch_namespace" "example" { | ||
account_id = "f037e56e89293a057740de681ac9abbe" | ||
name = "example-namespace" | ||
} | ||
resource "cloudflare_workers_script" "customer_worker_1" { | ||
account_id = "f037e56e89293a057740de681ac9abbe" | ||
name = "customer-worker-1" | ||
content = file("script.js") | ||
dispatch_namespace = cloudflare_workers_for_platforms_namespace.example.name | ||
tags = ["free"] | ||
} | ||
``` | ||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `account_id` (String) The account identifier to target for the resource. | ||
- `name` (String) The name of the Workers for Platforms namespace. | ||
|
||
### Read-Only | ||
|
||
- `id` (String) The identifier of this resource. | ||
|
||
## Import | ||
|
||
Import is supported using the following syntax: | ||
|
||
```shell | ||
$ terraform import cloudflare_workers_for_platforms_dispatch_namespace.example <account_id>/<namespace_name> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.