How can I list all environment variables configured in Terraform? I configured AWS provider in Terraform by providing an access key and secret as environment variables according to the documentation:
$ export AWS_ACCESS_KEY_ID=&quot;anaccesskey&quot; 
$ export AWS_SECRET_ACCESS_KEY=&quot;asecretkey&quot;
I now want to view those variables on the console as well as other environment variables configured on my system but I can't find the right command.
Update: I found out that I didn't configure the AWS provider like I thought. The AWS CLI was already configured with my credentials stored in AWS credentials file: ~/.aws/credentials.
On your command line, run printenv
Reference: https://man7.org/linux/man-pages/man1/printenv.1.html