mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-07-06 10:12:39 +00:00
Support specifying project explicitly on the sql ssl resource (#3003)
<!-- This change is generated by MagicModules. --> /cc @chrisst
This commit is contained in:
parent
20391bd842
commit
fb588604dc
|
@ -5,7 +5,7 @@ import (
|
||||||
"log"
|
"log"
|
||||||
|
|
||||||
"github.com/hashicorp/terraform/helper/schema"
|
"github.com/hashicorp/terraform/helper/schema"
|
||||||
"google.golang.org/api/sqladmin/v1beta4"
|
sqladmin "google.golang.org/api/sqladmin/v1beta4"
|
||||||
)
|
)
|
||||||
|
|
||||||
func resourceSqlSslCert() *schema.Resource {
|
func resourceSqlSslCert() *schema.Resource {
|
||||||
|
@ -29,6 +29,13 @@ func resourceSqlSslCert() *schema.Resource {
|
||||||
ForceNew: true,
|
ForceNew: true,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
"project": {
|
||||||
|
Type: schema.TypeString,
|
||||||
|
Optional: true,
|
||||||
|
Computed: true,
|
||||||
|
ForceNew: true,
|
||||||
|
},
|
||||||
|
|
||||||
"cert": {
|
"cert": {
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Computed: true,
|
Computed: true,
|
||||||
|
@ -133,6 +140,7 @@ func resourceSqlSslCertRead(d *schema.ResourceData, meta interface{}) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
d.Set("instance", sslCerts.Instance)
|
d.Set("instance", sslCerts.Instance)
|
||||||
|
d.Set("project", project)
|
||||||
d.Set("sha1_fingerprint", sslCerts.Sha1Fingerprint)
|
d.Set("sha1_fingerprint", sslCerts.Sha1Fingerprint)
|
||||||
d.Set("common_name", sslCerts.CommonName)
|
d.Set("common_name", sslCerts.CommonName)
|
||||||
d.Set("cert", sslCerts.Cert)
|
d.Set("cert", sslCerts.Cert)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user