-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoutput.tf
45 lines (37 loc) · 1.48 KB
/
output.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
output "runner_aws_access_key_id" {
value = aws_iam_access_key.ec2_github_runner.id
description = "The access key generated for the EC2 github runner."
}
output "runner_aws_secret_access_key" {
value = aws_iam_access_key.ec2_github_runner.secret
sensitive = true
description = "The secret key generated for the EC2 github runner."
}
output "runner_home_dir" {
value = local.runner_home_dir
description = "The directory where pre-installed actions-runner software and scripts are located."
}
output "runner_iam_role_name" {
value = aws_iam_role.ec2_github_runner.name
description = "The name of the EC2 github runner IAM role."
}
output "runner_subnet_id" {
value = aws_subnet.ec2_github_runner.id
description = "ID of the EC2 github runner subnet."
}
output "runner_security_group_id" {
value = aws_security_group.ec2_github_runner.id
description = "ID of the EC2 github runner security group."
}
output "ec2_runner_image_info_x86" {
value = var.architecture == "x86" ? aws_imagebuilder_image.ec2_github_runner_x86[0].output_resources : []
description = "x86_64 architecture image information."
}
output "ec2_runner_image_info_arm64" {
value = var.architecture == "arm64" ? aws_imagebuilder_image.ec2_github_runner_arm64[0].output_resources : []
description = "arm64 architecture image information."
}
output "runner_aws_region" {
value = data.aws_region.current.name
description = "The EC2 github runner region."
}