terraform/builtin/providers
Raphael Randschau 9081cabd6e Add scaleway provider (#7331)
* Add scaleway provider

this PR allows the entire scaleway stack to be managed with terraform

example usage looks like this:

```
provider "scaleway" {
  api_key = "snap"
  organization = "snip"
}

resource "scaleway_ip" "base" {
  server = "${scaleway_server.base.id}"
}

resource "scaleway_server" "base" {
  name = "test"
  # ubuntu 14.04
  image = "aecaed73-51a5-4439-a127-6d8229847145"
  type = "C2S"
}

resource "scaleway_volume" "test" {
  name = "test"
  size_in_gb = 20
  type = "l_ssd"
}

resource "scaleway_volume_attachment" "test" {
  server = "${scaleway_server.base.id}"
  volume = "${scaleway_volume.test.id}"
}

resource "scaleway_security_group" "base" {
  name = "public"
  description = "public gateway"
}

resource "scaleway_security_group_rule" "http-ingress" {
  security_group = "${scaleway_security_group.base.id}"

  action = "accept"
  direction = "inbound"
  ip_range = "0.0.0.0/0"
  protocol = "TCP"
  port = 80
}

resource "scaleway_security_group_rule" "http-egress" {
  security_group = "${scaleway_security_group.base.id}"

  action = "accept"
  direction = "outbound"
  ip_range = "0.0.0.0/0"
  protocol = "TCP"
  port = 80
}
```

Note that volume attachments require the server to be stopped, which can lead to
downtimes of you attach new volumes to already used servers

* Update IP read to handle 404 gracefully

* Read back resource on update

* Ensure IP detachment works as expected

Sadly this is not part of the official scaleway api just yet

* Adjust detachIP helper

based on feedback from @QuentinPerez in
https://github.com/scaleway/scaleway-cli/pull/378

* Cleanup documentation

* Rename api_key to access_key

following @stack72 suggestion and rename the provider api_key for more clarity

* Make tests less chatty by using custom logger
2016-07-13 21:03:41 +01:00
..
atlas provider/atlas: Add a Atlas Artifact Data Source (#7419) 2016-07-01 10:29:53 -05:00
aws provider/aws: Fix IDs in aws_iam_policy_document 2016-07-13 12:10:20 -06:00
azure provider/azure: Fix management client upgrade 2016-06-01 20:01:31 -05:00
azurerm Merge pull request #7620 from hashicorp/import-arm-dnszone 2016-07-13 09:43:05 -06:00
chef
clc [clc] add missing ForceNew on several fields 2016-05-11 11:39:35 -07:00
cloudflare provider/cloudflare: Add migration for v1 to v4 API libraries (#6969) 2016-06-07 14:29:25 -05:00
cloudstack Fix refresing an IP when it’s no longer associated 2016-07-12 21:32:56 +02:00
cobbler
consul
datadog provider/datadog: add timeboard resource. upgrade vendored go-datadog-api to support read-only option. (#6900) 2016-06-15 18:44:49 +02:00
digitalocean provider/digitalocean: adds a volume resource (#7560) 2016-07-13 15:36:37 +01:00
dme
dnsimple
docker Add `destroy_grace_seconds` option to stop container before delete (#7513) 2016-07-11 16:03:02 +01:00
dyn
fastly provider/fastly: Add support for Cache Settings (#6781) 2016-05-23 15:07:00 -05:00
github +github_repository_collaborator (#6861) 2016-06-02 01:06:35 +01:00
google provider/google: Provide valid config in acctest 2016-05-23 17:20:19 -05:00
grafana Grafana Provider, with Data Source and Dashboard resources (#6206) 2016-05-20 10:20:17 +01:00
heroku
influxdb
librato
logentries provider/logentries: Implementing logentries provider (#7067) 2016-07-12 14:14:39 +01:00
mailgun
mysql provider/mysql: Empty Provider Credentials Caused Panic 2016-06-17 11:32:30 +01:00
null provider/null: null_data_source data source 2016-05-14 08:26:37 -07:00
openstack Setting admin_state_up default to true 2016-07-12 18:08:16 -07:00
packet
postgresql
powerdns
random provider/random: random_shuffle resource 2016-05-14 16:48:45 -07:00
rundeck
scaleway Add scaleway provider (#7331) 2016-07-13 21:03:41 +01:00
softlayer
statuscake
template provider/template: validate vars are primitives 2016-07-11 16:01:05 -05:00
terraform provider/template: convert resources to data sources 2016-07-08 17:11:17 +01:00
test terraform: another set of ignore_changes fixes 2016-07-08 16:48:23 -05:00
tls Convert tls_cert_request to be a data source 2016-07-02 08:07:53 -07:00
triton provider/triton: Update base packages in tests (#7593) 2016-07-11 17:23:09 -06:00
ultradns
vcd
vsphere vSphere Provider - Fix destroy when vm is powered off or has networks (#7206) 2016-07-12 09:05:02 +01:00