We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug Different results with aws provider profile and AWS_PROFILE env variable
System (please complete the following information):
To Reproduce Steps to reproduce the behavior:
AWS_PROFILE=env-qa terraform apply
Expected behavior As I understand it should work in the same way
Additional context terraform config:
variable "aws_profile" { default = "env-qa" }
terraform { required_version = ">= 1.2.3" required_providers { aws = { source = "hashicorp/aws" version = "4.23.0" } } backend "s3" { profile = "env-prod" encrypt = true dynamodb_table = "terraform-lock" bucket = "env-terraform" key = "infra/main.tf" region = "region" } }
provider "aws" { profile = var.aws_profile default_tags { tags = { Service = "service" Environment = local.env Owner = "terraform" } } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
Different results with aws provider profile and AWS_PROFILE env variable
System (please complete the following information):
To Reproduce
Steps to reproduce the behavior:
AWS_PROFILE=env-qa terraform apply
Expected behavior
As I understand it should work in the same way
Additional context
terraform config:
variable "aws_profile" {
default = "env-qa"
}
terraform {
required_version = ">= 1.2.3"
required_providers {
aws = {
source = "hashicorp/aws"
version = "4.23.0"
}
}
backend "s3" {
profile = "env-prod"
encrypt = true
dynamodb_table = "terraform-lock"
bucket = "env-terraform"
key = "infra/main.tf"
region = "region"
}
}
provider "aws" {
profile = var.aws_profile
default_tags {
tags = {
Service = "service"
Environment = local.env
Owner = "terraform"
}
}
}
The text was updated successfully, but these errors were encountered: