Dynamic Credentials with the AWS Provider
Jump to navigation
Jump to search
Example[edit]
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] }
Related[edit]
aws_iam_access_keyAWS_SHARED_CREDENTIALS_FILEAWS_CONFIG_FILETFC_AWS_PROVIDER_AUTHTFC_AWS_RUN_ROLE_ARNOIDC Identity ProviderCreating an IAM OIDC provider for your EKS clusteraws iam create-open-id-connect-provider --urlaws.workload.identity, TFC_AWS_WORKLOAD_IDENTITY_AUDIENCE- Terraform Dynamic Provider Credentials
- Terraform module: Github-oidc-provider
See also[edit]
- Terraform Cloud (TFC), Terraform Cloud Agents (Business version),
terraform login,execution modes,terraform_remote_state, Terraform cloud block, Terraform Cloud Workflows, Terraform organization,TF_CLOUD_ORGANIZATION, Dynamic Provider Credentials, Bootstrapping trust between a TFC workspace and AWS, Terramate.io, Atlantis
Advertising: