-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Update aws_iam_role_policy_attachment and make codebuild role ou…
…tput optional (#49)
- Loading branch information
1 parent
3fb16d8
commit 212957a
Showing
3 changed files
with
26 additions
and
26 deletions.
There are no files selected for viewing
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
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
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 |
---|---|---|
@@ -1,23 +1,24 @@ | ||
output "codebuild_project" { | ||
value = { | ||
name = aws_codebuild_project.this.name | ||
arn = aws_codebuild_project.this.arn | ||
} | ||
description = "Name and ARN of codebuild project, to be used when running GitHub Actions" | ||
output "codebuild_project_name" { | ||
value = aws_codebuild_project.this.name | ||
description = "Name of the codebuild project, to be used when running GitHub Actions" | ||
} | ||
|
||
output "codebuild_role" { | ||
value = { | ||
name = aws_iam_role.this[0].name | ||
arn = aws_iam_role.this[0].arn | ||
} | ||
description = "Name and ARN of codebuild role, to be used when running GitHub Actions" | ||
output "codebuild_project_arn" { | ||
value = aws_codebuild_project.this.arn | ||
description = "ARN of the codebuild project, to be used when running GitHub Actions" | ||
} | ||
|
||
output "ecr_repository" { | ||
value = { | ||
name = try(aws_ecr_repository.this[0].name, null) | ||
arn = try(aws_ecr_repository.this[0].arn, null) | ||
} | ||
description = "Name and ARN of ECR repository, to be used when to push custom docker images for the codebuiild project" | ||
output "codebuild_role_name" { | ||
value = try(aws_iam_role.this[0].name, var.iam_role_name) | ||
description = "Name of the codebuild role, to be used when running GitHub Actions" | ||
} | ||
|
||
output "ecr_repository_name" { | ||
value = try(aws_ecr_repository.this[0].name, null) | ||
description = "Name of the ECR repository, to be used when to push custom docker images for the codebuiild project" | ||
} | ||
|
||
output "aws_security_group_id" { | ||
value = try(aws_security_group.codebuild[0].id, null) | ||
description = "ID of the security group created for the codebuild project" | ||
} |