diff --git a/README.md b/README.md index 823c198..6b285a6 100644 --- a/README.md +++ b/README.md @@ -241,6 +241,7 @@ No modules. | Name | Description | |------|-------------| | [aws\_security\_group\_id](#output\_aws\_security\_group\_id) | ID of the security group created for the CodeBuild project | +| [cloudwatch\_log\_group\_name](#output\_cloudwatch\_log\_group\_name) | Name of the CloudWatch log group for the CodeBuild project | | [codebuild\_project\_arn](#output\_codebuild\_project\_arn) | ARN of the CodeBuild project, to be used when running GitHub Actions | | [codebuild\_project\_name](#output\_codebuild\_project\_name) | Name of the CodeBuild project, to be used when running GitHub Actions | | [codebuild\_role\_name](#output\_codebuild\_role\_name) | Name of the CodeBuild role, to be used when running GitHub Actions | diff --git a/examples/multiple-runners/README.md b/examples/multiple-runners/README.md index 1471b8c..c8ab412 100644 --- a/examples/multiple-runners/README.md +++ b/examples/multiple-runners/README.md @@ -29,7 +29,7 @@ module "runners" { | Name | Description | Type | Default | Required | |------|-------------|------|---------|:--------:| | [github\_personal\_access\_token\_ssm\_parameter](#input\_github\_personal\_access\_token\_ssm\_parameter) | The GitHub personal access token to use for accessing the repository | `string` | n/a | yes | -| [source\_locations](#input\_source\_locations) | Map of source locations to use when creating runners |
map(object({
source_location = string
source_name = string
})) | {
"example-1": {
"source_location": "https://github.com/my-org/example-1.git",
"source_name": "example-1"
},
"example-2": {
"source_location": "https://github.com/my-org/example-2.git",
"source_name": "example-2"
}
} | no |
+| [source\_locations](#input\_source\_locations) | Map of source locations to use when creating runners | map(object({
source_location = string
source_name = string
})) | {
"example-1": {
"source_location": "https://github.com/my-org/example-1.git",
"source_name": "example-1"
},
"example-2": {
"source_location": "https://github.com/my-org/example-2.git",
"source_name": "example-2"
}
} | no |
| [subnet\_ids](#input\_subnet\_ids) | The list of Subnet IDs for AWS Codebuild to launch ephemeral EC2 instances in. | `list(string)` | n/a | yes |
| [vpc\_id](#input\_vpc\_id) | The VPC ID for AWS Codebuild to launch ephemeral instances in. | `string` | n/a | yes |
diff --git a/outputs.tf b/outputs.tf
index 6980435..e006f77 100644
--- a/outputs.tf
+++ b/outputs.tf
@@ -27,3 +27,8 @@ output "environment_image" {
value = local.environment_image
description = "Docker image used for this CodeBuild project"
}
+
+output "cloudwatch_log_group_name" {
+ value = try(aws_cloudwatch_log_group.codebuild[0].name, null)
+ description = "Name of the CloudWatch log group for the CodeBuild project"
+}