Skip to content

Addiing in zookeeper example, fixes #159 #1790

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

rshade
Copy link
Contributor

@rshade rshade commented Jan 14, 2025

This pull request includes several significant changes to set up a ZooKeeper cluster on AWS using Pulumi. The changes span multiple files, including configuration files, code for infrastructure setup, and documentation.

Key changes include:

Infrastructure Setup:

  • aws-ts-zookeeper/index.ts: Added comprehensive code to configure and deploy a ZooKeeper cluster on AWS. This includes setting up a VPC, security groups, IAM roles, instance profiles, launch templates, auto-scaling groups, load balancers, and CloudWatch monitoring.

Configuration Files:

  • aws-ts-zookeeper/Pulumi.yaml: Added configuration details for the Pulumi project, specifying the project name, runtime, package manager, and a description of the project.
  • aws-ts-zookeeper/package.json: Added package dependencies for Pulumi and AWS libraries required for the project.
  • aws-ts-zookeeper/tsconfig.json: Added TypeScript configuration options, including strict type checking, output directory, and module resolution settings.

Documentation:

  • aws-ts-zookeeper/README.md: Added detailed documentation on the components and features of the ZooKeeper cluster, as well as instructions for deployment.

Gitignore:

@rshade rshade force-pushed the rshade/zookeeper branch 2 times, most recently from 01c0583 to 36282ac Compare January 14, 2025 20:04
@rshade rshade requested a review from Copilot March 21, 2025 12:15
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

This PR introduces a new example setup for deploying a ZooKeeper cluster on AWS using Pulumi in TypeScript. The key changes include a complete cloud infrastructure configuration (VPC, security groups, IAM roles, launch template, auto scaling group, and load balancer), an accompanying README with deployment instructions, and a Pulumi project file.

Reviewed Changes

Copilot reviewed 3 out of 6 changed files in this pull request and generated 2 comments.

File Description
aws-ts-zookeeper/index.ts Implements the AWS infrastructure and configuration for ZooKeeper.
aws-ts-zookeeper/README.md Provides documentation and setup instructions for the ZooKeeper cluster.
aws-ts-zookeeper/Pulumi.yaml Defines the Pulumi project configuration and runtime details.
Files not reviewed (3)
  • aws-ts-zookeeper/.gitignore: Language not supported
  • aws-ts-zookeeper/package.json: Language not supported
  • aws-ts-zookeeper/tsconfig.json: Language not supported

volumeSize: 50,
volumeType: "gp3",
deleteOnTermination: "true",
encrypted: "true",
Copy link
Preview

Copilot AI Mar 21, 2025

Choose a reason for hiding this comment

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

The 'encrypted' property for the EBS volume is set as a string instead of a boolean. Consider updating it to use a boolean value (true) to match the expected type.

Suggested change
encrypted: "true",
encrypted: true,

Copilot uses AI. Check for mistakes.

// Target Group
const targetGroup = new aws.lb.TargetGroup(`${projectName}-tg`, {
port: 2181,
protocol: "HTTP",
Copy link
Preview

Copilot AI Mar 21, 2025

Choose a reason for hiding this comment

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

ZooKeeper typically uses TCP rather than HTTP. If the service does not support HTTP, update the target group protocol to 'TCP' or adjust the configuration accordingly.

Suggested change
protocol: "HTTP",
protocol: "TCP",

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.

1 participant