mirror of
https://github.com/opentffoundation/opentf.git
synced 2025-12-25 01:00:16 -05:00
Backend/S3: Add support for custom CA bundle (#762)
Signed-off-by: Marcin Białoń <mbialon@spacelift.io>
This commit is contained in:
@@ -238,6 +238,11 @@ func (b *Backend) ConfigSchema(context.Context) *configschema.Block {
|
||||
Optional: true,
|
||||
Description: "Use the legacy authentication workflow, preferring environment variables over backend configuration.",
|
||||
},
|
||||
"custom_ca_bundle": {
|
||||
Type: cty.String,
|
||||
Optional: true,
|
||||
Description: "File containing custom root and intermediate certificates. Can also be configured using the `AWS_CA_BUNDLE` environment variable.",
|
||||
},
|
||||
"assume_role": {
|
||||
NestedType: &configschema.Object{
|
||||
Nesting: configschema.NestingSingle,
|
||||
@@ -543,6 +548,7 @@ func (b *Backend) Configure(obj cty.Value) tfdiags.Diagnostics {
|
||||
{Name: "APN", Version: "1.0"},
|
||||
{Name: httpclient.DefaultApplicationName, Version: version.String()},
|
||||
},
|
||||
CustomCABundle: stringAttrDefaultEnvVar(obj, "custom_ca_bundle", "AWS_CA_BUNDLE"),
|
||||
}
|
||||
|
||||
if val, ok := boolAttrOk(obj, "use_legacy_workflow"); ok {
|
||||
|
||||
Reference in New Issue
Block a user