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

With zero public subnets, s3 vpc endpoint association fails #89

Closed
lorengordon opened this issue Feb 26, 2018 · 2 comments
Closed

With zero public subnets, s3 vpc endpoint association fails #89

lorengordon opened this issue Feb 26, 2018 · 2 comments

Comments

@lorengordon
Copy link
Contributor

When passing no public subnets, but still using an S3 VPC endpoint, the module should not try to associate the endpoint with a (non-existent) public route table.

Error: Error running plan: 1 error(s) occurred:

* module.vpc.aws_vpc_endpoint_route_table_association.public_s3: 1 error(s) occurred:

* module.vpc.aws_vpc_endpoint_route_table_association.public_s3: Resource 'aws_route_table.public' not found for variable 'aws_route_table.public.id'

The condition in this line needs to account for the length of var.public_subnets.

Looks like the count for the dynamodb vpc endpoint is also flawed. A bit differently though. There is only one public route table for all public subnets, so the length check should be in the condition and the count should be 1 if true.

@antonbabenko
Copy link
Member

Good job, Loren! v1.28.0 has been now released with this fix.

@github-actions
Copy link

github-actions bot commented Nov 5, 2022

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 5, 2022
waddamski pushed a commit to hmrc/terraform-aws-vpc that referenced this issue Jul 5, 2024
…erraform-aws-modules#90)

* Ensures the S3 VPC Endpoint association is only created if there are public subnets

Fixes terraform-aws-modules#89

* Ensures a single DDB association in the public route table
waddamski pushed a commit to hmrc/terraform-aws-vpc that referenced this issue Jul 5, 2024
…erraform-aws-modules#90)

* Ensures the S3 VPC Endpoint association is only created if there are public subnets

Fixes terraform-aws-modules#89

* Ensures a single DDB association in the public route table
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants