@@ -35,7 +35,7 @@ module "fos" {
35
35
}
36
36
```
37
37
38
- The second will need to be placed in a directory named ` fos ` , and
38
+ The second will need to be placed in a directory named ` fos ` and
39
39
named ` fos/main.tf ` :
40
40
41
41
``` terraform
@@ -75,14 +75,15 @@ resource "aws_s3_bucket" "main" {
75
75
76
76
```
77
77
78
- Note: This example uses the ` us-east ` region of Fastly Object Storage;
79
- if you wish to use a different region, ensure that the proper region
78
+ Note: This example uses the ` us-east ` region of Fastly Object Storage.
79
+ To use a different region, ensure that the proper region
80
80
code is included in the ` endpoints ` block above.
81
81
82
82
## Getting Started
83
83
84
84
With the example files in place, you'll need to initialize Terraform
85
- and obtain Fastly Object Storage credentials.
85
+ and obtain Fastly Object Storage credentials. To do this, run the following
86
+ commands:
86
87
87
88
``` bash
88
89
export FASTLY_API_KEY=< your Fastly API key here>
@@ -91,22 +92,22 @@ terraform apply -target=fastly_object_storage_access_keys.main
91
92
```
92
93
93
94
Note: Terraform will issue a warning because the ` -target ` option is
94
- used. This usage of that option is safe.
95
+ used. This use of that option is safe.
95
96
96
97
This step will connect to the Fastly API using the Fastly Terraform
97
98
provider and obtain a set of Fastly Object Storage credentials. Those
98
99
credentials will be stored in the Terraform state files (or other
99
- state storage), they will not be displayed.
100
+ state storage) and will not be displayed.
100
101
101
102
This initial step is necessary because the credentials are required by
102
- the AWS Terraform provider, and if Terraform attempts to apply the
103
- entire configuration the AWS provider will report an error because the
103
+ the AWS Terraform provider. If Terraform attempts to apply the
104
+ entire configuration without them, the AWS provider will report an error because the
104
105
credentials are missing.
105
106
106
107
## Completing the Process
107
108
108
- With the credentials obtained, a normal Terraform ` apply ` step can be
109
- used to create the remaining infrastructure; in this case a bucket in
109
+ With the credentials obtained, a standard Terraform ` apply ` step can be
110
+ used to create the remaining infrastructure; in this case, a bucket in
110
111
Fastly Object Storage named ` my-test-bucket-123 ` . Terraform will pass
111
112
the Fastly Object Storage credentials to the AWS Terraform provider so
112
113
that it can use them to authenticate its API interactions with the
0 commit comments