From ff2cb17e92973e473b95a4961d851e70c552b3de Mon Sep 17 00:00:00 2001 From: Thiery Ouattara Date: Fri, 22 Mar 2024 13:43:05 +0000 Subject: [PATCH] Update CHANGLOG and README --- CHANGELOG.md | 22 +++++++++++++ README.md | 91 +++++++++++++++++++++++++++++++++++++++++----------- 2 files changed, 94 insertions(+), 19 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5668347fa..b9fc6002e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,25 @@ +0.12.0 (April 13, 2024) +======================== +BUG FIXES: +---------- + +* Update documentation about creating two NICs on a single VM ([GH-424](https://github.com/outscale/terraform-provider-outscale/issues/424)) + +FEATURES: +--------- + +* Update subregion data_source(s) ([filters](https://docs.outscale.com/en/userguide/Home.html#_january_2024)) ([GH-434](https://github.com/outscale/terraform-provider-outscale/issues/434)) +* Update net_peerings data_source(s) ([filters](https://docs.outscale.com/en/userguide/Home.html#_january_2024)) ([GH-433](https://github.com/outscale/terraform-provider-outscale/issues/433)) +* Update vm_types data_source(s) ([filters](https://docs.outscale.com/en/userguide/Home.html#_january_2024)) ([GH-432](https://github.com/outscale/terraform-provider-outscale/issues/432)) +* Update vm data_source(s) ([filters](https://docs.outscale.com/en/userguide/Home.html#_january_2024)) ([GH-431](https://github.com/outscale/terraform-provider-outscale/issues/431)) +* Enable to set a route table as Main ([GH-362](https://github.com/outscale/terraform-provider-outscale/issues/362)) + +IMPROVEMENT: +----------- + +* Update tests and osc-sdk-go +* Somes refactoring + 0.11.0 (February 13, 2024) ======================== diff --git a/README.md b/README.md index f1a5db73d..347cfc853 100644 --- a/README.md +++ b/README.md @@ -8,9 +8,9 @@ ## Requirements -- [Terraform](https://www.terraform.io/downloads.html) 1.0.x +- [Terraform](https://www.terraform.io/downloads.html) 1.x.x -- [Go](https://golang.org/doc/install) 1.13 (to build the provider plugin) +- [Go](https://golang.org/doc/install) 1.22.0 (to build the provider plugin) ## Breaking change @@ -19,9 +19,9 @@ > > We have a broken change on our api when creating access_key without expiration date for all version less then v0.9.0. ([GH-issues](https://github.com/outscale/terraform-provider-outscale/issues/342)) > -> We recommende to upgrade on the latest ([v0.11.0](https://registry.terraform.io/providers/outscale/outscale/latest)) +> We recommende to upgrade on the latest ([v0.12.0](https://registry.terraform.io/providers/outscale/outscale/latest)) -## Using the Provider +## Using the Provider with Terraform > **Warning** > @@ -36,7 +36,7 @@ terraform { required_providers { outscale = { source = "outscale/outscale" - version = "0.11.0" + version = "0.12.0" } } } @@ -45,6 +45,32 @@ provider "outscale" { # Configuration options } ``` +1. Execute `terraform init` + +2. Execute `terraform plan` + +## Using the Provider with OpenTofu + +```sh +terraform { + required_providers { + outscale = { + source = "outscale/outscale" + version = "0.12.0" + } + } +} + +provider "outscale" { + # Configuration options +} +``` +1. Execute `tofu init` + +2. Execute `tofu plan` + +## Migrating to OpenTofu from Terraform +Follow [migration link](https://opentofu.org/docs/intro/migration/) ## Configuring the proxy, if any ### on Linux/macOS @@ -60,11 +86,10 @@ set HTTPS_PROXY=http://192.168.1.24:3128 Add the following lines in the Terraform configuration to define certificate location: ```sh terraform { - required_version = ">= 0.13" required_providers { outscale = { source = "outscale/outscale" - version = "0.11.0" + version = "0.12.0" } } } @@ -88,40 +113,68 @@ Clone repository to: `$GOPATH/src/github.com/terraform-providers/terraform-provi ```sh mkdir -p $GOPATH/src/github.com/terraform-providers cd $GOPATH/src/github.com/terraform-providers -git clone --branch v0.11.0 https://github.com/outscale/terraform-provider-outscale +git clone --branch v0.12.0 https://github.com/outscale/terraform-provider-outscale ``` Enter the provider directory and build the provider ```sh cd $GOPATH/src/github.com/terraform-providers/terraform-provider-outscale -go build -o terraform-provider-outscale_v0.11.0 +go build -o terraform-provider-outscale_v0.12.0 ``` -## Using the provider -### On Linux +## Using the provider built +### For Terraform +#### On Linux 1. Download and install [Terraform](https://www.terraform.io/downloads.html) -2. Move the plugin to the repository ~/.terraform.d/plugins/registry.terraform.io/outscale/outscale/0.11.0/linux_amd64/. +2. Move the plugin to the repository ~/.terraform.d/plugins/registry.terraform.io/outscale/outscale/0.12.0/linux_amd64/. ```shell -mkdir -p ~/.terraform.d/plugins/registry.terraform.io/outscale/outscale/0.11.0/linux_amd64 -mv terraform-provider-outscale_v0.11.0 ~/.terraform.d/plugins/registry.terraform.io/outscale/outscale/0.11.0/linux_amd64 +mkdir -p ~/.terraform.d/plugins/registry.terraform.io/outscale/outscale/0.12.0/linux_amd64 +mv terraform-provider-outscale_v0.12.0 ~/.terraform.d/plugins/registry.terraform.io/outscale/outscale/0.12.0/linux_amd64 ``` -3. Execute `terraform init +3. Execute `terraform init` 4. Execute `terraform plan` -### On macOS +#### On macOS 1. Download and install [Terraform](https://www.terraform.io/downloads.html) -2. Move the plugin to the repository ~/.terraform.d/plugins/registry.terraform.io/outscale/outscale/0.11.0/darwin_arm64 +2. Move the plugin to the repository ~/.terraform.d/plugins/registry.terraform.io/outscale/outscale/0.12.0/darwin_arm64 ```shell -mkdir -p ~/.terraform.d/plugins/registry.terraform.io/outscale/outscale/0.11.0/darwin_arm64 -mv terraform-provider-outscale_v0.11.0 ~/.terraform.d/plugins/registry.terraform.io/outscale/outscale/0.11.0/darwin_arm64 +mkdir -p ~/.terraform.d/plugins/registry.terraform.io/outscale/outscale/0.12.0/darwin_arm64 +mv terraform-provider-outscale_v0.12.0 ~/.terraform.d/plugins/registry.terraform.io/outscale/outscale/0.12.0/darwin_arm64 ``` 3. Execute `terraform init` 4. Execute `terraform plan` +### For OpenTofu +#### On Linux + +1. Download and install [OpenTofu](https://opentofu.org/docs/intro/install/deb/) + +2. Move the plugin to the repository ~/.terraform.d/plugins/registry.opentofu.org/outscale/outscale/0.12.0/linux_amd64/. +```shell +mkdir -p ~/.terraform.d/plugins/registry.opentofu.org/outscale/outscale/0.12.0/linux_amd64 +mv terraform-provider-outscale_v0.12.0 ~/.terraform.d/plugins/registry.opentofu.org/outscale/outscale/0.12.0/linux_amd64 +``` +3. Execute `tofu init` + +4. Execute `tofu plan` + +#### On macOS +1. Download and install [OpenTofu](https://opentofu.org/docs/intro/install/homebrew/) + +2. Move the plugin to the repository ~/.terraform.d/plugins/registry.opentofu.org/outscale/outscale/0.12.0/darwin_arm64 +```shell +mkdir -p ~/.terraform.d/plugins/registry.opentofu.org/outscale/outscale/0.12.0/darwin_arm64 +mv terraform-provider-outscale_v0.12.0 ~/.terraform.d/plugins/registry.opentofu.org/outscale/outscale/0.12.0/darwin_arm64 +``` + +3. Execute `tofu init` + +4. Execute `tofu plan` + ## Issues and contributions Check [CONTRIBUTING.md](./CONTRIBUTING.md) for more details.