Skip to content

Commit

Permalink
Add ecr and service account
Browse files Browse the repository at this point in the history
  • Loading branch information
vertism committed Jan 17, 2025
1 parent 5699134 commit 1324ed1
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/*
* Make sure that you use the latest version of the module by changing the
* `ref=` value in the `source` attribute to the latest version listed on the
* releases page of this repository.
*
*/
module "ecr" {
source = "github.com/ministryofjustice/cloud-platform-terraform-ecr-credentials?ref=7.1.0"

# Repository configuration
repo_name = var.namespace

# OpenID Connect configuration
oidc_providers = ["github"]
github_repositories = ["cdpt-deploys-dashboard"]

# Tags
business_unit = var.business_unit
application = var.application
is_production = var.is_production
team_name = var.team_name # also used for naming the container repository
namespace = var.namespace # also used for creating a Kubernetes ConfigMap
environment_name = var.environment
infrastructure_support = var.infrastructure_support
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module "serviceaccount" {
source = "github.com/ministryofjustice/cloud-platform-terraform-serviceaccount?ref=1.1.0"

namespace = var.namespace
kubernetes_cluster = var.kubernetes_cluster

serviceaccount_token_rotated_date = "01-01-2000"

# Uncomment and provide repository names to create github actions secrets
# containing the ca.crt and token for use in github actions CI/CD pipelines
github_repositories = ["cdpt-deploys-dashboard"]
}

0 comments on commit 1324ed1

Please sign in to comment.