Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use feature flag in the start command #1770

Merged
merged 2 commits into from
Mar 6, 2025

Conversation

vasireddy99
Copy link
Contributor

[dev] Use feature flag in the start command

cherry picking the commit from dev branch #1767

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@vasireddy99 vasireddy99 requested a review from a team as a code owner March 4, 2025 17:22
[dev] Use feature flag in the start command
@@ -36,7 +36,7 @@ variable "ami_family" {
otconfig_destination = "/tmp/ot-default.yml"
download_command_pattern = "curl %s --output aws-otel-collector.rpm"
install_command = "sudo rpm -Uvh aws-otel-collector.rpm"
start_command = "sudo /opt/aws/aws-otel-collector/bin/aws-otel-collector-ctl -c \"$(echo -n 'CONFIGURATION_URI_PLACEHOLDER' | base64 -d)\" -a start"
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"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not familiar with terraform, but replace seems to just replace the string as is.

do we need the $ before FEATUREGATE_PLACEHOLDER?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Terraform is replaces it as a literal string, hence it wouldn't be required, committed the changes.

@vasireddy99 vasireddy99 requested a review from roystchiang March 6, 2025 22:15
@vasireddy99 vasireddy99 merged commit fb25194 into aws-observability:terraform Mar 6, 2025
10 checks passed
@vasireddy99 vasireddy99 deleted the featureflag branch March 6, 2025 22:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants