-
-
Notifications
You must be signed in to change notification settings - Fork 331
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added IAM outputs, additional volumes mounts into runner, fix ssh var…
… name (#99) * Mount docker socket (#1) * Adding optional Docker socket mount * Adding new variables to README, fixing PR template * Sorting variables in doc * Adding jq check&install * Fixing Docker socket mount * Use runners_iam_instance_profile_name (#2) * Added credentials ecr helper * Adding more useful outputs (#5) * Feature/terraform 0.12 mounts (#4) * Additional volumes support * Fixing output * Fixed outputs typos and added an example * Fixed outputs typos and added an example * move locals to separate file to fix formatting * format * Use indented heredoc
- Loading branch information
1 parent
062957a
commit 13455c1
Showing
8 changed files
with
51 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
locals { | ||
// Convert list to a string separated and prepend by a comma | ||
docker_machine_options_string = format( | ||
",%s", | ||
join(",", formatlist("%q", var.docker_machine_options)), | ||
) | ||
|
||
// Ensure off peak is optional | ||
runners_off_peak_periods_string = var.runners_off_peak_periods == "" ? "" : format("OffPeakPeriods = %s", var.runners_off_peak_periods) | ||
|
||
// Define key for runner token for SSM | ||
secure_parameter_store_runner_token_key = "${var.environment}-${var.secure_parameter_store_runner_token_key}" | ||
|
||
// custom names for instances and security groups | ||
name_runner_instance = var.overrides["name_runner_agent_instance"] == "" ? local.tags["Name"] : var.overrides["name_runner_agent_instance"] | ||
name_sg = var.overrides["name_sg"] == "" ? local.tags["Name"] : var.overrides["name_sg"] | ||
runners_additional_volumes = <<-EOT | ||
%{~for volume in var.runners_additional_volumes~},"${volume}"%{endfor~} | ||
EOT | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters