Skip to content
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

Cannot apply AWS_VPC_ENDPOINT route_table_ids #4137

Closed
h-imaoka opened this issue Dec 2, 2015 · 2 comments
Closed

Cannot apply AWS_VPC_ENDPOINT route_table_ids #4137

h-imaoka opened this issue Dec 2, 2015 · 2 comments

Comments

@h-imaoka
Copy link
Contributor

h-imaoka commented Dec 2, 2015

#tf file
resource "aws_vpc_endpoint" "private-s3" {
    vpc_id ="vpc-xxxx"
    service_name = "com.amazonaws.us-west-2.s3"
    route_table_ids = [ "rtb-ffb38b9a" , "rtb-fcb38b99" ]
}
> terraform plan
...
~ aws_vpc_endpoint.private-s3
    route_table_ids.#:          "0" => "2"
    route_table_ids.1280435804: "" => "rtb-ffb38b9a"
    route_table_ids.2077823037: "" => "rtb-fcb38b99"
#TRACE

2015/12/02 11:07:46 [DEBUG] apply: aws_vpc_endpoint.private-s3: executing Apply
aws_vpc_endpoint.private-s3: Modifying...
  route_table_ids.#:          "0" => "2"
  route_table_ids.1280435804: "" => "rtb-ffb38b9a"
  route_table_ids.2077823037: "" => "rtb-fcb38b99"
2015/12/02 11:07:46 [DEBUG] terraform-provider-aws: 2015/12/02 11:07:46 [DEBUG] Updating VPC Endpoint: {
2015/12/02 11:07:46 [DEBUG] terraform-provider-aws:   RemoveRouteTableIds: ["rtb-ffb38b9a","rtb-fcb38b99"],
2015/12/02 11:07:46 [DEBUG] terraform-provider-aws:   VpcEndpointId: "vpce-9f0aeaf6"
2015/12/02 11:07:46 [DEBUG] terraform-provider-aws: }
2015/12/02 11:07:47 [DEBUG] root: eval: *terraform.EvalWriteState
2015/12/02 11:07:47 [DEBUG] root: eval: *terraform.EvalApplyProvisioners
2015/12/02 11:07:47 [DEBUG] root: eval: *terraform.EvalIf
2015/12/02 11:07:47 [DEBUG] root: eval: *terraform.EvalWriteDiff
2015/12/02 11:07:47 [DEBUG] root: eval: *terraform.EvalIf
2015/12/02 11:07:47 [DEBUG] root: eval: *terraform.EvalWriteState
2015/12/02 11:07:47 [DEBUG] root: eval: *terraform.EvalApplyPost
2015/12/02 11:07:47 [ERROR] root: eval: *terraform.EvalApplyPost, err: 1 error(s) occurred:

* aws_vpc_endpoint.private-s3: Error updating VPC Endpoint: InvalidParameter:
    status code: 400, request id:
2015/12/02 11:07:47 [ERROR] root: eval: *terraform.EvalSequence, err: 1 error(s) occurred:

I had created VPC_ENDPOINT, but could not modify route_table_ids .

Version: Terraform v0.6.7

h-imaoka added a commit to h-imaoka/terraform that referenced this issue Dec 11, 2015
vpc_endpoint bug fix.
catsby added a commit that referenced this issue Dec 18, 2015
@catsby
Copy link
Contributor

catsby commented Dec 18, 2015

Fixed in #4264, thank you!

@catsby catsby closed this as completed Dec 18, 2015
@ghost
Copy link

ghost commented Apr 29, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 29, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants