Template:Tfc aws dynamic credentials example

From wikieduonline
Revision as of 19:00, 20 February 2024 by Welcome (talk | contribs) (Created page with " variable "tfc_aws_dynamic_credentials" { description = "Object containing AWS dynamic credentials configuration" type = object({ default = object({ shared...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
variable "tfc_aws_dynamic_credentials" {
 description = "Object containing AWS dynamic credentials configuration"
 type = object({
   default = object({
     shared_config_file = string
   })
   aliases = map(object({
     shared_config_file = string
   }))
 })
}

provider "aws" {
  shared_config_files = [var.tfc_aws_dynamic_credentials.default.shared_config_file]
}

provider "aws" {
  alias = "ALIAS1"
  shared_config_files = [var.tfc_aws_dynamic_credentials.aliases["ALIAS1"].shared_config_file]
}

Advertising: