diff --git a/infrastructure/stacks/development-and-deployment-tools/development_pipeline.tf b/infrastructure/stacks/development-and-deployment-tools/development_pipeline.tf index e22b6a90b..6276699c5 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_nhsdigital.arn + ConnectionArn = aws_codestarconnections_connection.github.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 114db9cfe..1547999fc 100644 --- a/infrastructure/stacks/development-and-deployment-tools/github.tf +++ b/infrastructure/stacks/development-and-deployment-tools/github.tf @@ -3,11 +3,6 @@ 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"