Skip to content

Commit 16908a5

Browse files
authored
chore(docs): Add a note about region to S3 guide (#1509)
1 parent 21cbd06 commit 16908a5

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

docs/guides/aws_provider_s3_stackit.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ page_title: "Using AWS Provider for STACKIT Object Storage (S3 compatible)"
77

88
This guide outlines the process of utilizing the [AWS Terraform Provider](https://registry.terraform.io/providers/hashicorp/aws/latest/docs) alongside the STACKIT provider to create and manage STACKIT Object Storage (S3 compatible) resources.
99

10+
>Note: AWS Provider uses the `region` as cache key to manage the connection efficiently. Therefore, the `region` must be set to the desired one in all the resources explicitly to ensure proper functionality when multiple regions are used.
11+
12+
1013
## Steps
1114

1215
1. **Configure STACKIT Provider**
@@ -65,6 +68,7 @@ This guide outlines the process of utilizing the [AWS Terraform Provider](https:
6568

6669
```hcl
6770
resource "aws_s3_object" "test_file" {
71+
region = "eu01"
6872
bucket = stackit_objectstorage_bucket.example.name
6973
key = "hello_world.txt"
7074
source = "files/hello_world.txt"
@@ -73,6 +77,7 @@ This guide outlines the process of utilizing the [AWS Terraform Provider](https:
7377
}
7478
7579
resource "aws_s3_bucket_policy" "allow_public_read_access" {
80+
region = "eu01"
7681
bucket = stackit_objectstorage_bucket.example.name
7782
policy = <<EOF
7883
{

templates/guides/aws_provider_s3_stackit.md.tmpl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ page_title: "Using AWS Provider for STACKIT Object Storage (S3 compatible)"
77

88
This guide outlines the process of utilizing the [AWS Terraform Provider](https://registry.terraform.io/providers/hashicorp/aws/latest/docs) alongside the STACKIT provider to create and manage STACKIT Object Storage (S3 compatible) resources.
99

10+
>Note: AWS Provider uses the `region` as cache key to manage the connection efficiently. Therefore, the `region` must be set to the desired one in all the resources explicitly to ensure proper functionality when multiple regions are used.
11+
12+
1013
## Steps
1114

1215
1. **Configure STACKIT Provider**
@@ -65,6 +68,7 @@ This guide outlines the process of utilizing the [AWS Terraform Provider](https:
6568

6669
```hcl
6770
resource "aws_s3_object" "test_file" {
71+
region = "eu01"
6872
bucket = stackit_objectstorage_bucket.example.name
6973
key = "hello_world.txt"
7074
source = "files/hello_world.txt"
@@ -73,6 +77,7 @@ This guide outlines the process of utilizing the [AWS Terraform Provider](https:
7377
}
7478
7579
resource "aws_s3_bucket_policy" "allow_public_read_access" {
80+
region = "eu01"
7681
bucket = stackit_objectstorage_bucket.example.name
7782
policy = <<EOF
7883
{

0 commit comments

Comments
 (0)