@@ -22,7 +22,7 @@ variable "ami_family" {
22
22
otconfig_destination = " /tmp/ot-default.yml"
23
23
download_command_pattern = " wget %s"
24
24
install_command = " while sudo fuser /var/cache/apt/archives/lock /var/lib/apt/lists/lock /var/lib/dpkg/lock /var/lib/dpkg/lock-frontend; do echo 'Waiting for dpkg lock...' && sleep 1; done; echo 'No dpkg lock and install collector.' && sudo dpkg -i aws-otel-collector.deb"
25
- start_command = " sudo /opt/aws/aws-otel-collector/bin/aws-otel-collector-ctl -c \" $(echo -n 'CONFIGURATION_URI_PLACEHOLDER' | base64 -d)\" -a start"
25
+ start_command = " sudo /opt/aws/aws-otel-collector/bin/aws-otel-collector-ctl -c \" $(echo -n 'CONFIGURATION_URI_PLACEHOLDER' | base64 -d)\" -f $FEATUREGATE_PLACEHOLDER - a start"
26
26
status_command = " sudo /opt/aws/aws-otel-collector/bin/aws-otel-collector-ctl -a status"
27
27
ssm_validate = " sudo /opt/aws/aws-otel-collector/bin/aws-otel-collector-ctl -a status | grep running"
28
28
connection_type = " ssh"
@@ -36,7 +36,7 @@ variable "ami_family" {
36
36
otconfig_destination = " /tmp/ot-default.yml"
37
37
download_command_pattern = " curl %s --output aws-otel-collector.rpm"
38
38
install_command = " sudo rpm -Uvh aws-otel-collector.rpm"
39
- start_command = " sudo /opt/aws/aws-otel-collector/bin/aws-otel-collector-ctl -c \" $(echo -n 'CONFIGURATION_URI_PLACEHOLDER' | base64 -d)\" -a start"
39
+ start_command = " sudo /opt/aws/aws-otel-collector/bin/aws-otel-collector-ctl -c \" $(echo -n 'CONFIGURATION_URI_PLACEHOLDER' | base64 -d)\" -f $FEATUREGATE_PLACEHOLDER - a start"
40
40
status_command = " sudo /opt/aws/aws-otel-collector/bin/aws-otel-collector-ctl -a status"
41
41
ssm_validate = " sudo /opt/aws/aws-otel-collector/bin/aws-otel-collector-ctl -a status | grep running"
42
42
connection_type = " ssh"
@@ -50,7 +50,7 @@ variable "ami_family" {
50
50
otconfig_destination = " C:\\ ot-default.yml"
51
51
download_command_pattern = " powershell -command \" Invoke-WebRequest -Uri %s -OutFile C:\\ aws-otel-collector.msi\" "
52
52
install_command = " msiexec /i C:\\ aws-otel-collector.msi"
53
- start_command = " powershell -command \" &{ $url = \\\" $([System.Text.Encoding]::ASCII.GetString([System.Convert]::FromBase64String('CONFIGURATION_URI_PLACEHOLDER')))\\\" ; . 'C:\\ Program Files\\ Amazon\\ AwsOtelCollector\\ aws-otel-collector-ctl.ps1' -ConfigLocation \\\" $url\\\" -Action start}\" "
53
+ start_command = " powershell -command \" &{ $url = \\\" $([System.Text.Encoding]::ASCII.GetString([System.Convert]::FromBase64String('CONFIGURATION_URI_PLACEHOLDER')))\\\" ; . 'C:\\ Program Files\\ Amazon\\ AwsOtelCollector\\ aws-otel-collector-ctl.ps1' -ConfigLocation \\\" $url\\\" -FeatureGates $FEATUREGATE_PLACEHOLDER - Action start}\" "
54
54
status_command = " powershell \" & 'C:\\ Program Files\\ Amazon\\ AwsOtelCollector\\ aws-otel-collector-ctl.ps1' -Action status\" "
55
55
ssm_validate = " powershell \" & 'C:\\ Program Files\\ Amazon\\ AwsOtelCollector\\ aws-otel-collector-ctl.ps1' -Action status\" | findstr running"
56
56
connection_type = " winrm"
0 commit comments