This commit is contained in:
Elbaz 2023-08-21 18:24:40 +03:00
parent 15ae0bc167
commit c10a300b58
2 changed files with 6 additions and 6 deletions

View File

@ -45,27 +45,27 @@ func New() backend.Backend {
Type: schema.TypeString,
Optional: true,
Description: "Name of the automatically managed Postgres schema to store state",
DefaultFunc: schema.EnvDefaultFunc("PG_SCHEMA_NAME", "terraform_remote_state"),
DefaultFunc: schema.EnvDefaultFunc("PG_SCHEMA_NAME", "opentf_remote_state"),
},
"skip_schema_creation": {
Type: schema.TypeBool,
Optional: true,
Description: "If set to `true`, Terraform won't try to create the Postgres schema",
Description: "If set to `true`, OpenTF won't try to create the Postgres schema",
DefaultFunc: defaultBoolFunc("PG_SKIP_SCHEMA_CREATION", false),
},
"skip_table_creation": {
Type: schema.TypeBool,
Optional: true,
Description: "If set to `true`, Terraform won't try to create the Postgres table",
Description: "If set to `true`, OpenTF won't try to create the Postgres table",
DefaultFunc: defaultBoolFunc("PG_SKIP_TABLE_CREATION", false),
},
"skip_index_creation": {
Type: schema.TypeBool,
Optional: true,
Description: "If set to `true`, Terraform won't try to create the Postgres index",
Description: "If set to `true`, OpenTF won't try to create the Postgres index",
DefaultFunc: defaultBoolFunc("PG_SKIP_INDEX_CREATION", false),
},
},

View File

@ -394,8 +394,8 @@ func (b *Backend) Configure(obj cty.Value) tfdiags.Diagnostics {
Token: stringAttr(obj, "token"),
UserAgentProducts: []*awsbase.UserAgentProduct{
{Name: "APN", Version: "1.0"},
{Name: "HashiCorp", Version: "1.0"},
{Name: "Terraform", Version: version.String()},
{Name: "placeholderplaceholderplaceholder", Version: "1.0"},
{Name: "OpenTF", Version: version.String()},
},
}