Skip to content

Commit

Permalink
ci: Satisfy pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Balsir committed Apr 18, 2024
1 parent f456994 commit 1e55710
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 5 deletions.
9 changes: 7 additions & 2 deletions examples/basic/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@ The code in this example shows how to use the module with basic configuration an
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
## Requirements

No requirements.
| Name | Version |
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.0 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 4.35.0 |
| <a name="requirement_helm"></a> [helm](#requirement\_helm) | >= 2.6.0 |
| <a name="requirement_kubernetes"></a> [kubernetes](#requirement\_kubernetes) | >= 2.20.0 |

## Modules

Expand All @@ -19,7 +24,7 @@ No requirements.
| <a name="module_ebs_without_irsa_role"></a> [ebs\_without\_irsa\_role](#module\_ebs\_without\_irsa\_role) | ../../ | n/a |
| <a name="module_eks_cluster"></a> [eks\_cluster](#module\_eks\_cluster) | cloudposse/eks-cluster/aws | 2.3.0 |
| <a name="module_eks_node_group"></a> [eks\_node\_group](#module\_eks\_node\_group) | cloudposse/eks-node-group/aws | 2.4.0 |
| <a name="module_vpc"></a> [vpc](#module\_vpc) | terraform-aws-modules/vpc/aws | 3.14.2 |
| <a name="module_vpc"></a> [vpc](#module\_vpc) | terraform-aws-modules/vpc/aws | 4.0.0 |

## Resources

Expand Down
4 changes: 2 additions & 2 deletions examples/basic/base.tf
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module "vpc" {
source = "terraform-aws-modules/vpc/aws"
version = "3.14.2"
version = "4.0.0"

name = "cluster-autoscaler-vpc"
name = "aws-ebs-csi-driver-vpc"
cidr = "10.0.0.0/16"
azs = ["eu-central-1a", "eu-central-1b"]
public_subnets = ["10.0.101.0/24", "10.0.102.0/24"]
Expand Down
8 changes: 7 additions & 1 deletion examples/basic/providers.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,16 @@ data "aws_eks_cluster_auth" "this" {
name = module.eks_cluster.eks_cluster_id
}

provider "kubernetes" {
host = data.aws_eks_cluster.this.endpoint
token = data.aws_eks_cluster_auth.this.token
cluster_ca_certificate = base64decode(data.aws_eks_cluster.this.certificate_authority[0].data)
}

provider "helm" {
kubernetes {
host = data.aws_eks_cluster.this.endpoint
token = data.aws_eks_cluster_auth.this.token
cluster_ca_certificate = base64decode(data.aws_eks_cluster.this.certificate_authority.0.data)
cluster_ca_certificate = base64decode(data.aws_eks_cluster.this.certificate_authority[0].data)
}
}
18 changes: 18 additions & 0 deletions examples/basic/versions.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
terraform {
required_version = ">= 1.0"

required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 4.35.0"
}
kubernetes = {
source = "hashicorp/kubernetes"
version = ">= 2.20.0"
}
helm = {
source = "hashicorp/helm"
version = ">= 2.6.0"
}
}
}

0 comments on commit 1e55710

Please sign in to comment.