resource "aws_codebuild_project" "ssrf-app" { name = "ssrf-app" service_role = aws_iam_role.cf-codebuild-role.arn description = "test_codebuild_project" build_timeout = "5" cache { type = "S3" location = aws_s3_bucket.cf-codebuild-bucket.id } artifacts { type = "NO_ARTIFACTS" } environment { compute_type = "BUILD_GENERAL1_SMALL" image = "aws/codebuild/standard:6.0" type = "LINUX_CONTAINER" privileged_mode = true environment_variable { name = "ECR_REPOSITORY" value = aws_ecr_repository.node-ssrf-app.repository_url } } source { type = "GITHUB" location = "https://github.com/sethsec/Nodejs-SSRF-App" buildspec = file("${path.module}/codebuild-buildspec.yml") git_clone_depth = 1 } } resource "aws_s3_bucket" "cf-codebuild" { bucket = "cf-codebuild-${random_string.resource-suffix.result}" } resource "aws_iam_role" "cf-codebuild-role" { name = "cf-codebuild-role" assume_role_policy = <