Skip to content

Commit

Permalink
Corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
BryanFauble committed May 20, 2024
1 parent c6b9e37 commit ed67b86
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
12 changes: 10 additions & 2 deletions modules/internal-k8-infra/data.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,16 @@ data "aws_secretsmanager_secret_version" "secret_credentials" {

# TODO: This should search for the VPC using some other value as ID would change
# on first startup and teardown/restart
data "aws_vpc" "selected" {
id = "spacelift-created-vpc vpc-0f30cfca319ebc521"
data "aws_subnets" "node_subnets" {
filter {
name = "vpc-id"
values = ["vpc-0f30cfca319ebc521"]
}
}

data "aws_eks_node_group" "profile" {
cluster_name = var.cluster_name
node_group_name = "one"
}

data "aws_security_group" "eks_cluster_security_group" {
Expand Down
2 changes: 1 addition & 1 deletion modules/internal-k8-infra/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ module "ocean-aws-k8s" {
# Configuration
cluster_name = var.cluster_name
region = var.region
subnet_ids = data.aws_vpc.selected.private_subnets
subnet_ids = data.aws_subnets.node_subnets.ids
worker_instance_profile_arn = data.aws_eks_node_group.profile.node_role_arn
security_groups = [data.aws_security_group.eks_cluster_security_group.id]
is_aggressive_scale_down_enabled = true
Expand Down

0 comments on commit ed67b86

Please sign in to comment.