{"action":"created","issue":{"url":"https://api.github.com/repos/terraform-providers/terraform-provider-aws/issues/3233","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/3233/labels{/name}","comments_url":"https://api.github.com/repos/terraform-providers/terraform-provider-aws/issues/3233/comments","events_url":"https://api.github.com/repos/terraform-providers/terraform-provider-aws/issues/3233/events","html_url":"https://github.com/terraform-providers/terraform-provider-aws/issues/3233","id":293650644,"number":3233,"title":"Feature request: IAM Service Specific credentials","user":{"login":"honzous","id":25158403,"avatar_url":"https://avatars2.githubusercontent.com/u/25158403?v=4","gravatar_id":"","url":"https://api.github.com/users/honzous","html_url":"https://github.com/honzous","followers_url":"https://api.github.com/users/honzous/followers","following_url":"https://api.github.com/users/honzous/following{/other_user}","gists_url":"https://api.github.com/users/honzous/gists{/gist_id}","starred_url":"https://api.github.com/users/honzous/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/honzous/subscriptions","organizations_url":"https://api.github.com/users/honzous/orgs","repos_url":"https://api.github.com/users/honzous/repos","events_url":"https://api.github.com/users/honzous/events{/privacy}","received_events_url":"https://api.github.com/users/honzous/received_events","type":"User","site_admin":false},"labels":[{"id":625892945,"url":"https://api.github.com/repos/terraform-providers/terraform-provider-aws/labels/new-resource","name":"new-resource","color":"d4c5f9","default":false},{"id":794043577,"url":"https://api.github.com/repos/terraform-providers/terraform-provider-aws/labels/service/iam","name":"service/iam","color":"bfd4f2","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-02-01T19:16:18Z","updated_at":"2018-02-14T09:54:01Z","closed_at":null,"author_association":"NONE","body":"Hi guys,\r\n\r\nService specific credentials could be used for HTTPS access to CodeCommit right now, assuming wider usage later on.\r\n\r\n### Terraform Version\r\n```\r\nTerraform v0.11.2\r\n+ provider.aws v1.8.0\r\n```\r\n\r\n### Affected Resource(s)\r\n- aws_iam_user\r\n\r\n### Terraform Configuration Files\r\nCould be derived from https://docs.aws.amazon.com/IAM/latest/APIReference/API_ServiceSpecificCredential.html\r\n\r\n### Expected Behavior\r\n```hcl\r\nresource \"aws_iam_service_specific_credential\" \"codecommit\" {\r\n  service_name = \"codecommit\"\r\n  username = \"my_user\"\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/terraform-providers/terraform-provider-aws/issues/comments/365551841","html_url":"https://github.com/terraform-providers/terraform-provider-aws/issues/3233#issuecomment-365551841","issue_url":"https://api.github.com/repos/terraform-providers/terraform-provider-aws/issues/3233","id":365551841,"user":{"login":"colin-lyman","id":20067252,"avatar_url":"https://avatars2.githubusercontent.com/u/20067252?v=4","gravatar_id":"","url":"https://api.github.com/users/colin-lyman","html_url":"https://github.com/colin-lyman","followers_url":"https://api.github.com/users/colin-lyman/followers","following_url":"https://api.github.com/users/colin-lyman/following{/other_user}","gists_url":"https://api.github.com/users/colin-lyman/gists{/gist_id}","starred_url":"https://api.github.com/users/colin-lyman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/colin-lyman/subscriptions","organizations_url":"https://api.github.com/users/colin-lyman/orgs","repos_url":"https://api.github.com/users/colin-lyman/repos","events_url":"https://api.github.com/users/colin-lyman/events{/privacy}","received_events_url":"https://api.github.com/users/colin-lyman/received_events","type":"User","site_admin":false},"created_at":"2018-02-14T09:54:01Z","updated_at":"2018-02-14T09:54:01Z","author_association":"NONE","body":"As a short term workaround for anyone in need:\r\n```\r\nvariable \"AWS_USERS\" {\r\n  description = \"List of AWS Users\"\r\n  type = \"list\"\r\n  default = [\"name.one\",\"name.two\"]\r\n}\r\n\r\nresource \"aws_iam_user\" \"users\" {\r\n  name = \"${element(var.AWS_USERS, count.index)}\"\r\n  count = \"${length(var.AWS_USERS)}\"\r\n  provisioner \"local-exec\" {\r\n    command = \"aws iam create-service-specific-credential --user-name ${element(var.AWS_USERS, count.index)} --service-name codecommit.amazonaws.com >> credentials.txt\"\r\n  }\r\n}\r\n```"}}
{"actor":{"display_login":"colin-lyman"}}