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

Issue when enable_user_provided_vpc is used #8

Open
otakusid opened this issue Mar 8, 2024 · 0 comments
Open

Issue when enable_user_provided_vpc is used #8

otakusid opened this issue Mar 8, 2024 · 0 comments

Comments

@otakusid
Copy link

otakusid commented Mar 8, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant