Skip to content

Commit

Permalink
Update networking module to output security group id
Browse files Browse the repository at this point in the history
  • Loading branch information
devsjc committed Nov 10, 2023
1 parent a58e778 commit ffda7ae
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 4 additions & 0 deletions terraform/modules/networking/output.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ output "private_subnet_group_name" {
value = aws_db_subnet_group.private_subnet_group.name
}

output "default_security_group_id" {
value = aws_security_group.default.id
}

output "vpc_region" {
value = var.region
}
2 changes: 1 addition & 1 deletion terraform/nowcasting/development/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -424,5 +424,5 @@ module "airflow" {
db_url = module.database.forecast-database-secret-airflow-url
docker-compose-version = "0.0.3"
ecs_subnet_id = module.networking.public_subnet_ids[0]
ecs_security_group=var.ecs_security_group # TODO should be able to update this to use the module
ecs_security_group=module.networking.default_security_group_id
}
5 changes: 0 additions & 5 deletions terraform/nowcasting/development/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,3 @@ variable "forecast_pvnet_version" {
variable "forecast_blend_version" {
description = "The Forecast Blend docker version"
}

variable "ecs_security_group" {
description = "The security group for airflow ecs tasks. TODO remove this"
type = string
}

0 comments on commit ffda7ae

Please sign in to comment.