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

ministryofjustice/cloud-platform-terraform-efs-pv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cloud-platform-terraform-efs-pv

This terraform module will create an EFS filesystem bound to the VPC's private subnets.

It will next createa a filesystem access point using the EFS CSI driver and a StorageClass in the cluster that can be used to mount the fs on multiple pods as ReadWriteMany.

Access security is handled via IAM, calling https://github.com/ministryofjustice/cloud-platform-terraform-irsa to create the required ServiceAccount.

Usage

See the examples/ folder.

Requirements

Name Version
terraform >= 0.14

Providers

Name Version
aws n/a

Modules

No modules.

Resources

Name Type
aws_caller_identity.current data source
aws_region.current data source

Inputs

No inputs.

Outputs

No outputs.

Tags

Some of the inputs are tags. All infrastructure resources need to be tagged according to the MOJ techincal guidance. The tags are stored as variables that you will need to fill out as part of your module.

Name Description Type Default Required
application string - yes
business-unit Area of the MOJ responsible for the service string mojdigital yes
environment-name string - yes
infrastructure-support The team responsible for managing the infrastructure. Should be of the form team-email string - yes
is-production string false yes
team_name string - yes
sqs_name string - yes

Reading Material

EFS CSI upstream: https://github.com/kubernetes-sigs/aws-efs-csi-driver EKS persistent storage HOWTO: https://aws.amazon.com/premiumsupport/knowledge-center/eks-persistent-storage/