Skip to content

Commit ccdcfe7

Browse files
elithrardeadlypants1973
authored andcommitted
r2: terraform - make the required options even clearer (#19389)
Makes the `skip_region_validation = true` and related options clearer.
1 parent 877bc1a commit ccdcfe7

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/content/docs/r2/examples/terraform-aws.mdx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,12 @@ For using only the Cloudflare provider, see [Terraform](/r2/examples/terraform/)
1818

1919
:::
2020

21-
With [`terraform`](https://developer.hashicorp.com/terraform/downloads) installed, create `main.tf` and copy the content below replacing with your Account ID and R2 credentials.
21+
With [`terraform`](https://developer.hashicorp.com/terraform/downloads) installed:
22+
23+
1. Create `main.tf` file, or edit your existing Terraform configuration
24+
2. Populate the endpoint URL at `endpoints.s3` with your [Cloudflare account ID](/fundamentals/setup/find-account-and-zone-ids/)
25+
3. Populate `access_key` and `secret_key` with the corresponding [R2 API credentials](/r2/api/s3/tokens/).
26+
4. Ensure that `skip_region_validation = true`, `skip_requesting_account_id = true`, and `skip_credentials_validation = true` are set in the provider configuration.
2227

2328
```hcl
2429
terraform {
@@ -36,6 +41,8 @@ provider "aws" {
3641
access_key = <R2 Access Key>
3742
secret_key = <R2 Secret Key>
3843
44+
# Required for R2.
45+
# These options disable S3-specific validation on the client (Terraform) side.
3946
skip_credentials_validation = true
4047
skip_region_validation = true
4148
skip_requesting_account_id = true

0 commit comments

Comments
 (0)