File tree Expand file tree Collapse file tree 4 files changed +39
-0
lines changed
modules/action-runner-binary-cache Expand file tree Collapse file tree 4 files changed +39
-0
lines changed Original file line number Diff line number Diff line change 1+ locals {
2+ action_runner_distribution_object_key = " actions-runner-linux.tar.gz"
3+ }
4+
5+ resource "aws_s3_bucket" "action_dist" {
6+ bucket = var. distribution_bucket_name
7+ acl = " private"
8+ force_destroy = true
9+ tags = var. tags
10+ }
11+
Original file line number Diff line number Diff line change 1+ output "distribution_bucket" {
2+ value = aws_s3_bucket. action_dist
3+ }
4+
5+ output "s3_location_runner_distribution" {
6+ value = " s3://${ aws_s3_bucket . action_dist . id } /${ local . action_runner_distribution_object_key } "
7+ }
Original file line number Diff line number Diff line change 1+ variable "aws_region" {
2+ description = " AWS region."
3+ type = string
4+ }
5+
6+ variable "tags" {
7+ description = " Map of tags that will be added to created resources. By default resources will be tagged with name and environment."
8+ type = map (string )
9+ default = {}
10+ }
11+
12+ variable "environment" {
13+ description = " A name that identifies the environment, used as prefix and for tagging."
14+ type = string
15+ }
16+
17+ variable "distribution_bucket_name" {
18+ description = " Bucket for storing the action runner distribution."
19+ type = string
20+ }
21+
File renamed without changes.
You can’t perform that action at this time.
0 commit comments