Difference between revisions of "Dynamic Credentials with the AWS Provider"
Jump to navigation
Jump to search
(19 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
* https://developer.hashicorp.com/terraform/cloud-docs/workspaces/dynamic-provider-credentials/aws-configuration | * https://developer.hashicorp.com/terraform/cloud-docs/workspaces/dynamic-provider-credentials/aws-configuration | ||
− | * | + | * https://app.terraform.io |
− | * [[ | + | |
+ | * [[Bootstrapping trust between a TFC workspace and AWS]] | ||
== Example == | == Example == | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | {{tfc_aws_dynamic_credentials example}} | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== Related == | == Related == | ||
− | * [[aws_iam_access_key]] | + | * <code>[[aws_iam_access_key]]</code> |
− | * [[AWS_SHARED_CREDENTIALS_FILE]] | + | * <code>[[AWS_SHARED_CREDENTIALS_FILE]]</code> |
− | * [[AWS_CONFIG_FILE]] | + | * <code>[[AWS_CONFIG_FILE]]</code> |
− | * [[OIDC Identity Provider]] | + | * <code>[[TFC_AWS_PROVIDER_AUTH]]</code> |
+ | * <code>[[TFC_AWS_RUN_ROLE_ARN]]</code> | ||
+ | * <code>[[OIDC Identity Provider]]</code> | ||
+ | * <code>[[Creating an IAM OIDC provider for your EKS cluster]]</code> | ||
+ | * <code>[[aws iam create-open-id-connect-provider --url]]</code> | ||
+ | * <code>[[aws.workload.identity]], [[TFC_AWS_WORKLOAD_IDENTITY_AUDIENCE]]</code> | ||
+ | * [[Terraform Dynamic Provider Credentials]] | ||
+ | * [[Terraform module: Github-oidc-provider]] | ||
== See also == | == See also == |
Latest revision as of 13:25, 12 June 2024
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_key
AWS_SHARED_CREDENTIALS_FILE
AWS_CONFIG_FILE
TFC_AWS_PROVIDER_AUTH
TFC_AWS_RUN_ROLE_ARN
OIDC Identity Provider
Creating an IAM OIDC provider for your EKS cluster
aws iam create-open-id-connect-provider --url
aws.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
Advertising: