terraform-aws-starter icon indicating copy to clipboard operation
terraform-aws-starter copied to clipboard

When running the existing example under live/core, Error creating in VPC endpoint

Open synthKyel opened this issue 1 year ago • 1 comments

Describe the bug

When run for the first time with the default configuration. It fails creating a secrets manager linked to the VPC

Expected Behavior

Be able to attach secrets manager to the VPC endpoint

Current Behavior

throws an error with this message

 Error: creating EC2 VPC Endpoint (com.amazonaws.us-west-2.secretsmanager): InvalidParameter: Subnet IDs are only supported for Interface and GatewayLoadBalancer type VPC Endpoints.
│       status code: 400, request id: c3858cb1-8278-4dea-a6d2-177948dcf477
│
│   with module.vpc.aws_vpc_endpoint.secrets_manager,
│   on ..\..\modules\vpc\endpoints.tf line 3, in resource "aws_vpc_endpoint" "secrets_manager":
│    3: resource "aws_vpc_endpoint" "secrets_manager" {

Reproduction Steps

Run through the default example

Possible Solution

No response

Additional Information/Context

No response

Version used

latest

Environment details (OS name and version, etc.)

windows 10

synthKyel avatar Nov 08 '23 23:11 synthKyel

hey! @synthKyel thanks for creating this issue! for now I decided to remove the creation of the endpoint from the boilerplate just to unblock others to use this boilerplate but will make the needed changes on other Pull Request to let you create the VPC Endpoint for Secrets Manager using this boilerplate 😊

ulises-jeremias avatar Nov 14 '23 18:11 ulises-jeremias

@synthKyel this issue is solved in the main branch. We added another module to handle the creation of vpc endpoints!

ulises-jeremias avatar Jul 04 '24 05:07 ulises-jeremias