https://github.com/mastodon/terraform-ovh-s3
Module for creating S3-compatible object storage in OVH
https://github.com/mastodon/terraform-ovh-s3
Last synced: 6 months ago
JSON representation
Module for creating S3-compatible object storage in OVH
- Host: GitHub
- URL: https://github.com/mastodon/terraform-ovh-s3
- Owner: mastodon
- Created: 2024-05-10T13:36:48.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-10T15:23:49.000Z (over 1 year ago)
- Last Synced: 2025-03-28T19:38:38.022Z (6 months ago)
- Language: HCL
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# terraform-ovh-s3
Module for creating S3-compatible object storage in OVH.
Note: This module makes use of the AWS terraform provider, but there is a known bug with the authentication dependency chain. You need to make sure that `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY` are both defined, even if they are just dummy values.
## Requirements
| Name | Version |
|------|---------|
| [aws](#requirement\_aws) | ~> 5.49 |
| [ovh](#requirement\_ovh) | ~> 0.44 |## Providers
| Name | Version |
|------|---------|
| [aws](#provider\_aws) | 5.49.0 |
| [ovh](#provider\_ovh) | 0.44.0 |## Modules
No modules.
## Resources
| Name | Type |
|------|------|
| [aws_s3_bucket.bucket](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket) | resource |
| [ovh_cloud_project_user.admin_user](https://registry.terraform.io/providers/ovh/ovh/latest/docs/resources/cloud_project_user) | resource |
| [ovh_cloud_project_user.read_user](https://registry.terraform.io/providers/ovh/ovh/latest/docs/resources/cloud_project_user) | resource |
| [ovh_cloud_project_user.write_user](https://registry.terraform.io/providers/ovh/ovh/latest/docs/resources/cloud_project_user) | resource |
| [ovh_cloud_project_user_s3_credential.admin_cred](https://registry.terraform.io/providers/ovh/ovh/latest/docs/resources/cloud_project_user_s3_credential) | resource |
| [ovh_cloud_project_user_s3_credential.read_cred](https://registry.terraform.io/providers/ovh/ovh/latest/docs/resources/cloud_project_user_s3_credential) | resource |
| [ovh_cloud_project_user_s3_credential.write_cred](https://registry.terraform.io/providers/ovh/ovh/latest/docs/resources/cloud_project_user_s3_credential) | resource |
| [ovh_cloud_project_user_s3_policy.read_policy](https://registry.terraform.io/providers/ovh/ovh/latest/docs/resources/cloud_project_user_s3_policy) | resource |
| [ovh_cloud_project_user_s3_policy.write_policy](https://registry.terraform.io/providers/ovh/ovh/latest/docs/resources/cloud_project_user_s3_policy) | resource |## Inputs
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| [bucket\_name](#input\_bucket\_name) | Name of the bucket. | `string` | `"tf-s3-bucket-only"` | no |
| [bucket\_prefix](#input\_bucket\_prefix) | Prefix to append to tbe bucket name (inserted as {prefix}-{name}). | `string` | `""` | no |
| [project\_id](#input\_project\_id) | The ID of the Public Cloud project the resources will be created in. | `string` | n/a | yes |
| [region](#input\_region) | Region in which to create the various resources. | `string` | `"de"` | no |
| [tags](#input\_tags) | Key/value pairs to add to the bucket. | `map(string)` | `{}` | no |
| [type](#input\_type) | Type of S3 bucket to create (standard, high\_performance, swift). | `string` | `"standard"` | no |## Outputs
| Name | Description |
|------|-------------|
| [admin\_access\_key](#output\_admin\_access\_key) | Access key for the S3 admin user. |
| [admin\_secret\_key](#output\_admin\_secret\_key) | Secret key for the S3 admin user. |
| [read\_access\_key](#output\_read\_access\_key) | Access key for the S3 read-only user. |
| [read\_secret\_key](#output\_read\_secret\_key) | Secret key for the S3 read-only user. |
| [write\_access\_key](#output\_write\_access\_key) | Access key for the S3 read/write user. |
| [write\_secret\_key](#output\_write\_secret\_key) | Secret key for the S3 read/write user. |