-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,9 @@ | ||
module github.com/terraform-providers/terraform-provider-scaleway | ||
|
||
require ( | ||
github.com/beevik/etree v0.0.0-20171015221209-af219c0c7ea1 // indirect | ||
github.com/chzyer/logex v1.1.11-0.20160617073814-96a4d311aa9b // indirect | ||
github.com/coreos/bbolt v1.3.1-coreos.1 // indirect | ||
github.com/go-ini/ini v1.25.4 // indirect | ||
github.com/gopherjs/gopherjs v0.0.0-20181103185306-d547d1d9531e // indirect | ||
github.com/hashicorp/atlas-go v0.0.0-20161107204910-1792bd8de119 // indirect | ||
github.com/hashicorp/go-immutable-radix v1.0.0 // indirect | ||
github.com/hashicorp/go-retryablehttp v0.5.2 | ||
github.com/hashicorp/go-sockaddr v1.0.0 // indirect | ||
github.com/hashicorp/serf v0.8.2-0.20171022020050-c20a0b1b1ea9 // indirect | ||
github.com/hashicorp/terraform v0.12.0-rc1 | ||
github.com/jen20/awspolicyequivalence v0.0.0-20170831201602-3d48364a137a // indirect | ||
github.com/masterzen/azure-sdk-for-go v0.0.0-20161014135628-ee4f0065d00c // indirect | ||
github.com/miekg/dns v1.0.14 // indirect | ||
github.com/mitchellh/go-homedir v1.0.0 | ||
github.com/nicolai86/scaleway-sdk v0.0.0-20181024210327-b20018e944c4 | ||
github.com/prometheus/common v0.0.0-20181126121408-4724e9255275 // indirect | ||
github.com/prometheus/procfs v0.0.0-20181204211112-1dc9a6cbc91a // indirect | ||
github.com/ryanuber/columnize v0.0.0-20161220214920-0fbbb3f0e3fb // indirect | ||
github.com/satori/uuid v0.0.0-20160927100844-b061729afc07 // indirect | ||
github.com/smartystreets/assertions v0.0.0-20190116191733-b6c0e53d7304 // indirect | ||
github.com/smartystreets/goconvey v0.0.0-20190222223459-a17d461953aa // indirect | ||
github.com/terraform-providers/terraform-provider-aws v1.29.0 // indirect | ||
github.com/terraform-providers/terraform-provider-template v1.0.0 // indirect | ||
github.com/terraform-providers/terraform-provider-tls v1.2.0 // indirect | ||
golang.org/x/crypto v0.0.0-20190426145343-a29dc8fdc734 | ||
) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
terraform { | ||
required_version = "~> 0.12" | ||
} | ||
|
||
provider "scaleway" { | ||
organization = "<YOUR-ORGANIZATION-ID>" | ||
token = "<YOUR-SECRET-TOKEN>" | ||
region = "par1" | ||
} | ||
|
||
resource "scaleway_ip" "ip" { | ||
server = "${scaleway_server.test.id}" | ||
} | ||
|
||
resource "scaleway_server" "test" { | ||
name = "test" | ||
image = "aecaed73-51a5-4439-a127-6d8229847145" | ||
type = "C2S" | ||
} | ||
|
||
resource "scaleway_volume" "test" { | ||
name = "test" | ||
size_in_gb = 50 | ||
type = "l_ssd" | ||
} | ||
|
||
resource "scaleway_volume_attachment" "test" { | ||
server = "${scaleway_server.test.id}" | ||
volume = "${scaleway_volume.test.id}" | ||
} | ||
|
||
resource "scaleway_security_group" "http" { | ||
name = "http" | ||
description = "allow HTTP and HTTPS traffic" | ||
} | ||
|
||
resource "scaleway_security_group_rule" "http_accept" { | ||
security_group = "${scaleway_security_group.http.id}" | ||
|
||
action = "accept" | ||
direction = "inbound" | ||
ip_range = "0.0.0.0/0" | ||
protocol = "TCP" | ||
port = 80 | ||
} | ||
|
||
resource "scaleway_security_group_rule" "https_accept" { | ||
security_group = "${scaleway_security_group.http.id}" | ||
|
||
action = "accept" | ||
direction = "inbound" | ||
ip_range = "0.0.0.0/0" | ||
protocol = "TCP" | ||
port = 443 | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.