-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
...spaces/live.cloud-platform.service.justice.gov.uk/cdpt-deploys-dashboard/resources/ecr.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |
12 changes: 12 additions & 0 deletions
12
....cloud-platform.service.justice.gov.uk/cdpt-deploys-dashboard/resources/serviceaccount.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] | ||
} |