terraform/builtin/providers/tls
Martin Atkins 804d714ff6 Restore tls_cert_request to being a managed resource
In c244e5a6 this resource was converted to a data source, but that was
a mistake since data sources are expected to produce stable results on
each run, and yet certificate requests contain a random nonce as part of
the signature.

Additionally, using the data source as a managed resource through the
provided compatibility shim was not actually working, since "Read" was
trying to parse the private key out of a SHA1 hash of the key, which is
what we place in state due to the StateFunc on that attribute.

By restoring this we restore Terraform's ability to produce all of the
parts of a basic PKI/CA, which is useful for creating dev environments
and bootstrapping PKI for production environments.
2016-09-24 12:22:07 -07:00
..
provider.go Restore tls_cert_request to being a managed resource 2016-09-24 12:22:07 -07:00
provider_test.go
resource_cert_request.go Restore tls_cert_request to being a managed resource 2016-09-24 12:22:07 -07:00
resource_cert_request_test.go Restore tls_cert_request to being a managed resource 2016-09-24 12:22:07 -07:00
resource_certificate.go
resource_locally_signed_cert.go
resource_locally_signed_cert_test.go core: Use OutputState in JSON instead of map 2016-05-18 13:25:20 -05:00
resource_private_key.go
resource_private_key_test.go core: Use OutputState in JSON instead of map 2016-05-18 13:25:20 -05:00
resource_self_signed_cert.go
resource_self_signed_cert_test.go core: Use OutputState in JSON instead of map 2016-05-18 13:25:20 -05:00
util.go