{"id":18302331,"url":"https://github.com/outscale/terraform-oos-examples","last_synced_at":"2025-04-09T10:10:51.438Z","repository":{"id":43292459,"uuid":"353669939","full_name":"outscale/terraform-oos-examples","owner":"outscale","description":null,"archived":false,"fork":false,"pushed_at":"2023-06-11T22:39:19.000Z","size":14,"stargazers_count":1,"open_issues_count":0,"forks_count":5,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-02-15T04:24:12.571Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Makefile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/outscale.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSES/BSD-3-Clause.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-04-01T11:01:07.000Z","updated_at":"2023-02-20T13:48:56.000Z","dependencies_parsed_at":"2024-12-23T02:41:03.277Z","dependency_job_id":null,"html_url":"https://github.com/outscale/terraform-oos-examples","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/outscale%2Fterraform-oos-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/outscale%2Fterraform-oos-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/outscale%2Fterraform-oos-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/outscale%2Fterraform-oos-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/outscale","download_url":"https://codeload.github.com/outscale/terraform-oos-examples/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248018061,"owners_count":21034048,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-05T15:19:25.457Z","updated_at":"2025-04-09T10:10:51.397Z","avatar_url":"https://github.com/outscale.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OOS example using terraform\n[![Project Sandbox](https://docs.outscale.com/fr/userguide/_images/Project-Sandbox-yellow.svg)](https://docs.outscale.com/en/userguide/Open-Source-Projects.html)\n\nThis repository shows how to use [terraform](https://www.terraform.io/) AWS's S3 provider with Outscale Object Storage (OOS).\n\nBeeing able to use a non-AWS S3 service with official AWS S3 provider is still [work in progress](https://github.com/hashicorp/terraform-provider-aws/issues/13726) so we will need to use a patched version of official AWS provider.\n\n# Get patched terraform-provider-aws\n\nBecause some features are not supported by OOS or are very specific to AWS services, [official terraform-provider-aws](https://github.com/hashicorp/terraform-provider-aws) has been adapted by Outscale and other [contributors](https://github.com/hashicorp/terraform-provider-aws/pull/17564).\n\nThis allow us to disable non-supported features (mostly in  `provider` and `bucket` blocks) while keeping the module AWS-compatible. You can get this patched terraform-provider-aws version by either building it locally or getting a pre-built module.\n\n## Build locally\n\nTo ease the process, you can automatically fetch, build and install [patched terraform-provider-aws module](https://github.com/outscale-dev/terraform-provider-aws/tree/oos):\n1. You will need [git](https://git-scm.com/), [golang](https://golang.org/) and [make](https://www.gnu.org/software/make/) installed.\n2. Run `PLATFORM=linux_amd64 make install` (set `darwin_amd64` for OSX users).\n\n## Get pre-built module\n\nAlternatively, you can get a pre-compiled module for your platform.\nOnly `linux_amd64`and `darwin_amd64` platforms are available for now.\n\n1. You will need [make](https://www.gnu.org/software/make/) installed.\n2. Run `PLATFORM=linux_amd64 make install-prebuilt`\n\n## Verify you installation\n\nOnce installed, you should see a similar file structure in your home directory:\n```bash\ncd ~\ntree .terraform.d/\n.terraform.d/\n└── plugins\n    └── registry.terraform.io\n        └── hashicorp\n            └── aws\n                └── 3.34.99\n                    └── linux_amd64\n                        └── terraform-provider-aws_v3.34.99\n```\n\n# Setup your credentials\n\nYou will need to setup your credentials and region details through environement variables:\n```bash\nexport TF_VAR_access_key=\"myAccessKey\"\nexport TF_VAR_secret_key=\"mySecretKey\"\nexport TF_VAR_region=\"eu-west-2\"\nexport TF_VAR_endpoint=\"https://oos.eu-west-2.outscale.com\"\n```\n\nAlternatively, you can write those details in `examples/terraform.tfvars` (don't forget to uncomment).\n\n# Run examples\n\nOnce the provider built and your credentials filled, you should be able to run examples.\nMake sur you have at least terraform \u003e= 0.13.\n\n```bash\ncd examples\nterraform init\nterraform plan\nterraform apply\nterraform destroy\n```\n\n# Contributing\n\nWant to add more examples? Have a question? Feel free to open an issue.\n\n# License\n\n\u003e Copyright Outscale SAS\n\u003e\n\u003e BSD-3-Clause\n\nThis project is compliant with [REUSE](https://reuse.software/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foutscale%2Fterraform-oos-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foutscale%2Fterraform-oos-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foutscale%2Fterraform-oos-examples/lists"}