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

Missing vpc_id argument on aws_security_group resource in aws_ecs /security.tf #31

Open
peter-srf opened this issue Nov 10, 2023 · 0 comments

Comments

@peter-srf
Copy link

The aws_security_group.temporal_aurora resource defined below is missing the vpc_id argument:

resource "aws_security_group" "temporal_aurora" {

This results in Terraform being unable to create the resource because no VPC ID has been specified:

│ Error: creating Security Group (retool-prod-temporal-rds-security-group): VPCIdNotSpecified: No default VPC for this user
│       status code: 400, request id: c448adb9-ac28-4e14-84ed-5450130d1e6a
│ 
│   with module.retool.aws_security_group.temporal_aurora[0],
│   on .terraform/modules/retool/modules/aws_ecs/security.tf line 26, in resource "aws_security_group" "temporal_aurora":
│   26: resource "aws_security_group" "temporal_aurora" {

If you look at the aws_security_group resource immediately following this one, the vpc_id argument is present:

resource "aws_security_group" "alb" {

I believe you just need to add the following to the aws_security_group.temporal_aurora resource to resolve the problem:
vpc_id = var.vpc_id

Thank you.

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