Create alb.py #1
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Generated description
Below is a concise technical summary of the changes proposed in this PR:
graph LR main_("__main__"):::added awslogin_("awslogin"):::added vpc_creation_("vpc_creation"):::added create_ig_("create_ig"):::added create_security_group_("create_security_group"):::added create_subnet_("create_subnet"):::added create_instances_("create_instances"):::added create_alb_("create_alb"):::added create_tg_("create_tg"):::added createlistner_("createlistner"):::added regis_targets_("regis_targets"):::added BOTO3_EC2_RESOURCE_("BOTO3_EC2_RESOURCE"):::added BOTO3_EC2_CLIENT_("BOTO3_EC2_CLIENT"):::added BOTO3_ELBV2_CLIENT_("BOTO3_ELBV2_CLIENT"):::added main_ -- "Establishes AWS session with access credentials." --> awslogin_ main_ -- "Creates a new VPC and returns its ID." --> vpc_creation_ main_ -- "Creates and attaches internet gateway to VPC." --> create_ig_ main_ -- "Creates security groups for EC2 and ALB." --> create_security_group_ main_ -- "Creates multiple subnets within the VPC." --> create_subnet_ main_ -- "Launches EC2 instances with user data script." --> create_instances_ main_ -- "Creates ALB with specified subnets and security group." --> create_alb_ main_ -- "Creates target group for ALB in VPC." --> create_tg_ main_ -- "Creates ALB listener forwarding to target group." --> createlistner_ main_ -- "Registers EC2 instances as ALB target group targets." --> regis_targets_ create_instances_ -- "Uses boto3 EC2 resource to launch instances." --> BOTO3_EC2_RESOURCE_ create_security_group_ -- "Uses boto3 EC2 client to create security groups." --> BOTO3_EC2_CLIENT_ create_alb_ -- "Uses boto3 ELBv2 client to create ALB." --> BOTO3_ELBV2_CLIENT_ classDef added stroke:#15AA7A classDef removed stroke:#CD5270 classDef modified stroke:#EDAC4C linkStyle default stroke:#CBD5E1,font-size:13pxDeploys an AWS environment by provisioning a Virtual Private Cloud (VPC), multiple subnets, security groups, and EC2 instances, then configures an Application Load Balancer (ALB) with target groups and listeners to distribute traffic to the instances.
Latest Contributors(0)