Skip to content

feat: added variables in the root module to allow passing in pre and … #45

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
- Added the ability to pass in pre and post install scripts to the userdata script for the EC2 instances

## [0.2.0] - 2020-06-15

Expand Down
3 changes: 3 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ module "runners" {
instance_profile_path = var.instance_profile_path
role_path = var.role_path
role_permissions_boundary = var.role_permissions_boundary

userdata_pre_install = var.userdata_pre_install
userdata_post_install = var.userdata_post_install
}

module "runner_binaries" {
Expand Down
10 changes: 10 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -155,3 +155,13 @@ variable "kms_key_id" {
type = string
default = null
}
variable "userdata_pre_install" {
type = string
default = ""
description = "Script to be ran before the GitHub Actions runner is installed on the EC2 instances"
}
variable "userdata_post_install" {
type = string
default = ""
description = "Script to be ran after the GitHub Actions runner is installed on the EC2 instances"
}