{"action":"created","issue":{"url":"https://api.github.com/repos/terraform-providers/terraform-provider-aws/issues/5987","repository_url":"https://api.github.com/repos/terraform-providers/terraform-provider-aws","labels_url":"https://api.github.com/repos/terraform-providers/terraform-provider-aws/issues/5987/labels{/name}","comments_url":"https://api.github.com/repos/terraform-providers/terraform-provider-aws/issues/5987/comments","events_url":"https://api.github.com/repos/terraform-providers/terraform-provider-aws/issues/5987/events","html_url":"https://github.com/terraform-providers/terraform-provider-aws/issues/5987","id":363797588,"node_id":"MDU6SXNzdWUzNjM3OTc1ODg=","number":5987,"title":"only \"default\" aws profile works","user":{"login":"decmaxn","id":29052316,"node_id":"MDQ6VXNlcjI5MDUyMzE2","avatar_url":"https://avatars0.githubusercontent.com/u/29052316?v=4","gravatar_id":"","url":"https://api.github.com/users/decmaxn","html_url":"https://github.com/decmaxn","followers_url":"https://api.github.com/users/decmaxn/followers","following_url":"https://api.github.com/users/decmaxn/following{/other_user}","gists_url":"https://api.github.com/users/decmaxn/gists{/gist_id}","starred_url":"https://api.github.com/users/decmaxn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/decmaxn/subscriptions","organizations_url":"https://api.github.com/users/decmaxn/orgs","repos_url":"https://api.github.com/users/decmaxn/repos","events_url":"https://api.github.com/users/decmaxn/events{/privacy}","received_events_url":"https://api.github.com/users/decmaxn/received_events","type":"User","site_admin":false},"labels":[{"id":620316276,"node_id":"MDU6TGFiZWw2MjAzMTYyNzY=","url":"https://api.github.com/repos/terraform-providers/terraform-provider-aws/labels/documentation","name":"documentation","color":"fef2c0","default":false},{"id":669293041,"node_id":"MDU6TGFiZWw2NjkyOTMwNDE=","url":"https://api.github.com/repos/terraform-providers/terraform-provider-aws/labels/upstream-terraform","name":"upstream-terraform","color":"cccccc","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-25T23:01:35Z","updated_at":"2018-09-25T23:18:54Z","closed_at":null,"author_association":"NONE","body":"<!--- Please keep this note for the community --->\r\n\r\n### Community Note\r\n\r\n* Please vote on this issue by adding a 👍 [reaction](https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/) to the original issue to help the community and maintainers prioritize this request\r\n* Please do not leave \"+1\" or \"me too\" comments, they generate extra noise for issue followers and do not help prioritize the request\r\n* If you are interested in working on this issue or have submitted a pull request, please leave a comment\r\n\r\n<!--- Thank you for keeping this note for the community --->\r\n\r\n### Terraform Version\r\nTerraform v0.11.8\r\n+ provider.aws v1.37.0\r\n\r\n### Terraform Configuration Files\r\n```hcl\r\nprovider \"aws\" {\r\n  region = \"us-east-1\"\r\n  profile = \"myprofile\"\r\n}\r\n\r\nterraform {\r\n  backend \"s3\" {\r\n    bucket  = \"mybucket\"\r\n    key     = \"test/my.tfstate\"\r\n    region  = \"us-east-1\"\r\n  }\r\n}\r\n...\r\n```\r\n\r\n### Debug Output\r\nterraform init\r\n```hcl\r\nInitializing modules...\r\n- module.vpc\r\n\r\nInitializing the backend...\r\n\r\nError configuring the backend \"s3\": 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\nPlease update the configuration in your Terraform files to fix this error\r\nthen run this command again.\r\n```\r\n\r\n### Expected Behavior\r\n\r\n```hcl\r\nInitializing modules...\r\n- module.vpc\r\n\r\nInitializing the backend...\r\n\r\nSuccessfully configured the backend \"s3\"! Terraform will automatically\r\nuse this backend unless the backend configuration changes.\r\n```\r\n\r\n### Actual Behavior\r\nAccording to https://www.terraform.io/docs/providers/aws/#shared-credentials-file, it should use \"myprofile\", but it doesn't \r\n\r\n### Steps to Reproduce\r\n\r\nI have multiple aws profiles in ~/.aws/ folder properly setup including \"myprofile\", but there is no default profile. \r\n\r\n### Walk around\r\n If I rename \"myprofile\" to \"default\", it will work. \r\n\r\n\r\n* #0000\r\n"},"comment":{"url":"https://api.github.com/repos/terraform-providers/terraform-provider-aws/issues/comments/424533140","html_url":"https://github.com/terraform-providers/terraform-provider-aws/issues/5987#issuecomment-424533140","issue_url":"https://api.github.com/repos/terraform-providers/terraform-provider-aws/issues/5987","id":424533140,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNDUzMzE0MA==","user":{"login":"bflad","id":189114,"node_id":"MDQ6VXNlcjE4OTExNA==","avatar_url":"https://avatars3.githubusercontent.com/u/189114?v=4","gravatar_id":"","url":"https://api.github.com/users/bflad","html_url":"https://github.com/bflad","followers_url":"https://api.github.com/users/bflad/followers","following_url":"https://api.github.com/users/bflad/following{/other_user}","gists_url":"https://api.github.com/users/bflad/gists{/gist_id}","starred_url":"https://api.github.com/users/bflad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bflad/subscriptions","organizations_url":"https://api.github.com/users/bflad/orgs","repos_url":"https://api.github.com/users/bflad/repos","events_url":"https://api.github.com/users/bflad/events{/privacy}","received_events_url":"https://api.github.com/users/bflad/received_events","type":"User","site_admin":false},"created_at":"2018-09-25T23:18:54Z","updated_at":"2018-09-25T23:18:54Z","author_association":"CONTRIBUTOR","body":"Hi @decmaxn 👋  Sorry for some confusion here! It looks like the error messaging is only partially correct in its advice. While the S3 backend in Terraform shares the same authentication code as the AWS provider, the two configurations are currently separate.\r\n\r\nCan you try adding `profile = \"myprofile\"` to your `backend \"s3\"` configuration? More information: https://www.terraform.io/docs/backends/types/s3.html#profile"}}
{"actor":{"display_login":"bflad"}}