Difference between revisions of "Dynamic Credentials with the AWS Provider"

From wikieduonline
Jump to navigation Jump to search
Line 19: Line 19:
  
  
  provider "aws" {
+
  [[provider "was"]] {
 
   shared_config_files = [var.tfc_aws_dynamic_credentials.default.shared_config_file]
 
   shared_config_files = [var.tfc_aws_dynamic_credentials.default.shared_config_file]
 
  }
 
  }

Revision as of 16:54, 20 February 2024

  • TFC_AWS_PROVIDER_AUTH
  • TFC_AWS_RUN_ROLE_ARN


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 "was" {
  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]
}

Related


See also

Advertising: