Skip to content

Commit bec1756

Browse files
authored
Merge pull request #3 from danbarr:single-exec
Add variable for singlee execution mode
2 parents e2f2c54 + a7f5df8 commit bec1756

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ resource "aws_ecs_task_definition" "tfc_agent" {
6565
environment = concat([
6666
{
6767
name = "TFC_AGENT_SINGLE",
68-
value = "true"
68+
value = tostring(var.agent_single_execution)
6969
},
7070
{
7171
name = "TFC_AGENT_NAME",

variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ variable "agent_image" {
3838
default = "hashicorp/tfc-agent:latest"
3939
}
4040

41+
variable "agent_single_execution" {
42+
type = bool
43+
description = "Whether to use single-execution mode."
44+
default = true
45+
}
46+
4147
variable "extra_env_vars" {
4248
type = list(object({
4349
name = string

0 commit comments

Comments
 (0)