{"action":"created","issue":{"url":"https://api.github.com/repos/terraform-providers/terraform-provider-aws/issues/4398","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/4398/labels{/name}","comments_url":"https://api.github.com/repos/terraform-providers/terraform-provider-aws/issues/4398/comments","events_url":"https://api.github.com/repos/terraform-providers/terraform-provider-aws/issues/4398/events","html_url":"https://github.com/terraform-providers/terraform-provider-aws/issues/4398","id":318924791,"number":4398,"title":"Error using `data.aws_vpc_endpoint_service` in AWS US GovCloud","user":{"login":"lorengordon","id":8457307,"avatar_url":"https://avatars3.githubusercontent.com/u/8457307?v=4","gravatar_id":"","url":"https://api.github.com/users/lorengordon","html_url":"https://github.com/lorengordon","followers_url":"https://api.github.com/users/lorengordon/followers","following_url":"https://api.github.com/users/lorengordon/following{/other_user}","gists_url":"https://api.github.com/users/lorengordon/gists{/gist_id}","starred_url":"https://api.github.com/users/lorengordon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lorengordon/subscriptions","organizations_url":"https://api.github.com/users/lorengordon/orgs","repos_url":"https://api.github.com/users/lorengordon/repos","events_url":"https://api.github.com/users/lorengordon/events{/privacy}","received_events_url":"https://api.github.com/users/lorengordon/received_events","type":"User","site_admin":false},"labels":[{"id":620316239,"url":"https://api.github.com/repos/terraform-providers/terraform-provider-aws/labels/bug","name":"bug","color":"f7c6c7","default":true},{"id":853264942,"url":"https://api.github.com/repos/terraform-providers/terraform-provider-aws/labels/partition/aws-us-gov","name":"partition/aws-us-gov","color":"bfd4f2","default":false},{"id":794043766,"url":"https://api.github.com/repos/terraform-providers/terraform-provider-aws/labels/service/ec2","name":"service/ec2","color":"bfd4f2","default":false},{"id":623648239,"url":"https://api.github.com/repos/terraform-providers/terraform-provider-aws/labels/upstream","name":"upstream","color":"fad8c7","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-04-30T15:08:20Z","updated_at":"2018-05-08T17:58:33Z","closed_at":null,"author_association":"NONE","body":"### Terraform Version\r\n```\r\n> terraform -v\r\nTerraform v0.11.7\r\n+ provider.aws v1.16.0\r\n```\r\n\r\n### Affected Resource(s)\r\nPlease list the resources as a list, for example:\r\n- `data.aws_vpc_endpoint_service`\r\n\r\n### Terraform Configuration Files\r\nStraight from the [example](https://www.terraform.io/docs/providers/aws/d/vpc_endpoint_service.html#example-usage):\r\n\r\n```hcl\r\n# Declare the data source\r\ndata \"aws_vpc_endpoint_service\" \"s3\" {\r\n  service = \"s3\"\r\n}\r\n\r\n# Create a VPC\r\nresource \"aws_vpc\" \"foo\" {\r\n  cidr_block = \"10.0.0.0/16\"\r\n}\r\n\r\n# Create a VPC endpoint\r\nresource \"aws_vpc_endpoint\" \"ep\" {\r\n  vpc_id       = \"${aws_vpc.foo.id}\"\r\n  service_name = \"${data.aws_vpc_endpoint_service.s3.service_name}\"\r\n}\r\n```\r\n\r\n### Debug Output\r\n\r\n<https://gist.github.com/lorengordon/f10b04a991edd0f1474bacc9ea1a3146>\r\n\r\n### Expected Behavior\r\nThe `data.aws_vpc_endpoint_service` should return the service name just as it does for the commercial regions.\r\n\r\n### Actual Behavior\r\nGot the error, `multiple VPC Endpoint Services matched; use additional constraints to reduce matches to a single VPC Endpoint Service`.\r\n\r\n### Steps to Reproduce\r\n1. `terraform plan`\r\n\r\n```\r\nRefreshing Terraform state in-memory prior to plan...\r\nThe refreshed state will be used to calculate this plan, but will not be\r\npersisted to local or remote state storage.\r\n\r\ndata.aws_vpc_endpoint_service.s3: Refreshing state...\r\n\r\nError: Error refreshing state: 1 error(s) occurred:\r\n\r\n* data.aws_vpc_endpoint_service.s3: 1 error(s) occurred:\r\n\r\n* data.aws_vpc_endpoint_service.s3: data.aws_vpc_endpoint_service.s3: multiple VPC Endpoint Services matched; use additional constraints to reduce matches to a single VPC Endpoint Service\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/terraform-providers/terraform-provider-aws/issues/comments/387489019","html_url":"https://github.com/terraform-providers/terraform-provider-aws/issues/4398#issuecomment-387489019","issue_url":"https://api.github.com/repos/terraform-providers/terraform-provider-aws/issues/4398","id":387489019,"user":{"login":"acdifran","id":25591626,"avatar_url":"https://avatars1.githubusercontent.com/u/25591626?v=4","gravatar_id":"","url":"https://api.github.com/users/acdifran","html_url":"https://github.com/acdifran","followers_url":"https://api.github.com/users/acdifran/followers","following_url":"https://api.github.com/users/acdifran/following{/other_user}","gists_url":"https://api.github.com/users/acdifran/gists{/gist_id}","starred_url":"https://api.github.com/users/acdifran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acdifran/subscriptions","organizations_url":"https://api.github.com/users/acdifran/orgs","repos_url":"https://api.github.com/users/acdifran/repos","events_url":"https://api.github.com/users/acdifran/events{/privacy}","received_events_url":"https://api.github.com/users/acdifran/received_events","type":"User","site_admin":false},"created_at":"2018-05-08T17:58:33Z","updated_at":"2018-05-08T17:58:33Z","author_association":"NONE","body":"I just discovered this same problem as well. To get around it I've been using aws provider v1.8."}}
{"actor":{"display_login":"acdifran"}}