Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

Commit

Permalink
Merge pull request #4 from ministryofjustice/tfstruc
Browse files Browse the repository at this point in the history
Refactor to meet standardised Terraform structure
  • Loading branch information
jakemulley authored Dec 23, 2022
2 parents 29f62de + bdd5f15 commit f8f60f7
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 13 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@ See the [examples/](examples/) folder.
| Name | Version |
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.14 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >=4.24.0 |
| <a name="requirement_helm"></a> [helm](#requirement\_helm) | >=2.6.0 |

## Providers

| Name | Version |
|------|---------|
| <a name="provider_aws"></a> [aws](#provider\_aws) | n/a |
| <a name="provider_helm"></a> [helm](#provider\_helm) | n/a |
| <a name="provider_aws"></a> [aws](#provider\_aws) | >=4.24.0 |
| <a name="provider_helm"></a> [helm](#provider\_helm) | >=2.6.0 |

## Modules

Expand Down
2 changes: 1 addition & 1 deletion examples/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ provider "aws" {
}

module "template" {
source = "../"
source = "../"
eks_cluster = "test"
}
3 changes: 2 additions & 1 deletion examples/versions.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
source = "hashicorp/aws"
version = ">=4.24.0"
}
}
required_version = ">= 0.14"
Expand Down
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ data "aws_iam_policy_document" "efs_doc" {
condition {
test = "StringLike"
variable = "aws:RequestTag/efs.csi.aws.com/cluster"
values = ["true"]
values = ["true"]
}
}

Expand All @@ -36,7 +36,7 @@ data "aws_iam_policy_document" "efs_doc" {
condition {
test = "StringEquals"
variable = "aws:ResourceTag/efs.csi.aws.com/cluster"
values = ["true"]
values = ["true"]
}
}
}
Expand Down
10 changes: 3 additions & 7 deletions versions.tf
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
}
kubernetes = {
source = "hashicorp/kubernetes"
source = "hashicorp/aws"
version = ">=4.24.0"
}
helm = {
source = "hashicorp/helm"
}
kubectl = {
source = "gavinbunney/kubectl"
version = ">=2.6.0"
}
}
required_version = ">= 0.14"
Expand Down

0 comments on commit f8f60f7

Please sign in to comment.