mirror of
https://github.com/hanzoai/o11y-foundry.git
synced 2026-11-03 02:08:34 +00:00
#### Features - Adds forge for the ecs ec2 terraform casting - Adds cast for terraform - Adds tooler for terraform Related: https://github.com/SigNoz/platform-pod/issues/1772
21 lines
1.3 KiB
Go Template
21 lines
1.3 KiB
Go Template
{{- $region := index $.Metadata.Annotations "foundry.signoz.io/ecs/region" -}}
|
|
{{- $configBucket := index $.Metadata.Annotations "foundry.signoz.io/ecs/config-bucket" -}}
|
|
{{- $taskRoleArn := index $.Metadata.Annotations "foundry.signoz.io/ecs/task-role-arn" -}}
|
|
{{- $taskExecutionRoleArn := index $.Metadata.Annotations "foundry.signoz.io/ecs/task-execution-role-arn" -}}
|
|
{{- $clusterID := index $.Metadata.Annotations "foundry.signoz.io/ecs/cluster-id" -}}
|
|
{{- $subnetIDs := index $.Metadata.Annotations "foundry.signoz.io/ecs/subnet-ids" -}}
|
|
{{- $securityGroupIDs := index $.Metadata.Annotations "foundry.signoz.io/ecs/security-group-ids" -}}
|
|
{{- $vpcID := index $.Metadata.Annotations "foundry.signoz.io/ecs/vpc-id" -}}
|
|
{{- $capacityProvider := index $.Metadata.Annotations "foundry.signoz.io/ecs/capacity-provider" -}}
|
|
{
|
|
"region": "{{ $region }}",
|
|
"ecs_cluster_id": "{{ $clusterID }}",
|
|
"subnet_ids": [{{ range $i, $v := splitList "," $subnetIDs }}{{ if $i }}, {{ end }}"{{ trim $v }}"{{ end }}],
|
|
"security_group_ids": [{{ range $i, $v := splitList "," $securityGroupIDs }}{{ if $i }}, {{ end }}"{{ trim $v }}"{{ end }}],
|
|
"vpc_id": "{{ $vpcID }}",
|
|
"config_bucket": "{{ $configBucket }}",
|
|
"task_role_arn": "{{ $taskRoleArn }}",
|
|
"task_execution_role_arn": "{{ $taskExecutionRoleArn }}",
|
|
"capacity_provider": "{{ $capacityProvider }}"
|
|
}
|