diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index f0ec009..d2f4234 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -11,10 +11,19 @@ jobs: runs-on: ubuntu-latest if: ${{ github.event.workflow_run.conclusion == 'success' }} steps: - - run: echo "First workflow was a success" + - uses: actions/checkout@v2 + - name: Login to Docker + run: docker login rg.fr-par.scw.cloud/picnicdouille -u nologin -p ${{ secrets.SCWTOKEN }} + - name: Build API Container + run: | + cd backend + docker build -f Dockerfile --tag rg.fr-par.scw.cloud/picnicdouille/picnicdouille_app:${{ github.sha }} . + - name: Push Container in registry + run: docker push rg.fr-par.scw.cloud/picnicdouille/picnicdouille_app:${{ github.sha }} + on-failure: runs-on: ubuntu-latest if: ${{ github.event.workflow_run.conclusion == 'failure' }} steps: - - run: echo "First workflow was a failure" + - run: echo "CPT MICHEL" diff --git a/infrastructure/.terraform.lock.hcl b/infrastructure/.terraform.lock.hcl new file mode 100644 index 0000000..64d348d --- /dev/null +++ b/infrastructure/.terraform.lock.hcl @@ -0,0 +1,23 @@ +# This file is maintained automatically by "terraform init". +# Manual edits may be lost in future updates. + +provider "registry.terraform.io/scaleway/scaleway" { + version = "2.33.0" + hashes = [ + "h1:4ELSalA6PaTz9oPCqj6VUHsCMgUGGLaVWof3cHPq3cg=", + "zh:0bc57607f9f951105dfd7a18501628c7970953afce64cf9ce15e549c51ff60c1", + "zh:0f72cef68e02de06580dabfbe271c1ea76b096113f0db030ea288090c25087f9", + "zh:156d05392e86831dda6ec4664e9a5f86ee240bf92cef834cf6de4e8bc56c0b34", + "zh:46c5360c85c4b78af7ff2b0e747c15f4a34d092da17fde8be41204519c1ece77", + "zh:4e56ab5d29805115a900fc34e958e89052ea87246544440ad12abdd9708a8ce0", + "zh:59933f8aa9e6003052d59900a0a047b6dfedffeac5bb51dc1448aede8414cf5f", + "zh:7aed52c1741d6b941fa0dc6fa1fc8561c17505c85e6f6f0655dde94b38653648", + "zh:8a928df1ca395d1a97cff69377c5204c868ee43fc106242ddb0d05ff4f672048", + "zh:9ab7969d4f25b9ed0a9b63cae305974fe2bb3b3a9d0705ad4655fa8ffe8c1fde", + "zh:c29578a252d6918080080e45588538ddab56a47db90289720819ae81549237c0", + "zh:cc85b2eaaf1ef83552bc1280bd4750f23d4e0f1d66fa598c05b78d196702e6e0", + "zh:d22a0ae6101e0cdbb55ea6c0f6154b4e68b89ccab916a466917606e157063383", + "zh:dffceb91ef5eed238400d52f8cd259639cd7cdd4488bc0bc3ce39eaa650925d6", + "zh:e2b5ef5932e3fa1d6d768ac03207897f0ea9ddb2e872c4f1f3e7627d4a24d5cf", + ] +} diff --git a/infrastructure/.terraform/modules/modules.json b/infrastructure/.terraform/modules/modules.json new file mode 100644 index 0000000..26dee24 --- /dev/null +++ b/infrastructure/.terraform/modules/modules.json @@ -0,0 +1 @@ +{"Modules":[{"Key":"","Source":"","Dir":"."},{"Key":"app","Source":"./app","Dir":"app"}]} \ No newline at end of file diff --git a/infrastructure/.terraform/providers/registry.terraform.io/scaleway/scaleway/2.33.0/darwin_arm64/CHANGELOG.md b/infrastructure/.terraform/providers/registry.terraform.io/scaleway/scaleway/2.33.0/darwin_arm64/CHANGELOG.md new file mode 100644 index 0000000..47af3c7 --- /dev/null +++ b/infrastructure/.terraform/providers/registry.terraform.io/scaleway/scaleway/2.33.0/darwin_arm64/CHANGELOG.md @@ -0,0 +1,335 @@ +## 1.17.0 (Unreleased) +## 1.16.0 (June 29, 2020) + +IMPROVEMENTS: + +* **New Data source** `data-source/scaleway_lb_ip` ([#493](https://github.com/scaleway/terraform-provider-scaleway/pull/493)). +* `resource/scaleway_instance_security_group` add stateful field to security group ([#497](https://github.com/scaleway/terraform-provider-scaleway/pull/497)). + +BUG FIXES: + +* `resource/scaleway_k8s_cluster_beta` use resource region on versions calls ([#492](https://github.com/scaleway/terraform-provider-scaleway/pull/492)). +* `resource/scaleway_k8s_cluster_beta` add missing region argument on pool creation ([#494](https://github.com/scaleway/terraform-provider-scaleway/pull/494)). +* `resource/scaleway_k8s_pool_beta` fix pool size and autoscaling ([#498](https://github.com/scaleway/terraform-provider-scaleway/pull/498)). +* `resource/scaleway_instance_security_group` fix ipv6 security rule validation ([#482](https://github.com/scaleway/terraform-provider-scaleway/pull/482)). +* `resource/scaleway_lb_beta` fix case problem with lb type ([#515](https://github.com/scaleway/terraform-provider-scaleway/pull/515)). + + +## 1.15.0 (April 29, 2020) + +BREAKING CHANGES: + +* `resource/scaleway_baremetal_server_beta` is out of beta and has been renamed to `scaleway_baremetal_server` ([#463](https://github.com/scaleway/terraform-provider-scaleway/pull/463)). +* `data-source/scaleway_baremetal_offer_beta` is out of beta and has been renamed to `scaleway_baremetal_offer` ([#463](https://github.com/scaleway/terraform-provider-scaleway/pull/463)). +* `resource/scaleway_bucket` has been removed as this product is no longer supported ([#471](https://github.com/scaleway/terraform-provider-scaleway/pull/471)). +* `resource/scaleway_lb_beta` ip_id field is now required ([#452](https://github.com/scaleway/terraform-provider-scaleway/pull/452)). +* `resource/scaleway_k8s_cluster_beta` does not accept `default_pool_config` anymore, it should be replaced with a `resource/scaleway_k8s_pool_beta` instead ([#442](https://github.com/scaleway/terraform-provider-scaleway/pull/442)). + +IMPROVEMENTS: + +* **New Resource** `resource/scaleway_lb_ip` ([#452](https://github.com/scaleway/terraform-provider-scaleway/pull/452)). +* `resource/scaleway_k8s_cluster_beta` add unneeded time for auto-scaler ([#461](https://github.com/scaleway/terraform-provider-scaleway/pull/461)). +* `resource/scaleway_k8s_cluster_beta` use minor version on auto-upgrades ([#462](https://github.com/scaleway/terraform-provider-scaleway/pull/462)). +* `resource/scaleway_baremetal_server` add ip version field ([#460](https://github.com/scaleway/terraform-provider-scaleway/pull/460)). +* `resource/scaleway_instance_server` add ip version field ([#460](https://github.com/scaleway/terraform-provider-scaleway/pull/460)). +* `resource/scaleway_k8s_cluster_beta` is now based on `v1` api version ([#442](https://github.com/scaleway/terraform-provider-scaleway/pull/442)). +* `resource/scaleway_k8s_pool_beta` is now based on `v1` api version ([#442](https://github.com/scaleway/terraform-provider-scaleway/pull/442)). + +BUG FIXES: + +* `resource/scaleway_baremetal_server` missing ip in computed fields ([#458](https://github.com/scaleway/terraform-provider-scaleway/pull/458)). +* Dead lock when doing too many retry ([#447](https://github.com/scaleway/terraform-provider-scaleway/pull/447)). +* `resource/scaleway_instance_security_group` fix plan issue when using external rules ([#446](https://github.com/scaleway/terraform-provider-scaleway/pull/446)). + + +## 1.14.0 (March 11, 2020) + +* **Deprecated Data Source** `data-source/scaleway_bootscript`: ([#429](https://github.com/scaleway/terraform-provider-scaleway/issues/429)) +* **New Data source** `data-source/scaleway_registry_image_beta`: ([#409](https://github.com/scaleway/terraform-provider-scaleway/issues/409)) +* **New Data source** `data-source/scaleway_registry_namespace_beta`: ([#408](https://github.com/scaleway/terraform-provider-scaleway/issues/408)) +* **New Resource** `resource/scaleway_lb_certificate_beta`: ([#396](https://github.com/scaleway/terraform-provider-scaleway/issues/396)) +* **New Resource** `resource/scaleway_registry_namespace_beta`: ([#330](https://github.com/scaleway/terraform-provider-scaleway/issues/330), [#407](https://github.com/scaleway/terraform-provider-scaleway/issues/407)) +* **New Resource** `resource/scaleway_instance_security_group_rules`: ([#391](https://github.com/scaleway/terraform-provider-scaleway/issues/391)) +* `resource/scaleway_baremetal_server_beta`: export `ips` and `domain` attributes: ([#406](https://github.com/scaleway/terraform-provider-scaleway/issues/406)) +* `resource/scaleway_instance_server`: add `boot_type` attribute to support deprecated instance types ([#401](https://github.com/scaleway/terraform-provider-scaleway/issues/401)) +* `resource/scaleway_lb_frontend_beta`: add ACL support ([#382](https://github.com/scaleway/terraform-provider-scaleway/issues/382), [#420](https://github.com/scaleway/terraform-provider-scaleway/issues/420)) +* `resource/scaleway_k8s_cluster_beta`: wait for pool to be ready and add `status` and `nodes` attributes ([#393](https://github.com/scaleway/terraform-provider-scaleway/issues/393)) +* `resource/scaleway_k8s_pool_beta`: wait for pool to be ready and add `status` and `nodes` attributes ([#393](https://github.com/scaleway/terraform-provider-scaleway/issues/393)) +* `resource/scaleway_k8s_cluster_beta`: make version field required ([#389](https://github.com/scaleway/terraform-provider-scaleway/issues/389)) +* `resource/scaleway_k8s_cluster_beta`: add feature gates and admission plugins ([#386](https://github.com/scaleway/terraform-provider-scaleway/issues/386)) +* `resource/scaleway_k8s_cluster_beta`: add cluster renaming ([#383](https://github.com/scaleway/terraform-provider-scaleway/issues/383)) +* `resource/scaleway_k8s_cluster_beta`: add default pools `tags` attribute ([#431](https://github.com/scaleway/terraform-provider-scaleway/issues/431)) +* `resource/scaleway_k8s_pool_beta`: add `tags` attribute ([#431](https://github.com/scaleway/terraform-provider-scaleway/issues/431)) + +IMPROVEMENTS: + +* `resource/scaleway_instance_security_group`: add `port_range` documentation ([#398](https://github.com/scaleway/terraform-provider-scaleway/issues/398)) + +BUG FIXES: + +* `resource/scaleway_instance_server`: handle diff resulting from zoned image UUID ([#412](https://github.com/scaleway/terraform-provider-scaleway/issues/412)) +* `resource/scaleway_k8s_cluster_beta`: wait for default pool on pool replacement ([#422](https://github.com/scaleway/terraform-provider-scaleway/issues/422)) +* `resource/scaleway_k8s_cluster_beta`: fix requirements for auto upgrade ([#397](https://github.com/scaleway/terraform-provider-scaleway/issues/397)) +* `resource/scaleway_k8s_cluster_beta`: only recreate default pool on its update ([#375](https://github.com/scaleway/terraform-provider-scaleway/issues/375)) +* `resource/scaleway_k8s_cluster_beta`: fix default ingress ([#372](https://github.com/scaleway/terraform-provider-scaleway/issues/372)) + + +## 1.13.0 (December 10, 2019) + +BREAKING CHANGES: + +* `scaleway_instance_placement_group`: change default policy from `low_latency` to `max_availability` ([#329](https://github.com/scaleway/terraform-provider-scaleway/pull/329)). +This change was made to keep coherence with default API behavior. +* `scaleway_instance_server`: The attribute `disable_dynamic_ip` has been removed in favor of `enable_dynamic_ip` ([#365](https://github.com/scaleway/terraform-provider-scaleway/pull/365)). +* `scaleway_instance_ip`: In order to resolve circular dependencies that can happen in some use case we changed +the way an IP is attached to a server. The attribute `scaleway_instance_ip.server_id` has been removed in +favor of `scaleway_instance_server.ip_id` ([#365](https://github.com/scaleway/terraform-provider-scaleway/pull/365)). + +FEATURE: + +* **New Data source**: `scaleway_baremetal_offer_beta` ([#361](https://github.com/scaleway/terraform-provider-scaleway/pull/361)) +* **New Data source**: `scaleway_instance_image` ([#359](https://github.com/scaleway/terraform-provider-scaleway/pull/359)) +* **New Data source**: `scaleway_instance_security_group` ([#346](https://github.com/scaleway/terraform-provider-scaleway/pull/346)) +* **New Data source**: `scaleway_instance_server` ([#350](https://github.com/scaleway/terraform-provider-scaleway/pull/350)) +* **New Data source**: `scaleway_instance_volume` ([#356](https://github.com/scaleway/terraform-provider-scaleway/pull/356)) +* **New Data source**: `scaleway_marketplace_image` ([#362](https://github.com/scaleway/terraform-provider-scaleway/pull/362)) +* **New Resource**: `scaleway_rdb_instance_beta` ([#331](https://github.com/scaleway/terraform-provider-scaleway/pull/331)) +* **New Resource**: `scaleway_instance_ip_reverse_dns` ([#315](https://github.com/scaleway/terraform-provider-scaleway/pull/315)) +`scaleway_baremetal_server_beta`: add support for offer name ([#345](https://github.com/scaleway/terraform-provider-scaleway/pull/345)) +`scaleway_lb_backend_beta`: add tcp/http/https health check support ([#318](https://github.com/scaleway/terraform-provider-scaleway/pull/318)) +`scaleway_k8s_cluster_beta`: add in place updates cluster ingress and dashboard ([#316](https://github.com/scaleway/terraform-provider-scaleway/pull/316)) + +BUG FIXES: + +* `scaleway_k8s_cluster_beta`: handle regional IDs properly ([#320](https://github.com/scaleway/terraform-provider-scaleway/pull/320)) +* `scaleway_lb_backend_beta`: health_check_delay is now properly used ([#357](https://github.com/scaleway/terraform-provider-scaleway/pull/357)) +* `scaleway_instance_security_group`: make port-range editable ([#358](https://github.com/scaleway/terraform-provider-scaleway/pull/358)) +* `scaleway_instance_server`: read server image during import ([#337](https://github.com/scaleway/terraform-provider-scaleway/pull/337)) +* `scaleway_instance_server`: ignore case on instance types ([#312](https://github.com/scaleway/terraform-provider-scaleway/pull/312)) +* `scaleway_object_bucket`: fix bucket import ([#343](https://github.com/scaleway/terraform-provider-scaleway/pull/343)) +* `scaleway_provider`: better bootstrap error handling ([#342](https://github.com/scaleway/terraform-provider-scaleway/pull/342)) + + +## 1.12.0 (October 25, 2019) + +FEATURES: + +* **New Resource:** `scaleway_lb_frontend_beta` ([#305](https://github.com/scaleway/terraform-provider-scaleway/pull/305)) +* **New Resource:** `scaleway_lb_backend_beta` ([#303](https://github.com/scaleway/terraform-provider-scaleway/pull/303)) +* **New Resource:** `scaleway_lb_beta` ([#278](https://github.com/scaleway/terraform-provider-scaleway/pull/278)) +* **New Resource:** `scaleway_k8s_cluster` ([#258](https://github.com/scaleway/terraform-provider-scaleway/pull/258)) +* **New Resource:** `scaleway_k8s_pool` ([#258](https://github.com/scaleway/terraform-provider-scaleway/pull/258)) +* **New Resource:** `scaleway_account_ssh_key` ([#262](https://github.com/scaleway/terraform-provider-scaleway/pull/262)) +* `scaleway_instance_server`: add ipv6 info on server resource ([#301](https://github.com/scaleway/terraform-provider-scaleway/pull/301)) +* `scaleway_instance_security_group`: add ANY protocol ([#297](https://github.com/scaleway/terraform-provider-scaleway/pull/297)) +* `scaleway_instance_server`: add disable_dynamic_ip ([#293](https://github.com/scaleway/terraform-provider-scaleway/pull/293)) +* `scaleway_k8s_cluster`: add missing placement group ID ([#268](https://github.com/scaleway/terraform-provider-scaleway/pull/268)) +* `scaleway_k8s_cluster`: add autohealing to pools ([#266](https://github.com/scaleway/terraform-provider-scaleway/pull/266)) + +BUG FIXES: + +* `scaleway_account_ssh_key`: trim ssh key before sending it to the API (#304) ([#242](https://github.com/scaleway/terraform-provider-scaleway/issues/304)) +* `scaleway_ip`: handle 403 error as a 404 in read function ([#300](https://github.com/scaleway/terraform-provider-scaleway/pull/300)) +* `scaleway_baremetal_server_beta`: read OS.ID in os_id attribute ([#288](https://github.com/scaleway/terraform-provider-scaleway/pull/288)) +* `scaleway_baremetal_server_beta`: remplace project_id by organization_id in read ([#277](https://github.com/scaleway/terraform-provider-scaleway/pull/277)) +* `scaleway_k8s_cluster_beta`: do not update autoscaled pool size ([#265](https://github.com/scaleway/terraform-provider-scaleway/pull/265)) + + +## 1.11.0 (October 01, 2019) + +NOTES: + +* Full documentation about this update, including Terraform provider version pinning and configuration examples, can be found in the [migration guide](https://www.terraform.io/docs/providers/scaleway/guides/migration_guide_v2.html). + +FEATURES: + +* provider/scaleway: new provider configuration ([#140](https://github.com/scaleway/terraform-provider-scaleway/issues/140)) +* **New Resource:**: `scaleway_instance_server` ([#143](https://github.com/scaleway/terraform-provider-scaleway/issues/143)) +* **New Resource:**: `scaleway_instance_ip` ([#143](https://github.com/scaleway/terraform-provider-scaleway/issues/143)) +* **New Resource:**: `scaleway_instance_security_group` ([#143](https://github.com/scaleway/terraform-provider-scaleway/issues/143)) +* **New Resource:**: `scaleway_instance_volume` ([#143](https://github.com/scaleway/terraform-provider-scaleway/issues/143)) +* **New Resource:**: `scaleway_object_bucket` ([#143](https://github.com/scaleway/terraform-provider-scaleway/issues/143)) +* **New Resource:**: `scaleway_account_ssh_key` ([#143](https://github.com/scaleway/terraform-provider-scaleway/issues/143)) +* **New Resource:**: `scaleway_baremetal_server_beta` (in beta version) ([#143](https://github.com/scaleway/terraform-provider-scaleway/issues/143)) + +* **Deprecated Resource:**: `scaleway_server` (replaced by `scaleway_instance_server`) ([#143](https://github.com/scaleway/terraform-provider-scaleway/issues/143)) +* **Deprecated Resource:**: `scaleway_ip` (replaced by `scaleway_instance_ip`) ([#143](https://github.com/scaleway/terraform-provider-scaleway/issues/143)) +* **Deprecated Resource:**: `scaleway_ip_reverse_dns` (included into `scaleway_instance_ip`) ([#143](https://github.com/scaleway/terraform-provider-scaleway/issues/143)) +* **Deprecated Resource:**: `scaleway_security_group` (replaced by `scaleway_instance_security_group`) ([#143](https://github.com/scaleway/terraform-provider-scaleway/issues/143)) +* **Deprecated Resource:**: `scaleway_security_group_rule` (included into `scaleway_instance_security_group`) ([#143](https://github.com/scaleway/terraform-provider-scaleway/issues/143)) +* **Deprecated Resource:**: `scaleway_volume` (replaced by `scaleway_instance_volume`) ([#143](https://github.com/scaleway/terraform-provider-scaleway/issues/143)) +* **Deprecated Resource:**: `scaleway_volume_attachment` (included into `scaleway_instance_volume`) ([#143](https://github.com/scaleway/terraform-provider-scaleway/issues/143)) +* **Deprecated Resource:**: `scaleway_user_data` (included into `scaleway_instance_server`) ([#143](https://github.com/scaleway/terraform-provider-scaleway/issues/143)) +* **Deprecated Resource:**: `scaleway_bucket` (replaced by `scaleway_object_bucket`) ([#143](https://github.com/scaleway/terraform-provider-scaleway/issues/143)) +* **Deprecated Resource:**: `scaleway_token` ([#143](https://github.com/scaleway/terraform-provider-scaleway/issues/143)) +* **Deprecated Resource:**: `scaleway_ssh_key` (replaced by `scaleway_account_ssh_key`) ([#143](https://github.com/scaleway/terraform-provider-scaleway/issues/143)) + +BUG FIXES: + +* provider/scaleway: update terraform SDK to 0.12.8 ([#242](https://github.com/scaleway/terraform-provider-scaleway/issues/242)) + + +## 1.10.0 (June 03, 2019) + +FEATURES + +* provider/scaleway: update terraform SDK to 0.12.0 ([#127](https://github.com/scaleway/terraform-provider-scaleway/issues/127)) + +BUG FIXES: + +* provider/scaleway: build command in the README ([#134](https://github.com/scaleway/terraform-provider-scaleway/issues/134)) + + +## 1.9.2 (March 27, 2019) + +BUG FIXES: + +* datasource/image: sort results descending ([#117](https://github.com/scaleway/terraform-provider-scaleway/issues/117)) +* provider/scaleway: load correct credentials from ENV ([#114](https://github.com/scaleway/terraform-provider-scaleway/pull/114)) + + +## 1.9.1 (March 15, 2019) + +BUG FIXES: + +* provider/scaleway: load correct value from ENV ([#113](https://github.com/scaleway/terraform-provider-scaleway/pull/113)) + +## 1.9.0 (March 15, 2019) + +FEATURES: + +* provider/scaleway: the provider now tries to parse the Scaleway CLI configuration if no environment variables are set ([#111](https://github.com/scaleway/terraform-provider-scaleway/pull/111)) + +BUG FIXES: + +* resource/scaleway_ssh_key: trim leading and trailing spaces on SSH keys ([#110](https://github.com/scaleway/terraform-provider-scaleway/pull/110)) + + +## 1.8.0 (November 27, 2018) + +FEATURES: + +* **New Resource:**: `scaleway_ip_reverse_dns` ([#96](https://github.com/scaleway/terraform-provider-scaleway/pull/96)) +* resource/scaleway_server: support cloudinit ([#97](https://github.com/scaleway/terraform-provider-scaleway/pull/97)) +* resource/scaleway_security_group: support stateful security groups as well as default inbound and outbount policies ([#97](https://github.com/scaleway/terraform-provider-scaleway/pull/97)) + +## 1.7.0 (October 05, 2018) + +FEATURES: + +* **New Resource:** `scaleway_bucket` ([#94](https://github.com/scaleway/terraform-provider-scaleway/issues/94)) + +## 1.6.0 (August 28, 2018) + +FEATURES: + +* **New Data Source:** `scaleway_security_group` ([#78](https://github.com/scaleway/terraform-provider-scaleway/issues/78)) +* **New Data Source:** `scaleway_volume` ([#77](https://github.com/scaleway/terraform-provider-scaleway/issues/77)) +* resource/scaleway_image: support filtering by most recently created image ([#82](https://github.com/scaleway/terraform-provider-scaleway/pull/82)) + +BUG FIXES: + +* resource/scaleway_token: fix compatability to changes in Scaleway API ([#86](https://github.com/scaleway/terraform-provider-scaleway/pull/86)) +* resource/server: fix issue identifying restarts properly ([#87](https://github.com/scaleway/terraform-provider-scaleway/pull/87)) + +## 1.5.1 (July 11, 2018) + +IMPROVEMENTS: + +* provider: update documentation ([#75](https://github.com/scaleway/terraform-provider-scaleway/pull/75)) + +BUG FIXES: + +* resource/scaleway_server & resource/scaleway_volume_attachment: race condition between startup & shutdown of servers ([#74](https://github.com/scaleway/terraform-provider-scaleway/pull/74)) + +## 1.5.0 (June 29, 2018) + +IMPROVEMENTS: + +* provider: update documentation ([#68](https://github.com/scaleway/terraform-provider-scaleway/pull/68), [#70](https://github.com/scaleway/terraform-provider-scaleway/pull/70)) +* resource/scaleway_server: validate instance type availability ([#69](https://github.com/scaleway/terraform-provider-scaleway/pull/69)) +* provider: update scaleway sdk ([#71](https://github.com/scaleway/terraform-provider-scaleway/pull/71)) +* provider: allow concurrent creation of server resources ([#72](https://github.com/scaleway/terraform-provider-scaleway/pull/72)) + +## 1.4.1 (May 18, 2018) + +BUG FIXES: + +* resource/scaleway_server: fix server type validation ([#63](https://github.com/scaleway/terraform-provider-scaleway/pull/63)) + +## 1.4.0 (May 07, 2018) + +IMPROVEMENTS: + +* resource/scaleway_server: Update public_ip documentation ([#58](https://github.com/scaleway/terraform-provider-scaleway/pull/58)) +* resource/scaleway_server: Add boot_type ([#59](https://github.com/scaleway/terraform-provider-scaleway/pull/59)) + +## 1.3.0 (April 11, 2018) + +FEATURES: + +* **New Resource:** `scaleway_token` ([#56](https://github.com/scaleway/terraform-provider-scaleway/pull/56)) +* **New Resource:** `scaleway_user_data` ([#57](https://github.com/scaleway/terraform-provider-scaleway/pull/57)) + +IMPROVEMENTS: + +* provider: update documentation ([#51](https://github.com/scaleway/terraform-provider-scaleway/pull/51),[#52](https://github.com/scaleway/terraform-provider-scaleway/pull/52)) +* provider: update scaleway sdk ([#53](https://github.com/scaleway/terraform-provider-scaleway/pull/53), [#54](https://github.com/scaleway/terraform-provider-scaleway/pull/54), [#55](https://github.com/scaleway/terraform-provider-scaleway/pull/55)) + +BUG FIXES: + +* provider: fix crash when working over slow and unreliable network connection ([#49](https://github.com/scaleway/terraform-provider-scaleway/pull/49)) + +## 1.2.0 (March 15, 2018) + +IMPROVEMENTS: + +* resource/scaleway_ip: Add support for setting reverse DNS field ([#48](https://github.com/scaleway/terraform-provider-scaleway/pull/48)) +* resource/scaleway_ssh_key: Add new resource to manage ssh keys ([#47](https://github.com/scaleway/terraform-provider-scaleway/pull/47)) + +## 1.1.0 (February 27, 2018) + +BUG FIXES: + +* resource/scaleway_server: Fix crash with stopped server and ipv6 enabled ([#44](https://github.com/scaleway/terraform-provider-scaleway/issues/44)) + +IMPROVEMENTS: + +* resource/scaleway_security_group: Add `enable_default_security` attribute to manage Scaleway default security group rules ([#43](https://github.com/scaleway/terraform-provider-scaleway/issues/43)) + +## 1.0.1 (January 15, 2018) + +BUG FIXES: + +* resource/scaleway_security_group_rule: Fix error when using count ([#25](https://github.com/scaleway/terraform-provider-scaleway/issues/25)) +* provider: Retry rate-limited API requests ([#35](https://github.com/scaleway/terraform-provider-scaleway/issues/35)) + +IMPROVEMENTS: + +* resource/scaleway_server: Validate types against scaleway offerings ([#17](https://github.com/scaleway/terraform-provider-scaleway/issues/17)) + +## 1.0.0 (October 25, 2017) + +BUG FIXES: + +* data-source/scaleway_bootscript: Fix crash when no filter is specified ([#21](https://github.com/scaleway/terraform-provider-scaleway/issues/21)) + +IMPROVEMENTS: + +* resource/scaleway_server: Allow initial volumes without size to improve module support ([#19](https://github.com/scaleway/terraform-provider-scaleway/issues/19)) + +## 0.1.1 (August 04, 2017) + +BUG FIXES: + +* resource/scaleway_volume_attachment: Fix volume_attachment deletion ([#13](https://github.com/scaleway/terraform-provider-scaleway/issues/13)) + +IMPROVEMENTS: + +* resource/scaleway_server: Improve public_ip attachment ([#14](https://github.com/scaleway/terraform-provider-scaleway/issues/14)) + +## 0.1.0 (June 21, 2017) + +NOTES: + +* Same functionality as that of Terraform 0.9.8. Repacked as part of [Provider Splitout](https://www.hashicorp.com/blog/upcoming-provider-changes-in-terraform-0-10/) diff --git a/infrastructure/.terraform/providers/registry.terraform.io/scaleway/scaleway/2.33.0/darwin_arm64/LICENSE b/infrastructure/.terraform/providers/registry.terraform.io/scaleway/scaleway/2.33.0/darwin_arm64/LICENSE new file mode 100644 index 0000000..a612ad9 --- /dev/null +++ b/infrastructure/.terraform/providers/registry.terraform.io/scaleway/scaleway/2.33.0/darwin_arm64/LICENSE @@ -0,0 +1,373 @@ +Mozilla Public License Version 2.0 +================================== + +1. Definitions +-------------- + +1.1. "Contributor" + means each individual or legal entity that creates, contributes to + the creation of, or owns Covered Software. + +1.2. "Contributor Version" + means the combination of the Contributions of others (if any) used + by a Contributor and that particular Contributor's Contribution. + +1.3. "Contribution" + means Covered Software of a particular Contributor. + +1.4. "Covered Software" + means Source Code Form to which the initial Contributor has attached + the notice in Exhibit A, the Executable Form of such Source Code + Form, and Modifications of such Source Code Form, in each case + including portions thereof. + +1.5. "Incompatible With Secondary Licenses" + means + + (a) that the initial Contributor has attached the notice described + in Exhibit B to the Covered Software; or + + (b) that the Covered Software was made available under the terms of + version 1.1 or earlier of the License, but not also under the + terms of a Secondary License. + +1.6. "Executable Form" + means any form of the work other than Source Code Form. + +1.7. "Larger Work" + means a work that combines Covered Software with other material, in + a separate file or files, that is not Covered Software. + +1.8. "License" + means this document. + +1.9. "Licensable" + means having the right to grant, to the maximum extent possible, + whether at the time of the initial grant or subsequently, any and + all of the rights conveyed by this License. + +1.10. "Modifications" + means any of the following: + + (a) any file in Source Code Form that results from an addition to, + deletion from, or modification of the contents of Covered + Software; or + + (b) any new file in Source Code Form that contains any Covered + Software. + +1.11. "Patent Claims" of a Contributor + means any patent claim(s), including without limitation, method, + process, and apparatus claims, in any patent Licensable by such + Contributor that would be infringed, but for the grant of the + License, by the making, using, selling, offering for sale, having + made, import, or transfer of either its Contributions or its + Contributor Version. + +1.12. "Secondary License" + means either the GNU General Public License, Version 2.0, the GNU + Lesser General Public License, Version 2.1, the GNU Affero General + Public License, Version 3.0, or any later versions of those + licenses. + +1.13. "Source Code Form" + means the form of the work preferred for making modifications. + +1.14. "You" (or "Your") + means an individual or a legal entity exercising rights under this + License. For legal entities, "You" includes any entity that + controls, is controlled by, or is under common control with You. For + purposes of this definition, "control" means (a) the power, direct + or indirect, to cause the direction or management of such entity, + whether by contract or otherwise, or (b) ownership of more than + fifty percent (50%) of the outstanding shares or beneficial + ownership of such entity. + +2. License Grants and Conditions +-------------------------------- + +2.1. Grants + +Each Contributor hereby grants You a world-wide, royalty-free, +non-exclusive license: + +(a) under intellectual property rights (other than patent or trademark) + Licensable by such Contributor to use, reproduce, make available, + modify, display, perform, distribute, and otherwise exploit its + Contributions, either on an unmodified basis, with Modifications, or + as part of a Larger Work; and + +(b) under Patent Claims of such Contributor to make, use, sell, offer + for sale, have made, import, and otherwise transfer either its + Contributions or its Contributor Version. + +2.2. Effective Date + +The licenses granted in Section 2.1 with respect to any Contribution +become effective for each Contribution on the date the Contributor first +distributes such Contribution. + +2.3. Limitations on Grant Scope + +The licenses granted in this Section 2 are the only rights granted under +this License. No additional rights or licenses will be implied from the +distribution or licensing of Covered Software under this License. +Notwithstanding Section 2.1(b) above, no patent license is granted by a +Contributor: + +(a) for any code that a Contributor has removed from Covered Software; + or + +(b) for infringements caused by: (i) Your and any other third party's + modifications of Covered Software, or (ii) the combination of its + Contributions with other software (except as part of its Contributor + Version); or + +(c) under Patent Claims infringed by Covered Software in the absence of + its Contributions. + +This License does not grant any rights in the trademarks, service marks, +or logos of any Contributor (except as may be necessary to comply with +the notice requirements in Section 3.4). + +2.4. Subsequent Licenses + +No Contributor makes additional grants as a result of Your choice to +distribute the Covered Software under a subsequent version of this +License (see Section 10.2) or under the terms of a Secondary License (if +permitted under the terms of Section 3.3). + +2.5. Representation + +Each Contributor represents that the Contributor believes its +Contributions are its original creation(s) or it has sufficient rights +to grant the rights to its Contributions conveyed by this License. + +2.6. Fair Use + +This License is not intended to limit any rights You have under +applicable copyright doctrines of fair use, fair dealing, or other +equivalents. + +2.7. Conditions + +Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted +in Section 2.1. + +3. Responsibilities +------------------- + +3.1. Distribution of Source Form + +All distribution of Covered Software in Source Code Form, including any +Modifications that You create or to which You contribute, must be under +the terms of this License. You must inform recipients that the Source +Code Form of the Covered Software is governed by the terms of this +License, and how they can obtain a copy of this License. You may not +attempt to alter or restrict the recipients' rights in the Source Code +Form. + +3.2. Distribution of Executable Form + +If You distribute Covered Software in Executable Form then: + +(a) such Covered Software must also be made available in Source Code + Form, as described in Section 3.1, and You must inform recipients of + the Executable Form how they can obtain a copy of such Source Code + Form by reasonable means in a timely manner, at a charge no more + than the cost of distribution to the recipient; and + +(b) You may distribute such Executable Form under the terms of this + License, or sublicense it under different terms, provided that the + license for the Executable Form does not attempt to limit or alter + the recipients' rights in the Source Code Form under this License. + +3.3. Distribution of a Larger Work + +You may create and distribute a Larger Work under terms of Your choice, +provided that You also comply with the requirements of this License for +the Covered Software. If the Larger Work is a combination of Covered +Software with a work governed by one or more Secondary Licenses, and the +Covered Software is not Incompatible With Secondary Licenses, this +License permits You to additionally distribute such Covered Software +under the terms of such Secondary License(s), so that the recipient of +the Larger Work may, at their option, further distribute the Covered +Software under the terms of either this License or such Secondary +License(s). + +3.4. Notices + +You may not remove or alter the substance of any license notices +(including copyright notices, patent notices, disclaimers of warranty, +or limitations of liability) contained within the Source Code Form of +the Covered Software, except that You may alter any license notices to +the extent required to remedy known factual inaccuracies. + +3.5. Application of Additional Terms + +You may choose to offer, and to charge a fee for, warranty, support, +indemnity or liability obligations to one or more recipients of Covered +Software. However, You may do so only on Your own behalf, and not on +behalf of any Contributor. You must make it absolutely clear that any +such warranty, support, indemnity, or liability obligation is offered by +You alone, and You hereby agree to indemnify every Contributor for any +liability incurred by such Contributor as a result of warranty, support, +indemnity or liability terms You offer. You may include additional +disclaimers of warranty and limitations of liability specific to any +jurisdiction. + +4. Inability to Comply Due to Statute or Regulation +--------------------------------------------------- + +If it is impossible for You to comply with any of the terms of this +License with respect to some or all of the Covered Software due to +statute, judicial order, or regulation then You must: (a) comply with +the terms of this License to the maximum extent possible; and (b) +describe the limitations and the code they affect. Such description must +be placed in a text file included with all distributions of the Covered +Software under this License. Except to the extent prohibited by statute +or regulation, such description must be sufficiently detailed for a +recipient of ordinary skill to be able to understand it. + +5. Termination +-------------- + +5.1. The rights granted under this License will terminate automatically +if You fail to comply with any of its terms. However, if You become +compliant, then the rights granted under this License from a particular +Contributor are reinstated (a) provisionally, unless and until such +Contributor explicitly and finally terminates Your grants, and (b) on an +ongoing basis, if such Contributor fails to notify You of the +non-compliance by some reasonable means prior to 60 days after You have +come back into compliance. Moreover, Your grants from a particular +Contributor are reinstated on an ongoing basis if such Contributor +notifies You of the non-compliance by some reasonable means, this is the +first time You have received notice of non-compliance with this License +from such Contributor, and You become compliant prior to 30 days after +Your receipt of the notice. + +5.2. If You initiate litigation against any entity by asserting a patent +infringement claim (excluding declaratory judgment actions, +counter-claims, and cross-claims) alleging that a Contributor Version +directly or indirectly infringes any patent, then the rights granted to +You by any and all Contributors for the Covered Software under Section +2.1 of this License shall terminate. + +5.3. In the event of termination under Sections 5.1 or 5.2 above, all +end user license agreements (excluding distributors and resellers) which +have been validly granted by You or Your distributors under this License +prior to termination shall survive termination. + +************************************************************************ +* * +* 6. Disclaimer of Warranty * +* ------------------------- * +* * +* Covered Software is provided under this License on an "as is" * +* basis, without warranty of any kind, either expressed, implied, or * +* statutory, including, without limitation, warranties that the * +* Covered Software is free of defects, merchantable, fit for a * +* particular purpose or non-infringing. The entire risk as to the * +* quality and performance of the Covered Software is with You. * +* Should any Covered Software prove defective in any respect, You * +* (not any Contributor) assume the cost of any necessary servicing, * +* repair, or correction. This disclaimer of warranty constitutes an * +* essential part of this License. No use of any Covered Software is * +* authorized under this License except under this disclaimer. * +* * +************************************************************************ + +************************************************************************ +* * +* 7. Limitation of Liability * +* -------------------------- * +* * +* Under no circumstances and under no legal theory, whether tort * +* (including negligence), contract, or otherwise, shall any * +* Contributor, or anyone who distributes Covered Software as * +* permitted above, be liable to You for any direct, indirect, * +* special, incidental, or consequential damages of any character * +* including, without limitation, damages for lost profits, loss of * +* goodwill, work stoppage, computer failure or malfunction, or any * +* and all other commercial damages or losses, even if such party * +* shall have been informed of the possibility of such damages. This * +* limitation of liability shall not apply to liability for death or * +* personal injury resulting from such party's negligence to the * +* extent applicable law prohibits such limitation. Some * +* jurisdictions do not allow the exclusion or limitation of * +* incidental or consequential damages, so this exclusion and * +* limitation may not apply to You. * +* * +************************************************************************ + +8. Litigation +------------- + +Any litigation relating to this License may be brought only in the +courts of a jurisdiction where the defendant maintains its principal +place of business and such litigation shall be governed by laws of that +jurisdiction, without reference to its conflict-of-law provisions. +Nothing in this Section shall prevent a party's ability to bring +cross-claims or counter-claims. + +9. Miscellaneous +---------------- + +This License represents the complete agreement concerning the subject +matter hereof. If any provision of this License is held to be +unenforceable, such provision shall be reformed only to the extent +necessary to make it enforceable. Any law or regulation which provides +that the language of a contract shall be construed against the drafter +shall not be used to construe this License against a Contributor. + +10. Versions of the License +--------------------------- + +10.1. New Versions + +Mozilla Foundation is the license steward. Except as provided in Section +10.3, no one other than the license steward has the right to modify or +publish new versions of this License. Each version will be given a +distinguishing version number. + +10.2. Effect of New Versions + +You may distribute the Covered Software under the terms of the version +of the License under which You originally received the Covered Software, +or under the terms of any subsequent version published by the license +steward. + +10.3. Modified Versions + +If you create software not governed by this License, and you want to +create a new license for such software, you may create and use a +modified version of this License if you rename the license and remove +any references to the name of the license steward (except to note that +such modified license differs from this License). + +10.4. Distributing Source Code Form that is Incompatible With Secondary +Licenses + +If You choose to distribute Source Code Form that is Incompatible With +Secondary Licenses under the terms of this version of the License, the +notice described in Exhibit B of this License must be attached. + +Exhibit A - Source Code Form License Notice +------------------------------------------- + + This Source Code Form is subject to the terms of the Mozilla Public + License, v. 2.0. If a copy of the MPL was not distributed with this + file, You can obtain one at http://mozilla.org/MPL/2.0/. + +If it is not possible or desirable to put the notice in a particular +file, then You may include the notice in a location (such as a LICENSE +file in a relevant directory) where a recipient would be likely to look +for such a notice. + +You may add additional accurate notices of copyright ownership. + +Exhibit B - "Incompatible With Secondary Licenses" Notice +--------------------------------------------------------- + + This Source Code Form is "Incompatible With Secondary Licenses", as + defined by the Mozilla Public License, v. 2.0. diff --git a/infrastructure/.terraform/providers/registry.terraform.io/scaleway/scaleway/2.33.0/darwin_arm64/README.md b/infrastructure/.terraform/providers/registry.terraform.io/scaleway/scaleway/2.33.0/darwin_arm64/README.md new file mode 100644 index 0000000..f1d05bf --- /dev/null +++ b/infrastructure/.terraform/providers/registry.terraform.io/scaleway/scaleway/2.33.0/darwin_arm64/README.md @@ -0,0 +1,51 @@ +# Terraform Provider for Scaleway + +- [Provider Documentation Website](https://www.terraform.io/docs/providers/scaleway/index.html) +- Slack: [Scaleway-community Slack][slack-scaleway] ([#terraform][slack-terraform]) +- [![Go Report Card](https://goreportcard.com/badge/github.com/scaleway/terraform-provider-scaleway/v2)](https://goreportcard.com/report/github.com/scaleway/terraform-provider-scaleway/v2) + + +[slack-scaleway]: https://slack.scaleway.com/ +[slack-terraform]: https://scaleway-community.slack.com/app_redirect?channel=terraform + +## Requirements + +- [Terraform](https://www.terraform.io/downloads.html) 0.10.x +- [Go](https://golang.org/doc/install) 1.11 (to build the provider plugin) + +## Building The Provider + +Clone repository to: `$GOPATH/src/github.com/scaleway/terraform-provider-scaleway` + +```sh +$ mkdir -p $GOPATH/src/github.com/scaleway; cd $GOPATH/src/github.com/scaleway +$ git clone git@github.com:scaleway/terraform-provider-scaleway.git +``` + +Enter the provider directory and build the provider + +```sh +$ cd $GOPATH/src/github.com/scaleway/terraform-provider-scaleway +$ make build +``` + +## Using the provider + +See the [Scaleway Provider Documentation](https://registry.terraform.io/providers/scaleway/scaleway/latest/docs) to get started using the Scaleway provider. + +## 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.13+ 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. + +You have the option to [override](https://www.terraform.io/cli/config/config-file#development-overrides-for-provider-developers) the intended version + +```sh +$ make build +... +$ $GOPATH/bin/terraform-provider-scaleway +... +``` + +Please refer to the [TESTING.md](TESTING.md) for testing. diff --git a/infrastructure/.terraform/providers/registry.terraform.io/scaleway/scaleway/2.33.0/darwin_arm64/terraform-provider-scaleway_v2.33.0 b/infrastructure/.terraform/providers/registry.terraform.io/scaleway/scaleway/2.33.0/darwin_arm64/terraform-provider-scaleway_v2.33.0 new file mode 100755 index 0000000..3d2fcb1 Binary files /dev/null and b/infrastructure/.terraform/providers/registry.terraform.io/scaleway/scaleway/2.33.0/darwin_arm64/terraform-provider-scaleway_v2.33.0 differ diff --git a/infrastructure/app/picnicdouille.tf b/infrastructure/app/picnicdouille.tf new file mode 100644 index 0000000..6a0329f --- /dev/null +++ b/infrastructure/app/picnicdouille.tf @@ -0,0 +1,34 @@ +terraform { + required_providers { + scaleway = { + source = "scaleway/scaleway" + } + } + required_version = ">= 0.13" +} + +provider "scaleway" { + zone = "fr-par-1" + region = "fr-par" +} + +resource scaleway_container_namespace main { + name = "picnicdouille-app" + description = "application de l'équipe rose pour tirer au sort" +} + +resource scaleway_container main { + name = "picnicdouille-container" + description = "environment variables test" + namespace_id = scaleway_container_namespace.main.id + registry_image = "${scaleway_container_namespace.main.registry_endpoint}/alpine:test" + port = 5000 + cpu_limit = 70 + memory_limit = 128 + min_scale = 1 + max_scale = 2 + privacy = "private" + protocol = "http1" + deploy = true +} + diff --git a/infrastructure/main.tf b/infrastructure/main.tf new file mode 100644 index 0000000..cfdb80d --- /dev/null +++ b/infrastructure/main.tf @@ -0,0 +1,18 @@ + +module "app" { + source = "./app" +} + +terraform { + required_providers { + scaleway = { + source = "scaleway/scaleway" + } + } + required_version = ">= 0.13" +} + +provider "scaleway" { + zone = "fr-par-1" + region = "fr-par" +} diff --git a/infrastructure/terraform.tfstate b/infrastructure/terraform.tfstate new file mode 100644 index 0000000..52a17a6 --- /dev/null +++ b/infrastructure/terraform.tfstate @@ -0,0 +1,38 @@ +{ + "version": 4, + "terraform_version": "1.6.4", + "serial": 4, + "lineage": "bf607824-72dd-1aaa-1032-de58b905ca0a", + "outputs": {}, + "resources": [ + { + "module": "module.app", + "mode": "managed", + "type": "scaleway_container_namespace", + "name": "main", + "provider": "module.app.provider[\"registry.terraform.io/scaleway/scaleway\"]", + "instances": [ + { + "schema_version": 0, + "attributes": { + "description": "application de l'équipe rose pour tirer au sort", + "destroy_registry": false, + "environment_variables": null, + "id": "fr-par/f6c18f69-e32c-4530-b4b6-a39a895c1d37", + "name": "picnicdouille-app", + "organization_id": "db28676e-35db-4caf-ad4e-91219b4e57de", + "project_id": "db28676e-35db-4caf-ad4e-91219b4e57de", + "region": "fr-par", + "registry_endpoint": "rg.fr-par.scw.cloud/funcscwpicnicdouilleappe5tbjgmc", + "registry_namespace_id": "5be7bae4-b4f4-4b74-a86a-8072de8719cc", + "secret_environment_variables": null, + "timeouts": null + }, + "sensitive_attributes": [], + "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDAsImRlZmF1bHQiOjMwMDAwMDAwMDAwMCwiZGVsZXRlIjozMDAwMDAwMDAwMDAsInJlYWQiOjMwMDAwMDAwMDAwMCwidXBkYXRlIjozMDAwMDAwMDAwMDB9fQ==" + } + ] + } + ], + "check_results": null +} diff --git a/infrastructure/terraform.tfstate.backup b/infrastructure/terraform.tfstate.backup new file mode 100644 index 0000000..d7c58de --- /dev/null +++ b/infrastructure/terraform.tfstate.backup @@ -0,0 +1,9 @@ +{ + "version": 4, + "terraform_version": "1.6.4", + "serial": 1, + "lineage": "bf607824-72dd-1aaa-1032-de58b905ca0a", + "outputs": {}, + "resources": [], + "check_results": null +}