hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.76k stars 9.12k forks source link

[Enhancement]: Print to STDOUT AWS_PROFILE used #37190

Open EugenKon opened 5 months ago

EugenKon commented 5 months ago

Description

If current user uses different AWS accounts and often switches between then it could be possible to forget update AWS_PROFILE properly. It would be nice to see info about the account used for plan:

eg


Current AWS profile: XXXX

Terraform used the selected providers to generate the following execution plan. Resource
actions are indicated with the following symbols:
  + create
  ~ update in-place

Affected Resource(s) and/or Data Source(s)

None

Potential Terraform Configuration

No response

References

No response

Would you like to implement a fix?

None

github-actions[bot] commented 5 months ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue

luiszaelot commented 1 month ago

@EugenKon you can check that setting the TF_LOG=DEBUG env var.