Skip to content

Conversation

rakshit-souvik
Copy link

No description provided.

@Copilot Copilot AI review requested due to automatic review settings July 25, 2025 11:34
@rakshit-souvik rakshit-souvik requested review from a team as code owners July 25, 2025 11:34
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Makes CloudWatch agent enablement configurable through a command-line parameter instead of being always enabled, allowing users to disable CloudWatch setup when not needed.

  • Adds --enable-cloudwatch command-line argument with boolean parsing to control CloudWatch activation
  • Implements conditional CloudWatch agent setup that skips installation when disabled
  • Updates Packer configuration to pass the CloudWatch enablement flag and job ID as environment variables

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
vagrant/cloudwatch-agent-setup.sh Adds conditional logic to skip CloudWatch setup when ENABLE_CLOUDWATCH is false
vagrant/aws-packer.json Adds environment variables for CloudWatch enablement and job ID, includes CloudWatch setup script
terraform/kafka_runner/util.py Adds --enable-cloudwatch command-line argument with boolean type parsing
terraform/kafka_runner/run-test.py Passes enable_cloudwatch and JOB_ID parameters to AMI creation function

parser.add_argument("--jdk-arch", action="store", type=str, default="x64",
help="JDK arch to execute."),
parser.add_argument("--nightly", action="store_true", default=False, help="Mark this as a nightly run")
parser.add_argument("--enable-cloudwatch", action="store", type=parse_bool, default=False, help="Enable cloudwatch metrics if true")
Copy link

Copilot AI Jul 25, 2025

Choose a reason for hiding this comment

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

The parse_bool function is used but not defined or imported in this file. This will cause a NameError when the argument parser is used.

Copilot uses AI. Check for mistakes.

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