{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/6474","repository_url":"https://api.github.com/repos/hashicorp/terraform","labels_url":"https://api.github.com/repos/hashicorp/terraform/issues/6474/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/terraform/issues/6474/comments","events_url":"https://api.github.com/repos/hashicorp/terraform/issues/6474/events","html_url":"https://github.com/hashicorp/terraform/issues/6474","id":153044749,"number":6474,"title":"Terraform not reading AWS credentials file","user":{"login":"davidfic","id":753242,"avatar_url":"https://avatars.githubusercontent.com/u/753242?v=3","gravatar_id":"","url":"https://api.github.com/users/davidfic","html_url":"https://github.com/davidfic","followers_url":"https://api.github.com/users/davidfic/followers","following_url":"https://api.github.com/users/davidfic/following{/other_user}","gists_url":"https://api.github.com/users/davidfic/gists{/gist_id}","starred_url":"https://api.github.com/users/davidfic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidfic/subscriptions","organizations_url":"https://api.github.com/users/davidfic/orgs","repos_url":"https://api.github.com/users/davidfic/repos","events_url":"https://api.github.com/users/davidfic/events{/privacy}","received_events_url":"https://api.github.com/users/davidfic/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hashicorp/terraform/labels/bug","name":"bug","color":"f7c6c7"},{"url":"https://api.github.com/repos/hashicorp/terraform/labels/provider/aws","name":"provider/aws","color":"bfdadc"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-05-04T15:40:20Z","updated_at":"2016-10-22T15:31:39Z","closed_at":"2016-05-05T14:41:02Z","body":"When attempting to use the AWS provider for Terraform I am unable to only have my credentials in the credentials file. I must have them in either an environment variable or hard coded into the files. \r\n\r\nAccording to the [documentation](https://www.terraform.io/docs/providers/aws/index.html) Terraform should be able to fall back to this file to find credentials for AWS. \r\n\r\nI have verified that the credentials in my credentials file are valid.\r\n\r\n### Terraform Version\r\nTerraform v0.6.15\r\n\r\n\r\n### Debug Output\r\n\r\n> No valid credential sources found for AWS Provider.\r\n>   Please see https://terraform.io/docs/providers/aws/index.html for more information on\r\n>   providing credentials for the AWS Provider\r\n\r\n### Expected Behavior\r\nWithout hard coding credentials into the files or supplying an environment variable I expect Terraform to read the credentials stored in the credentials file and use those to authenticate with AWS\r\n\r\n### Actual Behavior\r\nTerraform fails to run plan because it can't find the proper credentials. \r\n\r\n### Steps to Reproduce\r\n\r\nUse the following test case:\r\n\r\n``` hcl\r\nprovider \"aws\" {\r\n    region  = \"us-east-1\"\r\n    shared_credentials_file=\"/Users/david/.aws/credentials\"\r\n}\r\n\r\nresource \"aws_vpc\" \"vpc\" {\r\n  cidr_block = \"10.0.0.0/16\"\r\n  enable_dns_support = true\r\n  enable_dns_hostnames = true\r\n\r\n  tags {\r\n    Name = \"test\"\r\n    Environment = \"demo\"\r\n  }\r\n\r\n  lifecycle {\r\n    create_before_destroy = true\r\n  }\r\n}\r\n```\r\n\r\n1. `terraform plan`\r\n\r\nYou will get an error showing no Valid credential sources found. \r\n"},"comment":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/comments/255535028","html_url":"https://github.com/hashicorp/terraform/issues/6474#issuecomment-255535028","issue_url":"https://api.github.com/repos/hashicorp/terraform/issues/6474","id":255535028,"user":{"login":"dotariel","id":5225510,"avatar_url":"https://avatars.githubusercontent.com/u/5225510?v=3","gravatar_id":"","url":"https://api.github.com/users/dotariel","html_url":"https://github.com/dotariel","followers_url":"https://api.github.com/users/dotariel/followers","following_url":"https://api.github.com/users/dotariel/following{/other_user}","gists_url":"https://api.github.com/users/dotariel/gists{/gist_id}","starred_url":"https://api.github.com/users/dotariel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotariel/subscriptions","organizations_url":"https://api.github.com/users/dotariel/orgs","repos_url":"https://api.github.com/users/dotariel/repos","events_url":"https://api.github.com/users/dotariel/events{/privacy}","received_events_url":"https://api.github.com/users/dotariel/received_events","type":"User","site_admin":false},"created_at":"2016-10-22T15:31:39Z","updated_at":"2016-10-22T15:31:39Z","body":"@davidfic I am experiencing a similar issue as you described above, where the credentials file is not being read. When you said you \"cleaned up everything\", what specifically did you do to start from scratch?"}}
{"actor":{"display_login":"dotariel"}}