Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #14: make changing elements in the subject force a new resource #18

Merged
merged 1 commit into from
Apr 19, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ If you wish to work on the provider, you'll first need [Go](http://www.golang.or
To compile the provider, run `make build`. This will build the provider and put the provider binary in the `$GOPATH/bin` directory.

```sh
$ make bin
$ make build
...
$ $GOPATH/bin/terraform-provider-$PROVIDER_NAME
...
Expand Down
9 changes: 9 additions & 0 deletions tls/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,41 +74,50 @@ var nameSchema *schema.Resource = &schema.Resource{
"organization": &schema.Schema{
Type: schema.TypeString,
Optional: true,
ForceNew: true,
},
"common_name": &schema.Schema{
Type: schema.TypeString,
Optional: true,
ForceNew: true,
},
"organizational_unit": &schema.Schema{
Type: schema.TypeString,
Optional: true,
ForceNew: true,
},
"street_address": &schema.Schema{
Type: schema.TypeList,
Optional: true,
Elem: &schema.Schema{
Type: schema.TypeString,
},
ForceNew: true,
},
"locality": &schema.Schema{
Type: schema.TypeString,
Optional: true,
ForceNew: true,
},
"province": &schema.Schema{
Type: schema.TypeString,
Optional: true,
ForceNew: true,
},
"country": &schema.Schema{
Type: schema.TypeString,
Optional: true,
ForceNew: true,
},
"postal_code": &schema.Schema{
Type: schema.TypeString,
Optional: true,
ForceNew: true,
},
"serial_number": &schema.Schema{
Type: schema.TypeString,
Optional: true,
ForceNew: true,
},
},
}