Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/pre-commit-and-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:

- name: Install requirements
run: |
python -m venv .venv
python3 -m venv .venv
source .venv/bin/activate
if [ -f requirements.txt ]; then
pip install -r requirements.txt
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ repos:
hooks:
- id: Terraform docs
name: Terraform docs
entry: python examples/terraform-docs.py
entry: python3 examples/terraform-docs.py
language: system
types: [python]
always_run: true
Expand Down
2 changes: 1 addition & 1 deletion examples/addition-iam-policies/iam.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ data "aws_iam_policy_document" "secrets_manager" {
"secretsmanager:GetSecretValue"
]
resources = [
"arn:aws:secretsmanager:${data.aws_region.current.name}:${data.aws_caller_identity.current.account_id}:secret:github-runner-example"
"arn:aws:secretsmanager:${data.aws_region.current.region}:${data.aws_caller_identity.current.account_id}:secret:github-runner-example"
]
}
}
Expand Down
2 changes: 1 addition & 1 deletion examples/multiple-runners/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ module "runners" {
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| <a name="input_github_personal_access_token_ssm_parameter"></a> [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 |
| <a name="input_source_locations"></a> [source\_locations](#input\_source\_locations) | Map of source locations to use when creating runners | <pre>map(object({<br> source_location = string<br> source_name = string<br> }))</pre> | <pre>{<br> "example-1": {<br> "source_location": "https://github.com/my-org/example-1.git",<br> "source_name": "example-1"<br> },<br> "example-2": {<br> "source_location": "https://github.com/my-org/example-2.git",<br> "source_name": "example-2"<br> }<br>}</pre> | no |
| <a name="input_source_locations"></a> [source\_locations](#input\_source\_locations) | Map of source locations to use when creating runners | <pre>map(object({<br/> source_location = string<br/> source_name = string<br/> }))</pre> | <pre>{<br/> "example-1": {<br/> "source_location": "https://github.com/my-org/example-1.git",<br/> "source_name": "example-1"<br/> },<br/> "example-2": {<br/> "source_location": "https://github.com/my-org/example-2.git",<br/> "source_name": "example-2"<br/> }<br/>}</pre> | no |
| <a name="input_subnet_ids"></a> [subnet\_ids](#input\_subnet\_ids) | The list of Subnet IDs for AWS Codebuild to launch ephemeral EC2 instances in. | `list(string)` | n/a | yes |
| <a name="input_vpc_id"></a> [vpc\_id](#input\_vpc\_id) | The VPC ID for AWS Codebuild to launch ephemeral instances in. | `string` | n/a | yes |

Expand Down
2 changes: 1 addition & 1 deletion locals.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
locals {
aws_account_id = data.aws_caller_identity.current.account_id

aws_region = data.aws_region.current.name
aws_region = data.aws_region.current.region

has_s3_log_bucket = var.s3_logs_bucket_name != null

Expand Down
Loading