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.
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.
| Name | Version |
|---|---|
| terraform | >= 1.2.5 |
| aws | >= 4.0.0 |
| kubernetes | >= 2.0.0 |
| random | >= 3.0.0 |
| Name | Version |
|---|---|
| aws | >= 4.0.0 |
| kubernetes | >= 2.0.0 |
| random | >= 3.0.0 |
No modules.
| Name | Type |
|---|---|
| kubernetes_deployment.service_pod | resource |
| random_id.name | resource |
| aws_ecr_repository.service_pod | data source |
| 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 |
No outputs.