Skip to content

Commit

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

Closes TPD-1954, TPD-1948, TPD-1950, TPD-1951, TPD-1946, and TPD-1941

See merge request customer-tooling/terraform-provider-outscale!477
  • Loading branch information
outscale-mgo committed Apr 6, 2021
2 parents 564eaff + 00f62b2 commit c6790f5
Show file tree
Hide file tree
Showing 907 changed files with 18,896 additions and 4,371 deletions.
10 changes: 6 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
examples/terraform-provider-outscale
examples/.terraform
examples/terraform.tfstate
examples/terraform.tfstate.backup
terraform-provider-outscale
.terraform
terraform.tfstate
terraform.tfstate.backup
.terraform.lock.hcl
.terraform.tfstate.lock.info

test/
.vscode/
Expand Down
61 changes: 61 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,64 @@
0.3.0 (April 06, 2021)
========================

FEATURES:
---------

* New Data Source: outscale_flexible_gpu
* New Data Source: outscale_flexible_gpu_catalog
* New Data Source: outscale_flexible_gpus
* New Data Source: outscale_net_access_point
* New Data Source: outscale_net_access_points
* New Data Source: outscale_net_access_point_services
* New Data Source: outscale_regions
* New Data Source: outscale_subregion
* New Data Source: outscale_subregions
* New Data Source: outscale_vm_types

* New Resource: outscale_net_access_point
* New Resource: outscale_flexible_gpu
* New Resource: outscale_flexible_gpu_link

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

* Issue when importing the resource "outscale_load_balancer_listener_rule" (TPD-1941)
* terraform crash when "outscale_net_peering" resource cannot be found (TPD-1943)
* Create "outscale_net_access_point" resource and datasource(s) in oAPI client (TPD-1945)
* Create "outscale_flexible_gpu" resource and datasource(s) in oAPI client (TPD-1946)
* Create "outscale_flexible_gpu_link" resource in oAPI client (TPD-1947)
* Create "outscale_flexible_gpu_catalog" datasource in oAPI client (TPD-1948)
* Create "outscale_vm_types" datasource in oAPI client (TPD-1949)
* Add "outscale_regions" datasource in oAPI client (TPD-1950)
* Add "outscale_subregion" and "outscale_subregions" datasource in oAPI client (TPD-1951)
* Create "outscale_net_access_point_services" datasource in oAPI client (TPD-1952)
* "outscale_load_balancer_listener_rule" cannot be updated (TPD-1953)
* Terraform hangs when changing instance type on VMs with shutdown behaviour set to "restart" (TPD-1954)
* Terraform crash when "outscale_route_table" resource cannot be found (TPD-1960)
* "outscale_route_table" datasource(s) is not sending all filters (TPD-1961)
* terraform crash when "outscale_nat_service" resource cannot be found (TPD-1962)
* "outscale_internet_service" datasource(s) is not sending all filters (TPD-1964)
* Filters should not be mandatory in "outscale_vm_types" datasource in oAPI client (TPD-1968)
* "dhcp_options_set_id" attribute is missing in "outscale_dhcp_option" datasource(s) (TPD-1969)
* Examples rework (TPD-1970)
* Add CONTRIBUTING.md (TPD-1971)
* Integrate QA tests (TPD-1973)


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).


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.2.0 (November 30, 2020)
========================

Expand Down
47 changes: 47 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Opening an issue

Feel free to open a [Github issue](https://github.com/outscale-dev/terraform-provider-outscale/issues) and explain your problem.

Please provide at least those informations:
- terraform version
- how to reproduce the issue
- output of your command with `TF_LOG=TRACE` set (e.g. `TF_LOG=TRACE terraform apply`)
- please store large output (like traces) as as an attached file
- make sure your don't leak any sensible informations (credentials, ...)

# Developing the Provider

If you wish to work on the provider, you'll first need [Go](http://www.golang.org) installed on your machine (version 1.8+ is *required*). You'll also need to correctly setup a [GOPATH](http://golang.org/doc/code.html#GOPATH), as well as adding `$GOPATH/bin` to your `$PATH`.

To compile the provider, run `make build`. This will build the provider and put the provider binary in the `$GOPATH/bin` directory.

```sh
$ make build
...
$ $GOPATH/bin/terraform-provider-outscale
...
```

In order to test the provider, you can simply run `make test`.

```sh
$ make test
```

In order to run the full suite of Acceptance tests, run `make testacc`.

*Note:* Acceptance tests create real resources, and often cost money to run.

*Note:* The following environment variables must be set prior to run Acceptance Tests

```sh
$ export OUTSCALE_IMAGEID="ami-xxxxxxxx" # i.e. "ami-4a7bf2b3"
$ export OUTSCALE_ACCESSKEYID="<ACCESSKEY>" # i.e. "XXXXXXXXXXXXXXXXXXXX"
$ export OUTSCALE_SECRETKEYID="<SECRETKEY>" # i.e. "YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY"
$ export OUTSCALE_REGION="<REGION>" # i.e. "eu-west-2"
$ export OUTSCALE_ACCOUNT="<ACCOUNTPID>" # i.e. "XXXXXXXXXXXX"
```

```sh
$ make testacc
```
16 changes: 15 additions & 1 deletion GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,18 @@ ifeq (,$(wildcard $(GOPATH)/src/$(WEBSITE_REPO)))
endif
@$(MAKE) -C $(GOPATH)/src/$(WEBSITE_REPO) website-provider-test PROVIDER_PATH=$(shell pwd) PROVIDER_NAME=$(PKG_NAME)

.PHONY: build test testacc fmt fmtcheck lint tools test-compile website website-lint website-test
# In order to test examples, you will need to set
# - TF_VAR_access_key_id
# - TF_VAR_secret_key_id
# - TF_VAR_region
examples-test:
find ./examples -mindepth 1 -maxdepth 1 -type d | \
while read example; do \
cd "$$example"; \
terraform init; \
terraform apply -auto-approve; \
terraform destroy -auto-approve; \
cd ../..; \
done\

.PHONY: build test testacc fmt fmtcheck lint tools test-compile website website-lint website-test examples-test
53 changes: 9 additions & 44 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ terraform {
required_providers {
outscale = {
source = "outscale-dev/outscale"
version = "0.2.0"
version = "0.3.0"
}
}
}
Expand Down Expand Up @@ -60,7 +60,7 @@ terraform {
required_providers {
outscale = {
source = "outscale-dev/outscale"
version = "0.2.0"
version = "0.3.0"
}
}
}
Expand All @@ -87,64 +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 v0.2.0 https://github.com/outscale-dev/terraform-provider-outscale
$ git clone --branch v0.3.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.2.0
$ go build -o terraform-provider-outscale_v0.3.0
```

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

```shell
$ mv terraform-provider-outscale_v0.2.0 ~/.terraform/plugins/registry.terraform.io/outscale-dev/outscale/0.2.0/linux_amd64/.
$ mv terraform-provider-outscale_v0.3.0 ~/.terraform/plugins/registry.terraform.io/outscale-dev/outscale/0.3.0/linux_amd64/.
```

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

Issues and contributions
------------------------


Developing the Provider
---------------------------

If you wish to work on the provider, you'll first need [Go](http://www.golang.org) installed on your machine (version 1.8+ is *required*). You'll also need to correctly setup a [GOPATH](http://golang.org/doc/code.html#GOPATH), as well as adding `$GOPATH/bin` to your `$PATH`.

To compile the provider, run `make build`. This will build the provider and put the provider binary in the `$GOPATH/bin` directory.

```sh
$ make build
...
$ $GOPATH/bin/terraform-provider-outscale
...
```

In order to test the provider, you can simply run `make test`.

```sh
$ make test
```

In order to run the full suite of Acceptance tests, run `make testacc`.

*Note:* Acceptance tests create real resources, and often cost money to run.

*Note:* The following environment variables must be set prior to run Acceptance Tests

```sh
$ export OUTSCALE_IMAGEID="ami-xxxxxxxx" # i.e. "ami-4a7bf2b3"
$ export OUTSCALE_ACCESSKEYID="<ACCESSKEY>" # i.e. "XXXXXXXXXXXXXXXXXXXX"
$ export OUTSCALE_SECRETKEYID="<SECRETKEY>" # i.e. "YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY"
$ export OUTSCALE_REGION="<REGION>" # i.e. "eu-west-2"
$ export OUTSCALE_ACCOUNT="<ACCOUNTPID>" # i.e. "XXXXXXXXXXXX"
```

```sh
$ make testacc
```
Check [CONTRIBUTING.md](./CONTRIBUTING.md) for more details.
Loading

0 comments on commit c6790f5

Please sign in to comment.