Skip to content

Commit

Permalink
Revert "Fix the github configuration in codebuild"
Browse files Browse the repository at this point in the history
This reverts commit b312549.
  • Loading branch information
nklkarthi committed Jul 4, 2024
1 parent b312549 commit bdbeabe
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions terraform-aws/modules/codepipeline/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,6 @@ resource "aws_codebuild_project" "webgoat_build" {
build_timeout = 60
}

resource "aws_codestarconnections_connection" "github" {
name = "github-connection"
provider_type = "GitHub"
}

resource "aws_codepipeline" "webgoat_pipeline" {
name = var.pipeline_name

Expand All @@ -46,11 +41,12 @@ resource "aws_codepipeline" "webgoat_pipeline" {
provider = "GitHub"
version = "1"

configuration = {
ConnectionArn = aws_codestarconnections_connection.github.arn
FullRepositoryId = "${var.github_owner}/${var.github_repo}"
BranchName = var.github_branch
}
configuration = {
Owner = var.github_owner
Repo = var.github_repo
Branch = var.github_branch
OAuthToken = var.github_token
}

output_artifacts = ["source_output"]
}
Expand Down

0 comments on commit bdbeabe

Please sign in to comment.