You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**If you do not have your AWS CLI** configured, you should set dummy values with the following. This is due to a limitation in Terraform dependency graph for providers initialization (see this long lasting terraform [issue)](https://github.com/hashicorp/terraform/issues/2430)):
34
+
**If you do not have your AWS CLI** configured, you should set dummy values with the following. This is due to a limitation in Terraform dependency graph for providers initialization (see this long lasting terraform [issue)](https://github.com/hashicorp/terraform/issues/2430):
Now let's have a look at the content of the `main.tf` file:
68
68
69
69
- The *variable* block defines the region and s3 endpoint that are used to create the bucket. You can update it according to your needs : check this [page](/pages/storage_and_backup/object_storage/s3_location) to know what region / endpoints are available.
70
-
- The *Providers* block defines 2 providers: ovh and Hashicorp AWS one. The first one is necessary to create the user whose identity / credentials will be used for the latest.
70
+
- The *Providers* block defines 2 providers: ovh and Hashicorp AWS one. The first one is necessary to create the user whose identity / credentials will be used for the latest.
71
71
- The *User / Credential* block defines the user & credential that are visible in the Settings > Users & Roles tab. They are needed to configure the Hashicorp AWS provider.
72
72
- The Bucket block defines the bucket itself.
73
73
- The Output defines the access & secret key that may be useful for CLI usage.
@@ -90,7 +90,7 @@ $ terraform destroy
90
90
91
91
> [!primary]
92
92
>
93
-
> - This script does not follow Terraform best practices to split the project in multiple files e.g. **`provider.tf`, `main.tf`, `variables.tf`, `outputs.tf`**, ... This has been done intentionnaly to avoid switching into multiples files for what is a really simple example.
93
+
> - This script does not follow Terraform best practices to split the project in multiple files e.g. **`provider.tf`, `main.tf`, `variables.tf`, `outputs.tf`**, ... This has been done intentionally to avoid switching into multiple files for what is a really simple example.
94
94
> - The secret that is created by this script is stored in the [local](https://developer.hashicorp.com/terraform/language/settings/backends/local) state back-end. If you use this back-end in production, make sure to consider the state file as a secret.
95
95
96
96
### Automating Object Storage policies with Terraform
@@ -131,7 +131,7 @@ $ terraform apply
131
131
132
132
Now you can go in the Console and check the "Object Storage" tab. You will see the bucket and the file.
133
133
134
-
You can also check the access right by using the AWS CLI with the 2 users that have the read / write & read-only access
134
+
You can also check the access right by using the AWS CLI with the 2 users that have the read / write & read-only access.
0 commit comments