-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
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
error configuring Terraform AWS Provider #14450
Comments
but i didn't have any session token details in my config file |
@RamanaChowdam If I had to guess, I think the issue is with having a null/None value in your config file and not specifically tied to a session token (if you run an ASCII to text converter for |
I had a fairly new awscli installation and my
My credentials where in The error message is pretty brutal though. |
So this also breaks when you have valid config i.e. in
Which sends aws command output to STDOUT. Am I going to have comment this out every time I wish to run terraform vs awscli? |
Hi folks 👋 Any issues with parsing AWS configuration files, such as incorrect handling with certain options or hard to understand |
Hi, It might be a matter of updating the dependencies on the project, this problem should already have been fixed as of version 1.35 of the Go SDK. Here's the PR that fixes it. |
@KaibaLopez This doesn't seem to be the case: aws/aws-sdk-go#3756 (comment) |
The issue can be fixed if one adds a newline at the end of their .aws/config file: aws/aws-sdk-go#3756 (comment) |
I had this problem due to some junk characters in the config file |
Marking this issue as stale due to inactivity. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed. Maintainers can also remove the stale label. If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you! |
This issue may be stale, but it is still a problem. |
i have Terraform v0.12.28
when i run terraform apply and plan it giving below error
error configuring Terraform AWS Provider: Error creating AWS session: SharedConfigLoadError: failed to load config file, /home/wavemaker/.aws/config
caused by: INIParseError: invalid state with ASTKind {completed_stmt {0 NONE 0 []} false [{section_stmt {1 STRING 0 [78 111 110 101]} true []}]} and TokenType op
on main.tf line 1, in provider "aws":
1: provider "aws" {
but i am passing access_key and secret_key using env variables to the terraform main file
The text was updated successfully, but these errors were encountered: