Skip to content
This repository has been archived by the owner on Aug 12, 2020. It is now read-only.

Commit

Permalink
Terraform v0.12 (selectel#50)
Browse files Browse the repository at this point in the history
* Vendor: update Terraform to v0.12.0-beta1

Update Terraform and all related dependencies.

* Fix testing fixtures for v0.12.0-beta1 syntax

Update syntax in testing fixtures to allow to run tests with Terraform
v0.12.0-beta1.

* Fix examples for v0.12.0-beta1 syntax

Update syntax in examples to allow using it with Terraform
v0.12.0-beta1.

* Fix documentation for v0.12.0-beta1 syntax

Update syntax in documentation to allow using it with Terraform
v0.12.0-beta1.
  • Loading branch information
ozerovandrei committed Mar 14, 2019
1 parent 97d043d commit 1101a83
Show file tree
Hide file tree
Showing 1,450 changed files with 215,533 additions and 38,279 deletions.
2 changes: 2 additions & 0 deletions examples/project-with-floating-ips/README.md
Expand Up @@ -11,3 +11,5 @@ to manage OpenStack instances inside the created project.

To run this example you need to set `SEL_TOKEN` variable with a token key string
that you can get from the [apikeys](https://my.selectel.ru/profile/apikeys) page.

You can find additional examples in the [selectel/terraform-examples](https://github.com/selectel/terraform-examples).
89 changes: 42 additions & 47 deletions examples/project-with-floating-ips/main.tf
@@ -1,52 +1,47 @@
resource "selectel_vpc_project_v2" "webservice" {
name = "webservice"
quotas = [
{
resource_name = "compute_cores"
resource_quotas = [
{
region = "ru-1"
zone = "ru-1a"
value = 4
},
{
region = "ru-2"
zone = "ru-2a"
value = 6
},
]
},
{
resource_name = "compute_ram"
resource_quotas = [
{
region = "ru-1"
zone = "ru-1a"
value = 10240
},
{
region = "ru-2"
zone = "ru-2a"
value = 8192
},
]
},
{
resource_name = "volume_gigabytes_fast"
resource_quotas = [
{
region = "ru-1"
zone = "ru-1a"
value = 10
},
{
region = "ru-2"
zone = "ru-2a"
value = 8
}
]
name = "webservice"

quotas {
resource_name = "compute_cores"
resource_quotas {
region = "ru-1"
zone = "ru-1a"
value = 4
}
resource_quotas {
region = "ru-2"
zone = "ru-2a"
value = 6
}
}

quotas {
resource_name = "compute_ram"
resource_quotas {
region = "ru-1"
zone = "ru-1a"
value = 10240
}
resource_quotas {
region = "ru-2"
zone = "ru-2a"
value = 8192
}
}

quotas {
resource_name = "volume_gigabytes_fast"
resource_quotas {
region = "ru-1"
zone = "ru-1a"
value = 10
}
resource_quotas {
region = "ru-2"
zone = "ru-2a"
value = 8
}
]
}
}

resource "selectel_vpc_floatingip_v2" "webservice_floating_ip_ru1_1" {
Expand Down
74 changes: 22 additions & 52 deletions go.mod
@@ -1,57 +1,27 @@
module github.com/terraform-providers/terraform-provider-selectel

require (
github.com/agext/levenshtein v1.2.1 // indirect
github.com/apparentlymart/go-cidr v0.0.0-20170616213631-2bd8b58cf427 // indirect
github.com/apparentlymart/go-textseg v1.0.0 // indirect
github.com/armon/go-radix v1.0.0 // indirect
github.com/aws/aws-sdk-go v1.15.47 // indirect
github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d // indirect
github.com/bgentry/speakeasy v0.1.0 // indirect
github.com/blang/semver v0.0.0-20170202183821-4a1e882c79dc // indirect
github.com/davecgh/go-spew v1.1.0 // indirect
github.com/go-ini/ini v1.38.3 // indirect
github.com/go-test/deep v1.0.1 // indirect
github.com/gopherjs/gopherjs v0.0.0-20181103185306-d547d1d9531e // indirect
github.com/hashicorp/errwrap v0.0.0-20141028054710-7554cd9344ce // indirect
github.com/hashicorp/go-cleanhttp v0.0.0-20171130225243-06c9ea3a335b // indirect
github.com/hashicorp/go-getter v0.0.0-20180327010114-90bb99a48d86 // indirect
github.com/hashicorp/go-hclog v0.0.0-20170716174523-b4e5765d1e5f // indirect
github.com/hashicorp/go-multierror v0.0.0-20150916205742-d30f09973e19 // indirect
github.com/hashicorp/go-plugin v0.0.0-20180125190438-e53f54cbf51e // indirect
github.com/hashicorp/go-safetemp v1.0.0 // indirect
github.com/hashicorp/go-uuid v0.0.0-20160120003506-36289988d83c // indirect
github.com/hashicorp/go-version v0.0.0-20171129150820-4fe82ae3040f // indirect
github.com/hashicorp/hcl v0.0.0-20170504190234-a4b07c25de5f // indirect
github.com/hashicorp/hcl2 v0.0.0-20180308163058-5f8ed954abd8 // indirect
github.com/hashicorp/hil v0.0.0-20170627220502-fa9f258a9250 // indirect
github.com/hashicorp/logutils v0.0.0-20150609070431-0dc08b1671f3 // indirect
github.com/hashicorp/terraform v0.11.8
github.com/hashicorp/yamux v0.0.0-20180917205041-7221087c3d28 // indirect
github.com/jtolds/gls v4.2.1+incompatible // indirect
github.com/kylelemons/godebug v0.0.0-20170820004349-d65d576e9348 // indirect
github.com/mattn/go-isatty v0.0.4 // indirect
github.com/mitchellh/cli v0.0.0-20171129193617-33edc47170b5 // indirect
github.com/mitchellh/copystructure v0.0.0-20170525013902-d23ffcb85de3 // indirect
github.com/mitchellh/go-homedir v0.0.0-20161203194507-b8bc1bf76747 // indirect
github.com/mitchellh/go-testing-interface v1.0.0 // indirect
github.com/mitchellh/go-wordwrap v1.0.0 // indirect
github.com/mitchellh/hashstructure v0.0.0-20160209213820-6b17d669fac5 // indirect
github.com/mitchellh/mapstructure v0.0.0-20170307201123-53818660ed49 // indirect
github.com/mitchellh/reflectwalk v0.0.0-20170726202117-63d60e9d0dbc // indirect
github.com/oklog/run v1.0.0 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/posener/complete v1.1.2 // indirect
github.com/aws/aws-sdk-go v1.17.14 // indirect
github.com/hashicorp/go-getter v1.2.0 // indirect
github.com/hashicorp/go-hclog v0.8.0 // indirect
github.com/hashicorp/go-uuid v1.0.1 // indirect
github.com/hashicorp/golang-lru v0.5.1 // indirect
github.com/hashicorp/hcl v1.0.0 // indirect
github.com/hashicorp/hcl2 v0.0.0-20190305174554-fdf8e232b64f // indirect
github.com/hashicorp/hil v0.0.0-20190212132231-97b3a9cdfa93 // indirect
github.com/hashicorp/terraform v0.12.0-beta1
github.com/hashicorp/yamux v0.0.0-20181012175058-2f1d1f20f75d // indirect
github.com/mattn/go-isatty v0.0.6 // indirect
github.com/mitchellh/go-homedir v1.1.0 // indirect
github.com/selectel/go-selvpcclient v1.7.0
github.com/smartystreets/assertions v0.0.0-20190116191733-b6c0e53d7304 // indirect
github.com/smartystreets/goconvey v0.0.0-20181108003508-044398e4856c // indirect
github.com/stretchr/testify v1.2.2
github.com/ulikunitz/xz v0.5.4 // indirect
github.com/zclconf/go-cty v0.0.0-20180302160414-49fa5e03c418 // indirect
golang.org/x/crypto v0.0.0-20170209233901-453249f01cfe // indirect
golang.org/x/net v0.0.0-20181003013248-f5e5bdd77824 // indirect
golang.org/x/sys v0.0.0-20180928133829-e4b3c5e90611 // indirect
google.golang.org/genproto v0.0.0-20180928223349-c7e5094acea1 // indirect
google.golang.org/grpc v1.15.0 // indirect
gopkg.in/ini.v1 v1.41.0 // indirect
github.com/stretchr/testify v1.3.0
github.com/ulikunitz/xz v0.5.6 // indirect
github.com/vmihailenco/msgpack v4.0.2+incompatible // indirect
github.com/zclconf/go-cty v0.0.0-20190212192503-19dda139b164 // indirect
go.opencensus.io v0.19.1 // indirect
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2 // indirect
golang.org/x/net v0.0.0-20190310074541-c10a0554eabf // indirect
golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421 // indirect
golang.org/x/sys v0.0.0-20190310054646-10058d7d4faa // indirect
google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19 // indirect
)

0 comments on commit 1101a83

Please sign in to comment.