Skip to content

Commit

Permalink
fix: Fix private access example (#155)
Browse files Browse the repository at this point in the history
* fix: Fix private access example

* Remove test configuration
  • Loading branch information
flamarion authored Dec 7, 2023
1 parent fc59f1d commit f0745ea
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 11 deletions.
15 changes: 8 additions & 7 deletions examples/private-access-only/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -61,18 +61,19 @@ module "standard" {
namespace = var.namespace
public_access = false

wandb_license = var.wandb_license

domain_name = aws_route53_zone.private.name
zone_id = aws_route53_zone.private.zone_id

# Creating a custom VPC so that we can initalize a route53 zone first and configure a vpn
create_vpc = false
network_id = module.networking.vpc_id
network_private_subnets = module.networking.private_subnets
network_public_subnets = module.networking.public_subnets
create_vpc = false
network_id = module.networking.vpc_id
network_private_subnets = module.networking.private_subnets
network_public_subnets = module.networking.public_subnets
allowed_inbound_cidr = var.allowed_inbound_cidr
allowed_inbound_ipv6_cidr = var.allowed_inbound_ipv6_cidr
eks_cluster_version = var.eks_cluster_version
}

output "url" {
value = module.standard.url
}
}
19 changes: 17 additions & 2 deletions examples/private-access-only/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,22 @@ variable "namespace" {
description = "Name prefix used for resources"
}

variable "wandb_license" {
type = string
variable "allowed_inbound_cidr" {
default = ["0.0.0.0/0"]
nullable = false
type = list(string)
}


variable "allowed_inbound_ipv6_cidr" {
default = ["::/0"]
nullable = false
type = list(string)
}

variable "eks_cluster_version" {
description = "EKS cluster kubernetes version"
default = "1.26"
nullable = false
type = string
}
4 changes: 2 additions & 2 deletions examples/private-access-only/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 3.60"
version = "~> 4.0"
}
}
}
}

0 comments on commit f0745ea

Please sign in to comment.