Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: outscale/terraform-provider-outscale
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 36d89c8944775b02f2f56f3f6f3f303875479355
Choose a base ref
..
head repository: outscale/terraform-provider-outscale
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 42a2cbb71ebd1ecaf7ea4bcb0a0d82c45b16998b
Choose a head ref
Showing 447 changed files with 7,181 additions and 6,180 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -24,7 +24,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
4 changes: 2 additions & 2 deletions .github/workflows/examples-test.yml
Original file line number Diff line number Diff line change
@@ -18,7 +18,7 @@ jobs:
environment: test-eu-west-2
runs-on: [self-hosted, linux, eu-west-2]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
@@ -31,7 +31,7 @@ jobs:
with:
go-version: 'stable'
- name: Setup Terraform
uses: hashicorp/setup-terraform@v2
uses: hashicorp/setup-terraform@v3
with:
terraform_wrapper: false
- name: Run Examples
4 changes: 2 additions & 2 deletions .github/workflows/generate_binaries_on_pr.yml
Original file line number Diff line number Diff line change
@@ -9,15 +9,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 'stable'
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
uses: goreleaser/goreleaser-action@v5
with:
version: latest
args: build --rm-dist --snapshot
2 changes: 1 addition & 1 deletion .github/workflows/generate_doc.yml
Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@ jobs:
environment: auto-build
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- uses: actions/setup-python@v2
2 changes: 1 addition & 1 deletion .github/workflows/github-sanity-scan.yml
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@ jobs:
github-sanity-scan:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Github sanity scanner
uses: outscale/github-sanity-scan@main
with:
16 changes: 11 additions & 5 deletions .github/workflows/integration_tests.yml
Original file line number Diff line number Diff line change
@@ -17,7 +17,7 @@ jobs:
environment: test-eu-west-2
runs-on: [self-hosted, linux, eu-west-2]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
@@ -31,19 +31,25 @@ jobs:
with:
go-version: 'stable'
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: '3.5.x'
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
- name: Setup Terraform
uses: hashicorp/setup-terraform@v2
uses: hashicorp/setup-terraform@v3
with:
terraform_version: 1.3.5
terraform_version: 1.6.5
terraform_wrapper: false
- name: Build go test
run: make test
env:
OUTSCALE_ACCESSKEYID: ${{ secrets.OSC_ACCESS_KEY }}
OUTSCALE_SECRETKEYID: ${{ secrets.OSC_SECRET_KEY }}
OUTSCALE_REGION: ${{ secrets.OSC_REGION }}
OUTSCALE_ACCOUNT: ${{ secrets.OSC_ACCOUNT_ID }}
OUTSCALE_IMAGEID: ${{ secrets.OUTSCALE_IMAGEID }}
- name: Run integration tests
run: make test-integration
env:
20 changes: 13 additions & 7 deletions .github/workflows/nets_integ_tests.yml
Original file line number Diff line number Diff line change
@@ -17,7 +17,7 @@ jobs:
environment: test-us-east-2
runs-on: [self-hosted, linux, us-east-2]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
@@ -27,23 +27,29 @@ jobs:
secret_key: ${{ secrets.OSC_SECRET_KEY }}
region: ${{ secrets.OSC_REGION }}
- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: '>=1.18.0'
go-version: 'stable'
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: '3.5.x'
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
- name: Setup Terraform
uses: hashicorp/setup-terraform@v2
uses: hashicorp/setup-terraform@v3
with:
terraform_version: 1.3.5
terraform_version: 1.6.5
terraform_wrapper: false
- name: Build go test
run: make test
env:
OUTSCALE_ACCESSKEYID: ${{ secrets.OSC_ACCESS_KEY }}
OUTSCALE_SECRETKEYID: ${{ secrets.OSC_SECRET_KEY }}
OUTSCALE_REGION: ${{ secrets.OSC_REGION }}
OUTSCALE_ACCOUNT: ${{ secrets.OSC_ACCOUNT_ID }}
OUTSCALE_IMAGEID: ${{ secrets.OUTSCALE_IMAGEID }}
- name: Run nets integration tests
run: make test-integration
env:
8 changes: 7 additions & 1 deletion .github/workflows/nets_testacc.yml
Original file line number Diff line number Diff line change
@@ -16,7 +16,7 @@ jobs:
environment: test-us-east-2
runs-on: [self-hosted, linux, us-east-2]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
@@ -31,6 +31,12 @@ jobs:
go-version: 'stable'
- name: Build go test
run: make test
env:
OUTSCALE_ACCESSKEYID: ${{ secrets.OSC_ACCESS_KEY }}
OUTSCALE_SECRETKEYID: ${{ secrets.OSC_SECRET_KEY }}
OUTSCALE_REGION: ${{ secrets.OSC_REGION }}
OUTSCALE_ACCOUNT: ${{ secrets.OSC_ACCOUNT_ID }}
OUTSCALE_IMAGEID: ${{ secrets.OUTSCALE_IMAGEID }}
- name: Run nets acceptances tests
run: make test-net
env:
13 changes: 10 additions & 3 deletions .github/workflows/others_testacc.yml
Original file line number Diff line number Diff line change
@@ -16,7 +16,7 @@ jobs:
environment: test-eu-west-2
runs-on: [self-hosted, linux, eu-west-2]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
@@ -26,16 +26,22 @@ jobs:
secret_key: ${{ secrets.OSC_SECRET_KEY }}
region: ${{ secrets.OSC_REGION }}
- name: Setup Terraform
uses: hashicorp/setup-terraform@v2
uses: hashicorp/setup-terraform@v3
with:
terraform_version: 1.3.5
terraform_version: 1.6.5
terraform_wrapper: false
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 'stable'
- name: Build go test
run: make test
env:
OUTSCALE_ACCESSKEYID: ${{ secrets.OSC_ACCESS_KEY }}
OUTSCALE_SECRETKEYID: ${{ secrets.OSC_SECRET_KEY }}
OUTSCALE_REGION: ${{ secrets.OSC_REGION }}
OUTSCALE_ACCOUNT: ${{ secrets.OSC_ACCOUNT_ID }}
OUTSCALE_IMAGEID: ${{ secrets.OUTSCALE_IMAGEID }}
- name: Run others acceptances tests
run: make test-others
env:
@@ -44,3 +50,4 @@ jobs:
OUTSCALE_REGION: ${{ secrets.OSC_REGION }}
OUTSCALE_ACCOUNT: ${{ secrets.OSC_ACCOUNT_ID }}
OUTSCALE_IMAGEID: ${{ secrets.OUTSCALE_IMAGEID }}
CA_PATH: ${{ secrets.CA_PATH }}
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v4
@@ -29,13 +29,13 @@ jobs:

- name: Import GPG key
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v5
uses: crazy-max/ghaction-import-gpg@v6
with:
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
PASSPHRASE: ${{ secrets.PASSPHRASE }}

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
uses: goreleaser/goreleaser-action@v5
with:
version: latest
args: release --clean
8 changes: 7 additions & 1 deletion .github/workflows/vms_testacc.yml
Original file line number Diff line number Diff line change
@@ -16,7 +16,7 @@ jobs:
environment: test-eu-west-2
runs-on: [self-hosted, linux, eu-west-2]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
@@ -31,6 +31,12 @@ jobs:
go-version: 'stable'
- name: Build go test
run: make test
env:
OUTSCALE_ACCESSKEYID: ${{ secrets.OSC_ACCESS_KEY }}
OUTSCALE_SECRETKEYID: ${{ secrets.OSC_SECRET_KEY }}
OUTSCALE_REGION: ${{ secrets.OSC_REGION }}
OUTSCALE_ACCOUNT: ${{ secrets.OSC_ACCOUNT_ID }}
OUTSCALE_IMAGEID: ${{ secrets.OUTSCALE_IMAGEID }}
- name: Run vms acceptances tests
run: make test-vm
env:
37 changes: 37 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,40 @@
0.11.0 (February 13, 2024)
========================

FEATURES:
---------

* Support for Creating Security Group Rules Using Security Group Names ([GH-399](https://github.com/outscale/terraform-provider-outscale/issues/399))

IMPROVEMENT:
-----------

* Update tests and osc-sdk-go
* Somes refactoring

0.10.0 (November 10, 2023)
========================

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

* Delete igw with TF take always more than 1m ([GH-366](https://github.com/outscale/terraform-provider-outscale/issues/366)
* Security Group not restored on VMs when removed outside of terraform ([GH-369](https://github.com/outscale/terraform-provider-outscale/issues/369)
* Plugin crashed when NAT not found ([GH-373](https://github.com/outscale/terraform-provider-outscale/issues/373)

FEATURES:
---------

* Add "ToCreationDate" and "FromCreationDate" to snapshots data_source(s) filters ([GH-344](https://github.com/outscale/terraform-provider-outscale/issues/344))
* Add block for primary_nic in VM to avoid conflict with nic block inside VM and link_nic resouces ([GH-376](https://github.com/outscale/terraform-provider-outscale/issues/376))
* Implement snapshot creation before volume deletion by terraform destroy ([GH-367](https://github.com/outscale/terraform-provider-outscale/issues/367))
* Support differential updates for outscale_load_balancer_vms ([GH-54](https://github.com/outscale/terraform-provider-outscale/issues/54))

IMPROVEMENT:
-----------

* Remove other inbound_rules and outbound_rules from outscale_security_group_rule ([GH-286](https://github.com/outscale/terraform-provider-outscale/issues/286))

0.9.1 (April 27, 2023)
========================

22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -19,7 +19,7 @@
>
> 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.9.1](https://registry.terraform.io/providers/outscale/outscale/latest))
> We recommende to upgrade on the latest ([v0.11.0](https://registry.terraform.io/providers/outscale/outscale/latest))
## Using the Provider

@@ -36,7 +36,7 @@ terraform {
required_providers {
outscale = {
source = "outscale/outscale"
version = "0.9.1"
version = "0.11.0"
}
}
}
@@ -64,7 +64,7 @@ terraform {
required_providers {
outscale = {
source = "outscale/outscale"
version = "0.9.1"
version = "0.11.0"
}
}
}
@@ -88,22 +88,22 @@ 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.9.1 https://github.com/outscale/terraform-provider-outscale
git clone --branch v0.11.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.9.1
go build -o terraform-provider-outscale_v0.11.0
```
## Using the provider
### 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.9.1/linux_amd64/.
2. Move the plugin to the repository ~/.terraform.d/plugins/registry.terraform.io/outscale/outscale/0.11.0/linux_amd64/.
```shell
mkdir -p ~/.terraform.d/plugins/regisutry.terraform.io/outscale/outscale/0.9.1/linux_amd64
mv terraform-provider-outscale_v0.9.1 ~/.terraform.d/plugins/registry.terraform.io/outscale/outscale/0.9.1/linux_amd64
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
```
3. Execute `terraform init

@@ -112,10 +112,10 @@ mv terraform-provider-outscale_v0.9.1 ~/.terraform.d/plugins/registry.terraform.
### 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.9.1/darwin_arm64
2. Move the plugin to the repository ~/.terraform.d/plugins/registry.terraform.io/outscale/outscale/0.11.0/darwin_arm64
```shell
mkdir -p ~/.terraform.d/plugins/registry.terraform.io/outscale/outscale/0.9.1/darwin_arm64
mv terraform-provider-outscale_v0.9.1 ~/.terraform.d/plugins/registry.terraform.io/outscale/outscale/0.9.1/darwin_arm64
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
```

3. Execute `terraform init`
1 change: 1 addition & 0 deletions docs/data-sources/access_key.md
Original file line number Diff line number Diff line change
@@ -31,6 +31,7 @@ The following arguments are supported:
* `filter` - (Optional) A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
* `access_key_ids` - (Optional) The IDs of the access keys.
* `states` - (Optional) The states of the access keys (`ACTIVE` \| `INACTIVE`).
* `user_name` - (Optional) The name of the EIM user. By default, the user who sends the request (which can be the root account).

## Attribute Reference

1 change: 1 addition & 0 deletions docs/data-sources/access_keys.md
Original file line number Diff line number Diff line change
@@ -31,6 +31,7 @@ The following arguments are supported:
* `filter` - (Optional) A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
* `access_key_ids` - (Optional) The IDs of the access keys.
* `states` - (Optional) The states of the access keys (`ACTIVE` \| `INACTIVE`).
* `user_name` - (Optional) The name of the EIM user. By default, the user who sends the request (which can be the root account).

## Attribute Reference

Loading