Skip to content

ministryofjustice/cloud-platform-terraform-service-pod

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cloud-platform-terraform-service-pod

Releases

This Terraform module will create a pod in a namespace that runs the cloud-platform-service-pod Docker image, which includes the AWS CLI v2.

Usage

module "service_pod" {
  source = "github.com/ministryofjustice/cloud-platform-terraform-service-pod?ref=version" # use the latest release

  # Configuration
  namespace            = var.namespace
  service_account_name = module.irsa.service_account.name
}

See the examples/ folder for more information.

Requirements

Name Version
terraform >= 1.2.5
aws >= 4.0.0
kubernetes >= 2.0.0
random >= 3.0.0

Providers

Name Version
aws >= 4.0.0
kubernetes >= 2.0.0
random >= 3.0.0

Modules

No modules.

Resources

Name Type
kubernetes_deployment.service_pod resource
random_id.name resource
aws_ecr_repository.service_pod data source

Inputs

Name Description Type Default Required
namespace Namespace name to create the pod string n/a yes
service_account_name Name of the service account to attach to the pod string n/a yes
service_pod_count Amount of service pods to create (default: 1) number 1 no

Outputs

No outputs.

Reading Material