Skip to content

Commit

Permalink
Merge branch 'develop-oapi' into 'master'
Browse files Browse the repository at this point in the history
Merge request 0.2.0

Closes TPD-1939 and TPD-1919

See merge request customer-tooling/terraform-provider-outscale!453
  • Loading branch information
outscale-jlr committed Dec 1, 2020
2 parents 093214f + 564178f commit 564eaff
Show file tree
Hide file tree
Showing 1,254 changed files with 122,569 additions and 104,757 deletions.
107 changes: 107 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,110 @@
0.2.0 (November 30, 2020)
========================

FEATURES:
---------

* New Data Source: outscale_load_balancer
* New Data Source: outscale_load_balancer_listener_rule
* New Data Source: outscale_load_balancer_listener_rules
* New Data Source: outscale_load_balancer_tags
* New Data Source: outscale_load_balancer_vm_health
* New Data Source: outscale_load_balancers

* Changed Data Source: outscale_vms_states is replaced by outscale_vm_state

* New Resource: outscale_load_balancer
* New Resource: outscale_load_balancer_attributes
* New Resource: outscale_load_balancer_listener_rule
* New Resource: outscale_load_balancer_policy
* New Resource: outscale_load_balancer_vms


BUG FIXES:
----------

* oAPI outscale_load_balancer resource is using fcu type call (TPD-1739)
* Add "outscale_load_balancer" datasource and datasources (TPD-1906)
* Wrong attributes for "outscale_load_balancer_vms" resource (TPD-1907)
* "image_id" should be mandatory in "outscale_vm" resource (TPD-1911)
* terraform crash when client gateway and vpn resources cannot be found (TPD-1914)
* Change "outscale_vms_state" datasource name to "outscale_vm_states" (TPD-1915)
* Issue with listeners on "outscale_load_balancer" (TPD-1916)
* Wrong attributes for "outscale_load_balancer" resource (TPD-1917)
* "outscale_load_balancer" resource: terraform destroy fails for private LBU (TPD-1918)
* "outscale_load_balancer" resource: issue when creating a load balancer with multiple securtiy groups (TPD-1919)
* "outscale_load_balancer_listeners" resource: "server_certificate_id" is not sent in the request (TPD-1920)
* "outscale_load_balancer_listeners" resource: missing attributes in the state (TPD-1921)
* Issue when creating a load balancer policy (TPD-1922)
* Add "outscale_load_balancer_listener_rule" resource and datasource(s) (TPD-1925)
* "outscale_load_balancer_vm_health" datasource(s) (TPD-1926)
* Regressions on "refactor-osc-client" branch (TPD-1927)
* Missing Health check attributes in "outscale_load_balancer" resource (TPD-1928)
* Terraform crashes when creating "outscale_load_balancer_ssl_certificate" resource (TPD-1930)
* "outscale_load_balancer_tags" datasources are not supported (TPD-1931)
* Migrate all LBU attributes modifications to "outscale_load_balancer_attributes" (TPD-1932)
* Issue on terraform refresh/destroy when using "outscale_nic" and "outscale_nic_private_ip" (TPD-1933)
* Regression on ""outscale_vpn_connection"" on "refactor-osc-client" branch (TPD-1934)
* x509 client certificate authentication (TPD-1936)
* Issue with custom endpoints (TPD-1938)
* Regression on "outscale_access_keys" datasource on develop-oapi (TPD-1939)
* Issue when deactivating LBU access logs (TPD-1940)


KNOWN INCOMPATIBILITIES:
------------------------

* outscale_load_balancer datasource: When applying the same configuration file twice in a row (with non change), terraform asks fo the user confirmation to read the datasource again (TPD-1942).
* outscale_load_balancer_listener_rule: The resource cannot be imported correctly because of listener block (TPD-1941).


NOTES:
------

**WARNING:** When creating access keys, the secret key is stored in the Terraform state. For security reasons, it is strongly recommended to create access keys using the API instead of the Terraform resource. For more information on how to create access keys using the API, see our [official API documentation](https://docs.outscale.com/api#3ds-outscale-api-accesskey).

It is recommended to set tags inside the resources rather than using outscale_tag.


0.1.2-beta (unpublished)
========================

BUG FIXES:
----------

* x509 client authentication support (TPD-1936)


0.1.1 (October 02, 2020)
========================

BUG FIXES:
----------

* Support proxy for Outscale Terraform provider (TPD-1924)


0.1.0 (August 07, 2020)
========================

NOTES: Rename of the previous release

0.1.1 (October 02, 2020)
========================

BUG FIXES:
----------

* Support proxy for Outscale Terraform provider (TPD-1924)


0.1.0 (August 07, 2020)
========================

NOTES:
Rename of the previous release


0.1.0RC9 (June 22, 2020)
========================

Expand Down
82 changes: 58 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,43 +10,75 @@
Requirements
------------

- [Terraform](https://www.terraform.io/downloads.html) 0.12.x
- [Terraform](https://www.terraform.io/downloads.html) 0.13.x
- [Go](https://golang.org/doc/install) 1.13 (to build the provider plugin)


Installing The Provider on Linux
--------------------------------
Using the Provider
------------------

Download the binary and install it in ~/.terraform.d/plugins/linux_amd64/.
Add the following lines in the Terraform configuration to permit to get the provider from the Terrafom registry:

```sh
$ wget https://github.com/outscale-dev/terraform-provider-outscale/releases/download/release-0.1.0RC9/terraform-provider-outscale_linux_amd64_v0.1.0-rc9.zip
$ unzip terraform-provider-outscale_linux_amd64_v0.1.0-rc9.zip
$ mv terraform-provider-outscale_v0.1.0-rc9 ~/.terraform.d/plugins/linux_amd64/.
terraform {
required_providers {
outscale = {
source = "outscale-dev/outscale"
version = "0.2.0"
}
}
}

provider "outscale" {
# Configuration options
}
```

Installing The Provider on MacOs
--------------------------------
Configuring the proxy on Linux/MAC OS, if any
---------------------------------------------

Download the binary and install it in ~/.terraform/plugins/darwin_amd64/.
```sh
$ export HTTPS_PROXY=http://192.168.1.24:3128
```

Configuring the proxy on Windows, if any
----------------------------------------

```sh
$ wget https://github.com/outscale-dev/terraform-provider-outscale/releases/download/release-0.1.0RC9/terraform-provider-outscale_darwin_amd64_v0.1.0-rc9.zip
$ unzip terraform-provider-outscale_darwin_amd64_v0.1.0-rc9.zip
$ mv terraform-provider-outscale_v0.1.0-rc9 ~/.terraform.d/plugins/darwin_amd64/.
$ set HTTPS_PROXY=http://192.168.1.24:3128
```

Installing The Provider on Windows

x509 client authentication, if any
----------------------------------

Download the binary and install it in %APPDATA%\terraform.d\plugins
Add the following lines in the Terraform configuration to define certificate location:

```sh
$ download the plugin from https://github.com/outscale-dev/terraform-provider-outscale/releases/download/release-0.1.0RC9/terraform-provider-outscale_windows_386_v0.1.0-rc9.zip
$ unzip terraform-provider-outscale_windows_386_v0.1.0-rc9.zip
$ move terraform-provider-outscale_v0.1.0-rc9 %APPDATA%\terraform.d\plugins
terraform {
required_version = ">= 0.13"
required_providers {
outscale = {
source = "outscale-dev/outscale"
version = "0.2.0"
}
}
}
provider "outscale" {
access_key_id = var.access_key_id
secret_key_id = var.secret_key_id
region = var.region
x509_cert_path = "/myrepository/certificate/client_ca.crt"
x509_key_path = "/myrepository/certificate/client_ca.key"
}
```

or set the following environment variables:

```sh
export OUTSCALE_X509CERT=/myrepository/certificate/client_ca.crt
export OUTSCALE_X509KEY=/myrepository/certificate/client_ca.key
```

Building The Provider
---------------------
Expand All @@ -55,27 +87,29 @@ 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 release-0.1.0RC9 https://github.com/outscale-dev/terraform-provider-outscale
$ git clone --branch v0.2.0 https://github.com/outscale-dev/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.1.0-rc9
$ go build -o terraform-provider-outscale_v0.2.0
```

Using the provider
----------------------
1. Download and install [Terraform](https://www.terraform.io/downloads.html)
2. Move the plugin to the repository ~/.terraform.d/plugins/linux_amd64/.
2. Move the plugin to the repository ~/.terraform/plugins/registry.terraform.io/outscale-dev/outscale/0.2.0/linux_amd64/.

```shell
$ mv terraform-provider-outscale_v0.1.0-rc9 ~/.terraform.d/plugins/linux_amd64/.
$ mv terraform-provider-outscale_v0.2.0 ~/.terraform/plugins/registry.terraform.io/outscale-dev/outscale/0.2.0/linux_amd64/.
```

3. Execute `terraform plan`
4. `terraform init`
3. Execute `terraform init`
4. Execute `terraform plan`



Developing the Provider
---------------------------
Expand Down
Loading

0 comments on commit 564eaff

Please sign in to comment.