Skip to content

Commit 292faa1

Browse files
committed
Make terraform validate succeed
1 parent 46972eb commit 292faa1

File tree

5 files changed

+53
-35
lines changed

5 files changed

+53
-35
lines changed

examples/default/outputs.tf

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
output "action_runners" {
1+
output "runners" {
22
value = {
33
runners = module.runners.runners
44
}
55
}
66

7+
# output "binaries_syncer" {
8+
# value = {
9+
# binaries_syncer = module.runners.binaries_syncer
10+
# }
11+
# }
712

8-
output "lambda_binaries_syncer_name" {
9-
value = module.runners.binaries_syncer.lambda.id
10-
}
11-
12-
13-
output "github_app_webhook_secret" {
14-
value = random_password.random.result
13+
output "webhook" {
14+
value = {
15+
gateway = module.runners.webhook.gateway
16+
}
1517
}
16-
17-

main.tf

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,15 @@ module "runners" {
4343

4444
s3_bucket_runner_binaries = module.runner_binaries.bucket
4545
s3_location_runner_binaries = local.s3_action_runner_url
46+
47+
sqs = aws_sqs_queue.queued_builds
48+
49+
github_app_client_id = var.github_app_client_id
50+
github_app_client_secret = var.github_app_client_secret
51+
github_app_id = var.github_app_id
52+
github_app_key_base64 = var.github_app_key_base64
53+
54+
enable_organization_runners = var.enable_organization_runners
4655
}
4756

4857
module "runner_binaries" {
Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
{
2-
"Effect": "Allow",
3-
"Action": [
4-
"ec2:DescribeInstances*",
5-
"ec2:DescribeTags",
6-
"ec2:CreateTags",
7-
"ec2:TerminateInstances"
8-
],
9-
"Resource": ["*"]
10-
},
11-
}
2+
"Version": "2012-10-17",
3+
"Statement": [
4+
{
5+
"Effect": "Allow",
6+
"Action": [
7+
"ec2:DescribeInstances*",
8+
"ec2:DescribeTags",
9+
"ec2:CreateTags",
10+
"ec2:TerminateInstances"
11+
],
12+
"Resource": ["*"]
13+
}
14+
]
15+
}
Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
11
{
2-
"Effect": "Allow",
3-
"Action": [
4-
"ec2:DescribeInstances",
5-
"ec2:DescribeTags",
6-
"ec2:CreateTags",
7-
"ec2:RunInstances",
8-
],
9-
"Resource": ["*"]
10-
},
11-
{
12-
"Effect": "Allow",
13-
"Action": "iam:PassRole",
14-
"Resource": "${arn_runner_instance_role}"
15-
}
16-
}
2+
"Version": "2012-10-17",
3+
"Statement": [
4+
{
5+
"Effect": "Allow",
6+
"Action": [
7+
"ec2:DescribeInstances",
8+
"ec2:DescribeTags",
9+
"ec2:CreateTags",
10+
"ec2:RunInstances"
11+
],
12+
"Resource": ["*"]
13+
},
14+
{
15+
"Effect": "Allow",
16+
"Action": "iam:PassRole",
17+
"Resource": "${arn_runner_instance_role}"
18+
}
19+
]
20+
}

outputs.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ output "binaries_syncer" {
1616

1717
output "webhook" {
1818
value = {
19+
gateway = module.webhook.gateway
1920
lambda = module.webhook.lambda
2021
lambda_role = module.webhook.lambda_role
2122
}

0 commit comments

Comments
 (0)