diff --git a/infrastructure/stacks/development-and-deployment-tools/development_pipeline.tf b/infrastructure/stacks/development-and-deployment-tools/development_pipeline.tf index 6276699c5..e22b6a90b 100644 --- a/infrastructure/stacks/development-and-deployment-tools/development_pipeline.tf +++ b/infrastructure/stacks/development-and-deployment-tools/development_pipeline.tf @@ -19,7 +19,7 @@ resource "aws_codepipeline" "development_pipeline" { output_artifacts = ["source_output"] configuration = { - ConnectionArn = aws_codestarconnections_connection.github.arn + ConnectionArn = aws_codestarconnections_connection.github_nhsdigital.arn FullRepositoryId = "${var.github_owner}/${var.github_repo}" BranchName = var.development_pipeline_branch_name DetectChanges = true diff --git a/infrastructure/stacks/development-and-deployment-tools/github.tf b/infrastructure/stacks/development-and-deployment-tools/github.tf index 1547999fc..114db9cfe 100644 --- a/infrastructure/stacks/development-and-deployment-tools/github.tf +++ b/infrastructure/stacks/development-and-deployment-tools/github.tf @@ -3,6 +3,11 @@ resource "aws_codestarconnections_connection" "github" { provider_type = "GitHub" } +resource "aws_codestarconnections_connection" "github_nhsdigital" { + name = "${var.project_id}-${var.environment}-nhsdigital" + provider_type = "GitHub" +} + resource "aws_codebuild_source_credential" "github_authenication" { auth_type = "PERSONAL_ACCESS_TOKEN" server_type = "GITHUB"