Skip to content

Commit a2e195b

Browse files
committed
Update S3 backend documentation for Terraform
1 parent c6f3b8d commit a2e195b

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

website/docs/guides/object_store_backend.html.markdown

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,11 @@ After completing these steps, you are able to use Oracle Cloud Infrastructure as
8383

8484
Configuring the S3-compatible backend requires that the account be enabled with S3 authentication keys, which are set on a per-user basis.
8585

86-
1. In the Console, open the navigation menu, then, under Governance and Administration, navigate to Identity, then Users.
87-
Under User Details, click Amazon S3 Compatibility API Keys. For more guidance,
86+
1. In the Console, go to your user account and create a customer secret key. For more guidance on creating customer secret keys,
8887
see [Working with Amazon S3 Compatibility API Keys](https://docs.cloud.oracle.com/Content/Identity/Tasks/managingcredentials.htm#s3).
8988

89+
After generating the customer secret key, take note of the access key and secret key values displayed the Console.
90+
9091
2. Set the location for the credentials file. The default location is `~/.aws/credentials`. You can set an alternate location by using the S3 backend `shared_credentials_file` option.
9192

9293
> **Warning**
@@ -100,15 +101,17 @@ update the backend `profile` option in your Terraform configuration file.
100101

101102
```
102103
[default]
103-
aws_access_key_id=ocid1.credential.oc1..aaaaaaaasbmhehdmefolvqwtbdjgwfsxjsgxgipdbph7odn2brgurgsyztca
104+
aws_access_key_id=81bc020dd274d7386a58852fc5081c231874a137
104105
aws_secret_access_key=mSTdaWhlbWj3ty4JZXlm0NUZV52xlImWjayJLJ6OH9A=
105106
```
106107

107-
Where `aws_access_key_id and aws_secret_access_key` are user-specific values provided from the Console.
108+
Where `aws_access_key_id` and `aws_secret_access_key` are user-specific values given by the Console in step 1.
108109
The key values provided in the example are not valid and provided as examples only.
109110

110111
4. Set the object storage endpoint value in the following format: `https://{namespace}.compat.objectstorage.{region}.oraclecloud.com`
111112

113+
Where `{namespace}` is the namespace of your object storage bucket and `{region}` is the region where your object storage bucket is located.
114+
112115
Following is a full example of an Object Storage backend configuration:
113116

114117
```hcl-terraform
@@ -117,7 +120,7 @@ terraform {
117120
bucket = "terraform-state"
118121
key = "terraform.tfstate"
119122
region = "us-phoenix-1"
120-
endpoint = "https://acme.compat.objectstorage.us-phoenix-1.oraclecloud.com"
123+
endpoint = "https://mybucketnamespace.compat.objectstorage.us-phoenix-1.oraclecloud.com"
121124
122125
skip_region_validation = true
123126
skip_credentials_validation = true

0 commit comments

Comments
 (0)