Skip to content

Commit

Permalink
upd: AWS EKS Examples - point at Github Repo for EKS Modules
Browse files Browse the repository at this point in the history
Changes to be committed:
	modified:   CHANGELOG.md
	modified:   examples/aws/eks-private/README.md
	modified:   examples/aws/eks-private/main.tf
	modified:   examples/aws/eks-public/README.md
	modified:   examples/aws/eks-public/main.tf
  • Loading branch information
brent-anyscale committed Sep 5, 2024
1 parent a948e09 commit 10f47bb
Show file tree
Hide file tree
Showing 5 changed files with 66 additions and 32 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
## 0.1.0 (Released)
FEATURES:
- Initial Kubernetes Anyscale Terraform Module release

BUG FIXES:

BREAKING CHANGES:

NOTES:
- Currently only tested with AWS EKS. Examples and testing for GCP GKE still to be completed.
14 changes: 7 additions & 7 deletions examples/aws/eks-private/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,16 @@ No providers.

| Name | Source | Version |
|------|--------|---------|
| <a name="module_anyscale_efs"></a> [anyscale\_efs](#module\_anyscale\_efs) | ../../../../terraform-aws-anyscale-cloudfoundation-modules/modules/aws-anyscale-efs | n/a |
| <a name="module_anyscale_eks_cluster"></a> [anyscale\_eks\_cluster](#module\_anyscale\_eks\_cluster) | ../../../../terraform-aws-anyscale-cloudfoundation-modules/modules/aws-anyscale-eks-cluster | n/a |
| <a name="module_anyscale_eks_nodegroups"></a> [anyscale\_eks\_nodegroups](#module\_anyscale\_eks\_nodegroups) | ../../../../terraform-aws-anyscale-cloudfoundation-modules/modules/aws-anyscale-eks-nodegroups | n/a |
| <a name="module_anyscale_iam_roles"></a> [anyscale\_iam\_roles](#module\_anyscale\_iam\_roles) | ../../../../terraform-aws-anyscale-cloudfoundation-modules/modules/aws-anyscale-iam | n/a |
| <a name="module_anyscale_efs"></a> [anyscale\_efs](#module\_anyscale\_efs) | github.com/anyscale/terraform-aws-anyscale-cloudfoundation-modules//modules/aws-anyscale-efs | n/a |
| <a name="module_anyscale_eks_cluster"></a> [anyscale\_eks\_cluster](#module\_anyscale\_eks\_cluster) | github.com/anyscale/terraform-aws-anyscale-cloudfoundation-modules//modules/aws-anyscale-eks-cluster | n/a |
| <a name="module_anyscale_eks_nodegroups"></a> [anyscale\_eks\_nodegroups](#module\_anyscale\_eks\_nodegroups) | github.com/anyscale/terraform-aws-anyscale-cloudfoundation-modules//modules/aws-anyscale-eks-nodegroups | n/a |
| <a name="module_anyscale_iam_roles"></a> [anyscale\_iam\_roles](#module\_anyscale\_iam\_roles) | github.com/anyscale/terraform-aws-anyscale-cloudfoundation-modules//modules/aws-anyscale-iam | n/a |
| <a name="module_anyscale_k8s_configmap"></a> [anyscale\_k8s\_configmap](#module\_anyscale\_k8s\_configmap) | ../../../modules/anyscale-k8s-configmap | n/a |
| <a name="module_anyscale_k8s_helm"></a> [anyscale\_k8s\_helm](#module\_anyscale\_k8s\_helm) | ../../../modules/anyscale-k8s-helm | n/a |
| <a name="module_anyscale_k8s_namespace"></a> [anyscale\_k8s\_namespace](#module\_anyscale\_k8s\_namespace) | ../../../modules/anyscale-k8s-namespace | n/a |
| <a name="module_anyscale_s3"></a> [anyscale\_s3](#module\_anyscale\_s3) | ../../../../terraform-aws-anyscale-cloudfoundation-modules/modules/aws-anyscale-s3 | n/a |
| <a name="module_anyscale_securitygroup"></a> [anyscale\_securitygroup](#module\_anyscale\_securitygroup) | ../../../../terraform-aws-anyscale-cloudfoundation-modules/modules/aws-anyscale-securitygroups | n/a |
| <a name="module_anyscale_vpc"></a> [anyscale\_vpc](#module\_anyscale\_vpc) | ../../../../terraform-aws-anyscale-cloudfoundation-modules/modules/aws-anyscale-vpc | n/a |
| <a name="module_anyscale_s3"></a> [anyscale\_s3](#module\_anyscale\_s3) | github.com/anyscale/terraform-aws-anyscale-cloudfoundation-modules//modules/aws-anyscale-s3 | n/a |
| <a name="module_anyscale_securitygroup"></a> [anyscale\_securitygroup](#module\_anyscale\_securitygroup) | github.com/anyscale/terraform-aws-anyscale-cloudfoundation-modules//modules/aws-anyscale-securitygroups | n/a |
| <a name="module_anyscale_vpc"></a> [anyscale\_vpc](#module\_anyscale\_vpc) | github.com/anyscale/terraform-aws-anyscale-cloudfoundation-modules//modules/aws-anyscale-vpc | n/a |

## Resources

Expand Down
32 changes: 22 additions & 10 deletions examples/aws/eks-private/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ locals {
private_subnets = ["172.24.20.0/24", "172.24.21.0/24", "172.24.22.0/24"]
}
module "anyscale_vpc" {
#checkov:skip=CKV_TF_1: Test code should use the latest version of the module
source = "../../../../terraform-aws-anyscale-cloudfoundation-modules/modules/aws-anyscale-vpc"
#checkov:skip=CKV_TF_1: Example code should use the latest version of the module
#checkov:skip=CKV_TF_2: Example code should use the latest version of the module
source = "github.com/anyscale/terraform-aws-anyscale-cloudfoundation-modules//modules/aws-anyscale-vpc"

anyscale_vpc_name = "anyscale-eks-private"
cidr_block = "172.24.0.0/16"
Expand All @@ -41,8 +42,9 @@ locals {
}

module "anyscale_securitygroup" {
#checkov:skip=CKV_TF_1: Test code should use the latest version of the module
source = "../../../../terraform-aws-anyscale-cloudfoundation-modules/modules/aws-anyscale-securitygroups"
#checkov:skip=CKV_TF_1: Example code should use the latest version of the module
#checkov:skip=CKV_TF_2: Example code should use the latest version of the module
source = "github.com/anyscale/terraform-aws-anyscale-cloudfoundation-modules//modules/aws-anyscale-securitygroups"

vpc_id = module.anyscale_vpc.vpc_id

Expand All @@ -54,7 +56,9 @@ module "anyscale_securitygroup" {
}

module "anyscale_s3" {
source = "../../../../terraform-aws-anyscale-cloudfoundation-modules/modules/aws-anyscale-s3"
#checkov:skip=CKV_TF_1: Example code should use the latest version of the module
#checkov:skip=CKV_TF_2: Example code should use the latest version of the module
source = "github.com/anyscale/terraform-aws-anyscale-cloudfoundation-modules//modules/aws-anyscale-s3"

module_enabled = true

Expand All @@ -67,7 +71,9 @@ module "anyscale_s3" {


module "anyscale_efs" {
source = "../../../../terraform-aws-anyscale-cloudfoundation-modules/modules/aws-anyscale-efs"
#checkov:skip=CKV_TF_1: Example code should use the latest version of the module
#checkov:skip=CKV_TF_2: Example code should use the latest version of the module
source = "github.com/anyscale/terraform-aws-anyscale-cloudfoundation-modules//modules/aws-anyscale-efs"

module_enabled = true

Expand All @@ -79,9 +85,11 @@ module "anyscale_efs" {
tags = local.full_tags
}

#trivy:ignore:avd-aws-0342 trivy:ignore:avd-aws-0342
module "anyscale_iam_roles" {
#checkov:skip=CKV_TF_1: Test code should use the latest version of the module
source = "../../../../terraform-aws-anyscale-cloudfoundation-modules/modules/aws-anyscale-iam"
#checkov:skip=CKV_TF_1: Example code should use the latest version of the module
#checkov:skip=CKV_TF_2: Example code should use the latest version of the module
source = "github.com/anyscale/terraform-aws-anyscale-cloudfoundation-modules//modules/aws-anyscale-iam"

module_enabled = true

Expand Down Expand Up @@ -149,7 +157,9 @@ locals {
}

module "anyscale_eks_cluster" {
source = "../../../../terraform-aws-anyscale-cloudfoundation-modules/modules/aws-anyscale-eks-cluster"
#checkov:skip=CKV_TF_1: Example code should use the latest version of the module
#checkov:skip=CKV_TF_2: Example code should use the latest version of the module
source = "github.com/anyscale/terraform-aws-anyscale-cloudfoundation-modules//modules/aws-anyscale-eks-cluster"

module_enabled = true

Expand Down Expand Up @@ -182,7 +192,9 @@ module "anyscale_eks_cluster" {
}

module "anyscale_eks_nodegroups" {
source = "../../../../terraform-aws-anyscale-cloudfoundation-modules/modules/aws-anyscale-eks-nodegroups"
#checkov:skip=CKV_TF_1: Example code should use the latest version of the module
#checkov:skip=CKV_TF_2: Example code should use the latest version of the module
source = "github.com/anyscale/terraform-aws-anyscale-cloudfoundation-modules//modules/aws-anyscale-eks-nodegroups"

module_enabled = true

Expand Down
12 changes: 6 additions & 6 deletions examples/aws/eks-public/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,16 @@ No providers.

| Name | Source | Version |
|------|--------|---------|
| <a name="module_anyscale_efs"></a> [anyscale\_efs](#module\_anyscale\_efs) | ../../../../terraform-aws-anyscale-cloudfoundation-modules/modules/aws-anyscale-efs | n/a |
| <a name="module_anyscale_eks_cluster"></a> [anyscale\_eks\_cluster](#module\_anyscale\_eks\_cluster) | ../../../../terraform-aws-anyscale-cloudfoundation-modules/modules/aws-anyscale-eks-cluster | n/a |
| <a name="module_anyscale_efs"></a> [anyscale\_efs](#module\_anyscale\_efs) | github.com/anyscale/terraform-aws-anyscale-cloudfoundation-modules//modules/aws-anyscale-efs | n/a |
| <a name="module_anyscale_eks_cluster"></a> [anyscale\_eks\_cluster](#module\_anyscale\_eks\_cluster) | github.com/anyscale/terraform-aws-anyscale-cloudfoundation-modules//modules/aws-anyscale-eks-cluster | n/a |
| <a name="module_anyscale_eks_nodegroups"></a> [anyscale\_eks\_nodegroups](#module\_anyscale\_eks\_nodegroups) | ../../../../terraform-aws-anyscale-cloudfoundation-modules/modules/aws-anyscale-eks-nodegroups | n/a |
| <a name="module_anyscale_iam_roles"></a> [anyscale\_iam\_roles](#module\_anyscale\_iam\_roles) | ../../../../terraform-aws-anyscale-cloudfoundation-modules/modules/aws-anyscale-iam | n/a |
| <a name="module_anyscale_iam_roles"></a> [anyscale\_iam\_roles](#module\_anyscale\_iam\_roles) | github.com/anyscale/terraform-aws-anyscale-cloudfoundation-modules//modules/aws-anyscale-iam | n/a |
| <a name="module_anyscale_k8s_configmap"></a> [anyscale\_k8s\_configmap](#module\_anyscale\_k8s\_configmap) | ../../../modules/anyscale-k8s-configmap | n/a |
| <a name="module_anyscale_k8s_helm"></a> [anyscale\_k8s\_helm](#module\_anyscale\_k8s\_helm) | ../../../modules/anyscale-k8s-helm | n/a |
| <a name="module_anyscale_k8s_namespace"></a> [anyscale\_k8s\_namespace](#module\_anyscale\_k8s\_namespace) | ../../../modules/anyscale-k8s-namespace | n/a |
| <a name="module_anyscale_s3"></a> [anyscale\_s3](#module\_anyscale\_s3) | ../../../../terraform-aws-anyscale-cloudfoundation-modules/modules/aws-anyscale-s3 | n/a |
| <a name="module_anyscale_securitygroup"></a> [anyscale\_securitygroup](#module\_anyscale\_securitygroup) | ../../../../terraform-aws-anyscale-cloudfoundation-modules/modules/aws-anyscale-securitygroups | n/a |
| <a name="module_anyscale_vpc"></a> [anyscale\_vpc](#module\_anyscale\_vpc) | ../../../../terraform-aws-anyscale-cloudfoundation-modules/modules/aws-anyscale-vpc | n/a |
| <a name="module_anyscale_s3"></a> [anyscale\_s3](#module\_anyscale\_s3) | github.com/anyscale/terraform-aws-anyscale-cloudfoundation-modules//modules/aws-anyscale-s3 | n/a |
| <a name="module_anyscale_securitygroup"></a> [anyscale\_securitygroup](#module\_anyscale\_securitygroup) | github.com/anyscale/terraform-aws-anyscale-cloudfoundation-modules//modules/aws-anyscale-securitygroups | n/a |
| <a name="module_anyscale_vpc"></a> [anyscale\_vpc](#module\_anyscale\_vpc) | github.com/anyscale/terraform-aws-anyscale-cloudfoundation-modules//modules/aws-anyscale-vpc | n/a |

## Resources

Expand Down
30 changes: 21 additions & 9 deletions examples/aws/eks-public/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ locals {
private_subnets = ["172.24.20.0/24", "172.24.21.0/24", "172.24.22.0/24"]
}
module "anyscale_vpc" {
#checkov:skip=CKV_TF_1: Test code should use the latest version of the module
source = "../../../../terraform-aws-anyscale-cloudfoundation-modules/modules/aws-anyscale-vpc"
#checkov:skip=CKV_TF_1: Example code should use the latest version of the module
#checkov:skip=CKV_TF_2: Example code should use the latest version of the module
source = "github.com/anyscale/terraform-aws-anyscale-cloudfoundation-modules//modules/aws-anyscale-vpc"

anyscale_vpc_name = "anyscale-eks-public"
cidr_block = "172.24.0.0/16"
Expand All @@ -41,8 +42,9 @@ locals {
}

module "anyscale_securitygroup" {
#checkov:skip=CKV_TF_1: Test code should use the latest version of the module
source = "../../../../terraform-aws-anyscale-cloudfoundation-modules/modules/aws-anyscale-securitygroups"
#checkov:skip=CKV_TF_1: Example code should use the latest version of the module
#checkov:skip=CKV_TF_2: Example code should use the latest version of the module
source = "github.com/anyscale/terraform-aws-anyscale-cloudfoundation-modules//modules/aws-anyscale-securitygroups"

vpc_id = module.anyscale_vpc.vpc_id

Expand All @@ -54,7 +56,9 @@ module "anyscale_securitygroup" {
}

module "anyscale_s3" {
source = "../../../../terraform-aws-anyscale-cloudfoundation-modules/modules/aws-anyscale-s3"
#checkov:skip=CKV_TF_1: Example code should use the latest version of the module
#checkov:skip=CKV_TF_2: Example code should use the latest version of the module
source = "github.com/anyscale/terraform-aws-anyscale-cloudfoundation-modules//modules/aws-anyscale-s3"

module_enabled = true

Expand All @@ -67,7 +71,9 @@ module "anyscale_s3" {


module "anyscale_efs" {
source = "../../../../terraform-aws-anyscale-cloudfoundation-modules/modules/aws-anyscale-efs"
#checkov:skip=CKV_TF_1: Example code should use the latest version of the module
#checkov:skip=CKV_TF_2: Example code should use the latest version of the module
source = "github.com/anyscale/terraform-aws-anyscale-cloudfoundation-modules//modules/aws-anyscale-efs"

module_enabled = true

Expand All @@ -79,9 +85,11 @@ module "anyscale_efs" {
tags = local.full_tags
}

#trivy:ignore:avd-aws-0342 trivy:ignore:avd-aws-0342
module "anyscale_iam_roles" {
#checkov:skip=CKV_TF_1: Test code should use the latest version of the module
source = "../../../../terraform-aws-anyscale-cloudfoundation-modules/modules/aws-anyscale-iam"
#checkov:skip=CKV_TF_1: Example code should use the latest version of the module
#checkov:skip=CKV_TF_2: Example code should use the latest version of the module
source = "github.com/anyscale/terraform-aws-anyscale-cloudfoundation-modules//modules/aws-anyscale-iam"

module_enabled = true

Expand Down Expand Up @@ -149,7 +157,9 @@ locals {
}

module "anyscale_eks_cluster" {
source = "../../../../terraform-aws-anyscale-cloudfoundation-modules/modules/aws-anyscale-eks-cluster"
#checkov:skip=CKV_TF_1: Example code should use the latest version of the module
#checkov:skip=CKV_TF_2: Example code should use the latest version of the module
source = "github.com/anyscale/terraform-aws-anyscale-cloudfoundation-modules//modules/aws-anyscale-eks-cluster"

module_enabled = true

Expand Down Expand Up @@ -182,6 +192,8 @@ module "anyscale_eks_cluster" {
}

module "anyscale_eks_nodegroups" {
#checkov:skip=CKV_TF_1: Example code should use the latest version of the module
#checkov:skip=CKV_TF_2: Example code should use the latest version of the module
source = "../../../../terraform-aws-anyscale-cloudfoundation-modules/modules/aws-anyscale-eks-nodegroups"

module_enabled = true
Expand Down

0 comments on commit 10f47bb

Please sign in to comment.