Skip to content

Commit

Permalink
feat: add parameter to specify the cpu architecture
Browse files Browse the repository at this point in the history
Signed-off-by: francesco-racciatti <[email protected]>
  • Loading branch information
francesco-racciatti committed Oct 4, 2024
1 parent eb664d6 commit f7110cb
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ No modules.
| <a name="input_collector_host"></a> [collector\_host](#input\_collector\_host) | Sysdig collector host | `string` | `"collector.sysdigcloud.com"` | no |
| <a name="input_collector_port"></a> [collector\_port](#input\_collector\_port) | Sysdig collector port | `string` | `"6443"` | no |
| <a name="input_default_tags"></a> [default\_tags](#input\_default\_tags) | Default tags for all Sysdig Fargate Orchestrator resources | `map(string)` | <pre>{<br> "Application": "sysdig",<br> "Module": "fargate-orchestrator-agent"<br>}</pre> | no |
| <a name="input_lb_name"></a> [lb\_name](#input\_lb\_name) | Load balancer name. | `string` |`""` | no |
| <a name="input_lb_name"></a> [lb\_name](#input\_lb\_name) | Load balancer name. | `string` | `""` | no |
| <a name="input_orchestrator_port"></a> [orchestrator\_port](#input\_orchestrator\_port) | Port for the workload agent to connect | `number` | `6667` | no |
| <a name="input_tags"></a> [tags](#input\_tags) | Extra tags for all Sysdig Fargate Orchestrator resources | `map(string)` | `{}` | no |
| <a name="input_collector_ca_certificate_type"></a> [collector\_ca\_certificate.type](#collector\_ca\_certificate.type) | Uploads the collector custom CA certificate - The value type | `string` | `"base64"` | no |
Expand All @@ -106,7 +106,8 @@ No modules.
| <a name="input_agent_log_level"></a> [agent\_log\_level](#input\_agent\_log\_level) | Orchestrator agent log level | `string` | `"info"` | no |
| <a name="input_cpu"></a> [cpu](#input\_cpu) | Task CPU allocation | `string` | `"2048"` | no |
| <a name="input_memory"></a> [memory](#input\_memory) | Task memory allocation | `string` | `"8192"` | no |
| <a name="input_log_retention_days"></a> [log\_retention\_days](#input\_log\_retention\_days) | Task log retention period in days | `string` | `"0"` | no |
| <a name="input_log_retention_days"></a> [log\_retention\_days](#input\_log\_retention\_days) | Task log retention period in days | `string` | `"0"` | no |
| <a name="input_runtime_platform_cpu_architecture"></a> [runtime\_platform.cpu\_architecture](#runtime\_platform.cpu\_architecture) | The cpu architecture, either `X86_64` or `ARM64` | `string` | `"X86_64"` | no |

## Outputs

Expand Down
4 changes: 4 additions & 0 deletions task.tf
Original file line number Diff line number Diff line change
Expand Up @@ -143,5 +143,9 @@ resource "aws_ecs_task_definition" "orchestrator_agent" {
environment = local.environment
})

runtime_platform {
cpu_architecture = var.runtime_platform.cpu_architecture
}

tags = merge(var.tags, var.default_tags)
}
10 changes: 10 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -210,3 +210,13 @@ variable "log_retention_days" {
type = string
default = "0"
}

variable "runtime_platform" {
description = "The runtime platform configuration"
type = object({
cpu_architecture = string
})
default = ({
cpu_architecture = "X86_64"
})
}

0 comments on commit f7110cb

Please sign in to comment.