Fix indentation of provider_gen_config.yml to skip ignored attributes

This commit is contained in:
Oscar Hermoso
2024-08-12 20:49:29 +08:00
parent 375fee8674
commit ec743c932a
7 changed files with 46 additions and 21005 deletions
+2 -3
View File
@@ -1,4 +1,4 @@
# binary-lane-terraform-provider
# terraform-provider-binarylane
See the examples in the [examples directory](./examples/basic/main.tf).
@@ -22,7 +22,6 @@ If somehow you use this in production I would be pretty impressed.
## Local development
Based on [this example from the terraform docs](https://developer.hashicorp.com/terraform/plugin/code-generation/workflow-example),
1. `go mod tidy`
@@ -49,7 +48,7 @@ provider_installation {
dev_overrides {
# Example GOBIN path, will need to be replaced with your own GOBIN path. Default is $GOPATH/bin
"hashicorp.com/oscarhermoso/binarylane" = "/home/oscarhermoso/Git/terraform-provider-binarylane/bin"
"oscarhermoso/binarylane" = "/home/oscarhermoso/Git/terraform-provider-binarylane/bin"
}
direct {}
+24
View File
@@ -0,0 +1,24 @@
# This file is maintained automatically by "terraform init".
# Manual edits may be lost in future updates.
provider "registry.terraform.io/oscarhermoso/binarylane" {
version = "0.1.0"
hashes = [
"h1:M/GVWGdH+W26pw8o6O2zvzorVZvi0hZbaKCT8scoqT8=",
"zh:07c855b20ad789e78602918ce1565b5e1ac411df92b1f9f4a654ef3da77bcd1e",
"zh:09530d6532dcff2ccdf48de853d7144f0c66d7be203883461b256f52e719c06d",
"zh:2c118c8c7572f60739b4f0ac5cecbadd56636fa63f7f4e7f0c6cdec427fbd609",
"zh:3a51045b18ec6f7bd0ff642370f45b7ba936afa9d0e79ff52481a447adb99b66",
"zh:64608398b9da27f5b1efa2d164fc20e4cb924ebef6cdf80da7b4329f344dbf13",
"zh:a9808dacc075dd53774fe559862f22b9ab02a22b789dde59cff0ea3b42f37c73",
"zh:b22dc91a867a470da75f8887f432938cf5db314943c1f90203eff39ce8e24e85",
"zh:c110e831eafd8a138f9af9efc1730b8c3295cec54561918676744b0f6968498c",
"zh:cd4a98509c740beff50979c1e50c00e5b3915bf35185c89b9f306a2432b54a2c",
"zh:cf3b046ec96b5140fb6dacceead8d9ed723debcf580462ab93a5ed1578eaeab8",
"zh:d395d9a1d681980f0068e2146a4961e0a39c572ffdf131d5d5c1f3a91296a5e8",
"zh:eaf6c069dc35c9a6c97502b1b283d4a815730f70b0cfb637d26e29f2a70c2a51",
"zh:f26e0763dbe6a6b2195c94b44696f2110f7f55433dc142839be16b9697fa5597",
"zh:f31a253fc4c7f0d37ec2bfe2ca2e40c7c51a0db355039d56123160c97bdf7c90",
"zh:fdbadc51fc6c9ac6f2a68d5846fdb743be7b0344307c9dbf6d90252753894633",
]
}
+2 -2
View File
@@ -1,7 +1,7 @@
terraform {
required_providers {
binarylane = {
source = "hashicorp.com/oscarhermoso/binarylane"
source = "oscarhermoso/binarylane"
}
}
}
@@ -12,7 +12,7 @@ provider "binarylane" {
}
resource "binarylane_server" "example" {
name = "example"
name = "tf-example"
region = "per" # or "syd", "mel", "bne", "sin"
image = "ubuntu-24.04"
size = "std-min"
+1 -1
View File
@@ -97,7 +97,7 @@ func (r *serverResource) Create(ctx context.Context, req resource.CreateRequest,
}
if plan.Password.IsNull() {
plan.Password = types.StringUnknown()
plan.Password = types.StringNull()
} else {
body.Password = plan.Password.ValueStringPointer()
}
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+10 -10
View File
@@ -49,16 +49,16 @@ resources:
generated and emailed to the account email address.
sensitive: true
optional_required: optional
ignores:
- ipv6
- licenses
- links
- options
- server
- ssh_keys
- vpc_id
- user_data
- port_blocking
ignores:
- ipv6
- licenses
- links
- options
- server
- ssh_keys
- vpc_id
- user_data
- port_blocking
data_sources:
server: