Skip to content
This repository was archived by the owner on Mar 24, 2026. It is now read-only.
This repository was archived by the owner on Mar 24, 2026. It is now read-only.

Issue when enable_user_provided_vpc is used #8

Description

@otakusid

I tried to host resources in the already configured VPC and got the following errors:

│ Error: Invalid index
│
│   on ../../../../submodules/coordinator-services-and-shared-libraries/operator/terraform/aws/applications/operator-service/main.tf line 205, in module "worker_service":
│  205:   dynamodb_vpc_endpoint_id = module.vpc[0].dynamodb_vpc_endpoint_id
│     ├────────────────
│     │ module.vpc is empty tuple
│
│ The given key does not identify an element in this collection value: the collection has no elements.
╵
╷
│ Error: Invalid index
│
│   on ../../../../submodules/coordinator-services-and-shared-libraries/operator/terraform/aws/applications/operator-service/main.tf line 206, in module "worker_service":
│  206:   s3_vpc_endpoint_id       = module.vpc[0].s3_vpc_endpoint_id
│     ├────────────────
│     │ module.vpc is empty tuple
│
│ The given key does not identify an element in this collection value: the collection has no elements.

How to reproduce

Specify the following variables:

enable_user_provided_vpc = true
user_provided_vpc_subnet_ids = ["subnet-todo1", "subnet-todo2"]
user_provided_vpc_security_group_ids = ["sg-todo3"]

Looks like the worker_service module tried to use internal VPC even if I configured it to not do that

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions