{"id":1793,"date":"2024-04-30T00:58:51","date_gmt":"2024-04-30T00:58:51","guid":{"rendered":"https:\/\/www.nicktailor.com\/?p=1793"},"modified":"2024-05-02T01:29:55","modified_gmt":"2024-05-02T01:29:55","slug":"how-to-deploy-another-vpc-in-aws-with-scalable-ec2-for-ha","status":"publish","type":"post","link":"https:\/\/nicktailor.com\/tech-blog\/how-to-deploy-another-vpc-in-aws-with-scalable-ec2-for-ha\/","title":{"rendered":"How to Deploy Another VPC in AWS with Scalable EC2&#8217;s for HA using Terraform"},"content":{"rendered":"<div class=\"ul\" style=\"margin: 0;\">\n<div class=\"li\" style=\"margin: 0;\">\n<div style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0; padding-bottom: 0; line-height: 1.3; margin-left: 36pt;\"><span style=\"display: inline-block; position: relative; text-indent: -18pt;\"><span style=\"position: absolute; top: -0.34em; left: 0; font-size: 2em;\">\u2022<\/span>\u00a0<\/span>This will configure a new VPC<\/div>\n<\/div>\n<div class=\"li\" style=\"margin: 0;\">\n<div style=\"margin-bottom: 0; padding-bottom: 0; line-height: 1.3; margin-left: 36pt;\"><span style=\"display: inline-block; position: relative; text-indent: -18pt;\"><span style=\"position: absolute; top: -0.34em; left: 0; font-size: 2em;\">\u2022<\/span>\u00a0<\/span>Create a new subnet for use<\/div>\n<\/div>\n<div class=\"li\" style=\"margin: 0;\">\n<div style=\"margin-bottom: 0; padding-bottom: 0; line-height: 1.3; margin-left: 36pt;\"><span style=\"display: inline-block; position: relative; text-indent: -18pt;\"><span style=\"position: absolute; top: -0.34em; left: 0; font-size: 2em;\">\u2022<\/span>\u00a0<\/span>Create a new security group with bunch rules<\/div>\n<\/div>\n<div class=\"li\" style=\"margin: 0;\">\n<div style=\"margin-bottom: 0; padding-bottom: 0; line-height: 1.3; margin-left: 36pt;\"><span style=\"display: inline-block; position: relative; text-indent: -18pt;\"><span style=\"position: absolute; top: -0.34em; left: 0; font-size: 2em;\">\u2022<\/span>\u00a0<\/span>Create a key pair for your new instances<\/div>\n<\/div>\n<div class=\"li\" style=\"margin: 0;\">\n<div style=\"margin-bottom: 8pt; padding-bottom: 0; line-height: 1.3; margin-left: 36pt;\"><span style=\"display: inline-block; position: relative; text-indent: -18pt;\"><span style=\"position: absolute; top: -0.34em; left: 0; font-size: 2em;\">\u2022<\/span>\u00a0<\/span>Allow you to scale your instances cleanly use the count attribute.<\/div>\n<\/div>\n<\/div>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 8pt; padding-bottom: 0; line-height: 1.3;\">So we are going to do this a bit different than the other post. As the other post is just deploying one instance in an existing VPC.<\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 8pt; padding-bottom: 0; line-height: 1.3;\">This one is more fun. The structure we will use this time will allow you to scale your ec2 instances very cleanly. If you are using git repos to push out changes. Then having a main.tf for your instance is much simpler to manage at scale.<\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 8pt; padding-bottom: 0; line-height: 1.3;\"><span style=\"text-decoration: underline;\"><strong>File structure:<\/strong><\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 8pt; padding-bottom: 0; line-height: 1.3;\">terraform-project\/<\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 8pt; padding-bottom: 0; line-height: 1.3;\">\u251c\u2500\u2500 main.tf &lt;&#8211; Your main configuration file<\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 8pt; padding-bottom: 0; line-height: 1.3;\">\u251c\u2500\u2500 variables.tf &lt;&#8211; Variables file that has the inputs to pass<\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 8pt; padding-bottom: 0; line-height: 1.3;\">\u251c\u2500\u2500 outputs.tf &lt;&#8211; Outputs file<\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 8pt; padding-bottom: 0; line-height: 1.3;\">\u251c\u2500\u2500 security_group.tf &lt;&#8211; File containing security group rules<\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 8pt; padding-bottom: 0; line-height: 1.3;\">\u2514\u2500\u2500 modules\/<\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 8pt; padding-bottom: 0; line-height: 1.3;\">\u2514\u2500\u2500 instance\/<\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 8pt; padding-bottom: 0; line-height: 1.3;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u251c\u2500\u2500 main.tf &lt;- this file contains your ec2 instances<\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 8pt; padding-bottom: 0; line-height: 1.3;\">\u2514\u2500\u2500 variables.tf &lt;- variable file that defines we will pass for the module in main.tf to use<\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 8pt; padding-bottom: 0; line-height: 1.3;\"><span style=\"display: inline-block; height: 1em;\"><span style=\"display: none;\">.<\/span><\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 8pt; padding-bottom: 0; line-height: 1.3;\">Explaining the process:<\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 8pt; padding-bottom: 0; line-height: 1.3;\">Main.tf<\/p>\n<div class=\"ul\" style=\"margin: 0;\">\n<div class=\"li\" style=\"margin: 0;\">\n<div style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0; padding-bottom: 0; line-height: 1.3; margin-left: 36pt;\"><span style=\"display: inline-block; position: relative; text-indent: -18pt;\"><span style=\"position: absolute; top: -0.34em; left: 0; font-size: 2em;\">\u2022<\/span>\u00a0<\/span>We have defined the provider and availability zone; if you have more than one cloud, then its good create a provider.tf and carve them out.\u00a0<\/div>\n<\/div>\n<div class=\"li\" style=\"margin: 0;\">\n<div style=\"margin-bottom: 0; padding-bottom: 0; line-height: 1.3; margin-left: 36pt;\"><span style=\"display: inline-block; position: relative; text-indent: -18pt;\"><span style=\"position: absolute; top: -0.34em; left: 0; font-size: 2em;\">\u2022<\/span>\u00a0<\/span>The key-pair to import into aws in the second availability zone that was generated locally in my terraform directory using.<\/div>\n<div class=\"ul\" style=\"margin: 0;\">\n<div class=\"li\" style=\"margin: 0;\">\n<div style=\"margin-bottom: 0; padding-bottom: 0; line-height: 1.3; margin-left: 72pt;\"><span style=\"display: inline-block; position: relative; text-indent: -18pt;\"><span style=\"position: absolute; top: -0.37em; left: 0; font-size: 2em;\">\u25e6<\/span>\u00a0<\/span><em>ssh-keygen -t rsa -b 2048 -f .\/terraform-aws-key<\/em><\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"li\" style=\"margin: 0;\">\n<div style=\"margin-bottom: 0; padding-bottom: 0; line-height: 1.3; margin-left: 36pt;\"><span style=\"display: inline-block; position: relative; text-indent: -18pt;\"><span style=\"position: absolute; top: -0.34em; left: 0; font-size: 2em;\">\u2022<\/span>\u00a0<\/span>We are then saying lets create a new vpc called vpc2<\/div>\n<div class=\"ul\" style=\"margin: 0;\">\n<div class=\"li\" style=\"margin: 0;\">\n<div style=\"margin-bottom: 0; padding-bottom: 0; line-height: 1.3; margin-left: 72pt;\"><span style=\"display: inline-block; position: relative; text-indent: -18pt;\"><span style=\"position: absolute; top: -0.37em; left: 0; font-size: 2em;\">\u25e6<\/span>\u00a0<\/span>with the subnet cidr block 10.0.1.0\/24 to use internally<\/div>\n<\/div>\n<div class=\"li\" style=\"margin: 0;\">\n<div style=\"margin-bottom: 0; padding-bottom: 0; line-height: 1.3; margin-left: 72pt;\"><span style=\"display: inline-block; position: relative; text-indent: -18pt;\"><span style=\"position: absolute; top: -0.37em; left: 0; font-size: 2em;\">\u25e6<\/span>\u00a0<\/span>this will also map the public address to the new internal address assigned upon launch<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"li\" style=\"margin: 0;\">\n<div style=\"margin-bottom: 0; padding-bottom: 0; line-height: 1.3; margin-left: 36pt;\"><span style=\"display: inline-block; position: relative; text-indent: -18pt;\"><span style=\"position: absolute; top: -0.34em; left: 0; font-size: 2em;\">\u2022<\/span>\u00a0<\/span>We will be creating servers using variables defined in the variables.tf<\/div>\n<div class=\"ul\" style=\"margin: 0;\">\n<div class=\"li\" style=\"margin: 0;\">\n<div style=\"margin-bottom: 0; padding-bottom: 0; line-height: 1.3; margin-left: 72pt;\"><span style=\"display: inline-block; position: relative; text-indent: -18pt;\"><span style=\"position: absolute; top: -0.37em; left: 0; font-size: 2em;\">\u25e6<\/span>\u00a0<\/span>Instance type<\/div>\n<\/div>\n<div class=\"li\" style=\"margin: 0;\">\n<div style=\"margin-bottom: 0; padding-bottom: 0; line-height: 1.3; margin-left: 72pt;\"><span style=\"display: inline-block; position: relative; text-indent: -18pt;\"><span style=\"position: absolute; top: -0.37em; left: 0; font-size: 2em;\">\u25e6<\/span>\u00a0<\/span>AMID<\/div>\n<\/div>\n<div class=\"li\" style=\"margin: 0;\">\n<div style=\"margin-bottom: 0; padding-bottom: 0; line-height: 1.3; margin-left: 72pt;\"><span style=\"display: inline-block; position: relative; text-indent: -18pt;\"><span style=\"position: absolute; top: -0.37em; left: 0; font-size: 2em;\">\u25e6<\/span>\u00a0<\/span>key_pair name to use<\/div>\n<\/div>\n<div class=\"li\" style=\"margin: 0;\">\n<div style=\"margin-bottom: 0; padding-bottom: 0; line-height: 1.3; margin-left: 72pt;\"><span style=\"display: inline-block; position: relative; text-indent: -18pt;\"><span style=\"position: absolute; top: -0.37em; left: 0; font-size: 2em;\">\u25e6<\/span>\u00a0<\/span>new subnet to use<\/div>\n<\/div>\n<div class=\"li\" style=\"margin: 0;\">\n<div style=\"margin-bottom: 0; padding-bottom: 0; line-height: 1.3; margin-left: 72pt;\"><span style=\"display: inline-block; position: relative; text-indent: -18pt;\"><span style=\"position: absolute; top: -0.37em; left: 0; font-size: 2em;\">\u25e6<\/span>\u00a0<\/span>and assign the new security group to the ec2 instance deployed<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"li\" style=\"margin: 0;\">\n<div style=\"margin-bottom: 8pt; padding-bottom: 0; line-height: 1.3; margin-left: 36pt;\"><span style=\"display: inline-block; position: relative; text-indent: -18pt; font-weight: bold;\"><span style=\"position: absolute; top: -0.34em; left: 0; font-size: 2em;\">\u2022<\/span>\u00a0<\/span><strong>We also added a count on the module so when we deploy ec2\u2019s we can simply adjust the count number and pushed the code with a one tiny change as opposed to an entire block. You will see what I mean later.<\/strong><\/div>\n<div><span style=\"text-decoration: underline;\"><strong>main.tf<\/strong><\/span><\/div>\n<\/div>\n<\/div>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #4ec9b0;\">provider<\/span> <span style=\"color: #ce9178;\">&#8220;<\/span><span style=\"color: #ce9178;\">aws<\/span><span style=\"color: #ce9178;\">&#8220;<\/span><span style=\"color: #cccccc;\"> {<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">region <\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #ce9178;\">&#8220;us-west-2&#8221;<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">}<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"display: inline-block; height: 1em;\"><span style=\"display: none;\">.<\/span><\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #4ec9b0;\">resource<\/span> <span style=\"color: #ce9178;\">&#8220;<\/span><span style=\"color: #ce9178;\">aws_key_pair<\/span><span style=\"color: #ce9178;\">&#8220;<\/span> <span style=\"color: #ce9178;\">&#8220;my-nick-test-key&#8221;<\/span><span style=\"color: #cccccc;\"> {<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">key_name<\/span><span style=\"color: #9cdcfe;\">\u00a0\u00a0\u00a0<\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #ce9178;\">&#8220;my-nick-test-key&#8221;<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">public_key<\/span> <span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #dcdcaa;\">file<\/span><span style=\"color: #d4d4d4;\">(<\/span><span style=\"color: #ce9178;\">&#8220;<\/span><span style=\"color: #569cd6;\">${<\/span><span style=\"color: #569cd6;\">path<\/span><span style=\"color: #d4d4d4;\">.<\/span><span style=\"color: #9cdcfe;\">module<\/span><span style=\"color: #569cd6;\">}<\/span><span style=\"color: #ce9178;\">\/terraform-aws-key.pub&#8221;<\/span><span style=\"color: #d4d4d4;\">)<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">}<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"display: inline-block; height: 1em;\"><span style=\"display: none;\">.<\/span><\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #4ec9b0;\">resource<\/span> <span style=\"color: #ce9178;\">&#8220;<\/span><span style=\"color: #ce9178;\">aws_vpc<\/span><span style=\"color: #ce9178;\">&#8220;<\/span> <span style=\"color: #ce9178;\">&#8220;vpc2&#8221;<\/span><span style=\"color: #cccccc;\"> {<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">cidr_block<\/span> <span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #ce9178;\">&#8220;10.0.0.0\/16&#8221;<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">}<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"display: inline-block; height: 1em;\"><span style=\"display: none;\">.<\/span><\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #4ec9b0;\">resource<\/span> <span style=\"color: #ce9178;\">&#8220;<\/span><span style=\"color: #ce9178;\">aws_subnet<\/span><span style=\"color: #ce9178;\">&#8220;<\/span> <span style=\"color: #ce9178;\">&#8220;<\/span><span style=\"color: #ce9178;\">newsubnet<\/span><span style=\"color: #ce9178;\">&#8220;<\/span><span style=\"color: #cccccc;\"> {<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">vpc_id<\/span><span style=\"color: #9cdcfe;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #569cd6;\">aws_vpc<\/span><span style=\"color: #d4d4d4;\">.<\/span><span style=\"color: #9cdcfe;\">vpc2<\/span><span style=\"color: #d4d4d4;\">.<\/span><span style=\"color: #9cdcfe;\">id<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">cidr_block<\/span><span style=\"color: #9cdcfe;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #ce9178;\">&#8220;10.0.1.0\/24&#8221;<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">map_public_ip_on_launch<\/span> <span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #569cd6;\">true<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">}<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"display: inline-block; height: 1em;\"><span style=\"display: none;\">.<\/span><\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #4ec9b0;\">module<\/span> <span style=\"color: #ce9178;\">&#8220;<\/span><span style=\"color: #ce9178;\">web_server<\/span><span style=\"color: #ce9178;\">&#8220;<\/span><span style=\"color: #cccccc;\"> {<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">source \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 <\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #ce9178;\">&#8220;.\/<\/span><span style=\"color: #ce9178;\">module\/instance&#8221;<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">ami_id<\/span><span style=\"color: #9cdcfe;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #569cd6;\">var<\/span><span style=\"color: #d4d4d4;\">.<\/span><span style=\"color: #9cdcfe;\">ami_id<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">instance_type<\/span><span style=\"color: #9cdcfe;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #569cd6;\">var<\/span><span style=\"color: #d4d4d4;\">.<\/span><span style=\"color: #9cdcfe;\">instance<\/span><span style=\"color: #9cdcfe;\">_type<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">key_name<\/span><span style=\"color: #9cdcfe;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #569cd6;\">var<\/span><span style=\"color: #d4d4d4;\">.<\/span><span style=\"color: #9cdcfe;\">key_name_instance<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">subnet_id<\/span><span style=\"color: #9cdcfe;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #569cd6;\">aws_subnet<\/span><span style=\"color: #d4d4d4;\">.<\/span><span style=\"color: #9cdcfe;\">newsubnet<\/span><span style=\"color: #d4d4d4;\">.<\/span><span style=\"color: #9cdcfe;\">id<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><strong><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">instance_count<\/span><span style=\"color: #9cdcfe;\">\u00a0\u00a0\u00a0<\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #b5cea8;\">2<\/span><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #6a9955;\">\/<\/span><span style=\"color: #6a9955;\">\/ Specify the number of instances you want<\/span><\/strong><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">security_group_id<\/span> <span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #569cd6;\">aws_security_group<\/span><span style=\"color: #d4d4d4;\">.<\/span><span style=\"color: #9cdcfe;\">newcpanel<\/span><span style=\"color: #d4d4d4;\">.<\/span><span style=\"color: #9cdcfe;\">id<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">}<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 8pt; padding-bottom: 0; line-height: 1.3;\"><span style=\"display: inline-block; height: 1em;\"><span style=\"display: none;\">.<\/span><\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 8pt; padding-bottom: 0; line-height: 1.3;\"><span style=\"text-decoration: underline;\"><strong>Variables.tf<\/strong><\/span><\/p>\n<div class=\"ul\" style=\"margin: 0;\">\n<div class=\"li\" style=\"margin: 0;\">\n<div style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0; padding-bottom: 0; line-height: 1.3; margin-left: 36pt;\"><span style=\"display: inline-block; position: relative; text-indent: -18pt;\"><span style=\"position: absolute; top: -0.34em; left: 0; font-size: 2em;\">\u2022<\/span>\u00a0<\/span>Here we define the variables we want to pass to the module in main.tf for the instance.<\/div>\n<\/div>\n<div class=\"li\" style=\"margin: 0;\">\n<div style=\"margin-bottom: 0; padding-bottom: 0; line-height: 1.3; margin-left: 36pt;\"><span style=\"display: inline-block; position: relative; text-indent: -18pt;\"><span style=\"position: absolute; top: -0.34em; left: 0; font-size: 2em;\">\u2022<\/span>\u00a0<\/span>The linux image<\/div>\n<\/div>\n<div class=\"li\" style=\"margin: 0;\">\n<div style=\"margin-bottom: 0; padding-bottom: 0; line-height: 1.3; margin-left: 36pt;\"><span style=\"display: inline-block; position: relative; text-indent: -18pt;\"><span style=\"position: absolute; top: -0.34em; left: 0; font-size: 2em;\">\u2022<\/span>\u00a0<\/span>Instance type (size of the machine)<\/div>\n<\/div>\n<div class=\"li\" style=\"margin: 0;\">\n<div style=\"margin-bottom: 8pt; padding-bottom: 0; line-height: 1.3; margin-left: 36pt;\"><span style=\"display: inline-block; position: relative; text-indent: -18pt;\"><span style=\"position: absolute; top: -0.34em; left: 0; font-size: 2em;\">\u2022<\/span>\u00a0<\/span>Key-pair to use for the image<\/div>\n<\/div>\n<\/div>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #4ec9b0;\">variable<\/span> <span style=\"color: #ce9178;\">&#8220;<\/span><span style=\"color: #ce9178;\">ami_id<\/span><span style=\"color: #ce9178;\">&#8220;<\/span><span style=\"color: #cccccc;\"> {<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">description <\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #ce9178;\">&#8220;The AMI ID for the instance&#8221;<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">default \u00a0 \u00a0 <\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #ce9178;\">&#8220;ami-0913c47048d853921&#8221;<\/span> <span style=\"color: #6a9955;\">\/\/ Amazon Linux 2 AMI ID<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">}<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"display: inline-block; height: 1em;\"><span style=\"display: none;\">.<\/span><\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #4ec9b0;\">variable<\/span> <span style=\"color: #ce9178;\">&#8220;<\/span><span style=\"color: #ce9178;\">instance_type<\/span><span style=\"color: #ce9178;\">&#8220;<\/span><span style=\"color: #cccccc;\"> {<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">description <\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #ce9178;\">&#8220;The instance type for the instance&#8221;<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">default \u00a0 \u00a0 <\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #ce9178;\">&#8220;t<\/span><span style=\"color: #ce9178;\">2.micro<\/span><span style=\"color: #ce9178;\">&#8220;<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">}<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"display: inline-block; height: 1em;\"><span style=\"display: none;\">.<\/span><\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #4ec9b0;\">variable<\/span> <span style=\"color: #ce9178;\">&#8220;<\/span><span style=\"color: #ce9178;\">key_name_instance<\/span><span style=\"color: #ce9178;\">&#8220;<\/span><span style=\"color: #cccccc;\"> {<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">description <\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #ce9178;\">&#8220;The key pair name for the instance&#8221;<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">default \u00a0 \u00a0 <\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #ce9178;\">&#8220;my-nick-test-key&#8221;<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">}<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 8pt; padding-bottom: 0; line-height: 1.3;\"><span style=\"display: inline-block; height: 1em;\"><span style=\"display: none;\">.<\/span><\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 8pt; padding-bottom: 0; line-height: 1.3;\"><span style=\"text-decoration: underline;\"><strong>Security_group.tf<\/strong><\/span><\/p>\n<div class=\"ul\" style=\"margin: 0;\">\n<div class=\"li\" style=\"margin: 0;\">\n<div style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 8pt; padding-bottom: 0; line-height: 1.3; margin-left: 36pt;\"><span style=\"display: inline-block; position: relative; text-indent: -18pt;\"><span style=\"position: absolute; top: -0.34em; left: 0; font-size: 2em;\">\u2022<\/span>\u00a0<\/span>This will create a new security group in the us-west-2 with inbound rules similar to cpanel with the name newcpanel<\/div>\n<\/div>\n<\/div>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #4ec9b0;\">resource<\/span> <span style=\"color: #ce9178;\">&#8220;<\/span><span style=\"color: #ce9178;\">aws_security_group<\/span><span style=\"color: #ce9178;\">&#8220;<\/span> <span style=\"color: #ce9178;\">&#8220;<\/span><span style=\"color: #ce9178;\">newcpanel<\/span><span style=\"color: #ce9178;\">&#8220;<\/span><span style=\"color: #cccccc;\"> {<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">name \u00a0 \u00a0 \u00a0 \u00a0<\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #ce9178;\">&#8220;<\/span><span style=\"color: #ce9178;\">newcpanel<\/span><span style=\"color: #ce9178;\">&#8220;<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">description <\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #ce9178;\">&#8220;Allow inbound traffic&#8221;<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">vpc_id<\/span><span style=\"color: #9cdcfe;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #569cd6;\">aws_vpc<\/span><span style=\"color: #d4d4d4;\">.<\/span><span style=\"color: #9cdcfe;\">vpc2<\/span><span style=\"color: #d4d4d4;\">.<\/span><span style=\"color: #9cdcfe;\">id<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"display: inline-block; height: 1em;\"><span style=\"display: none;\">.<\/span><\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #6a9955;\">\/\/ POP3 TCP 110<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #4ec9b0;\">ingress<\/span><span style=\"color: #cccccc;\"> {<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">from_port<\/span><span style=\"color: #9cdcfe;\">\u00a0\u00a0\u00a0<\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #b5cea8;\">110<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">to_port<\/span><span style=\"color: #9cdcfe;\">\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #b5cea8;\">110<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">protocol \u00a0 \u00a0<\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #ce9178;\">&#8220;<\/span><span style=\"color: #ce9178;\">tcp<\/span><span style=\"color: #ce9178;\">&#8220;<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">cidr_blocks<\/span> <span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #d4d4d4;\">[<\/span><span style=\"color: #ce9178;\">&#8220;0.0.0.0\/0&#8221;<\/span><span style=\"color: #d4d4d4;\">]<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0 }<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"display: inline-block; height: 1em;\"><span style=\"display: none;\">.<\/span><\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #6a9955;\">\/\/ Custom TCP 20<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #4ec9b0;\">ingress<\/span><span style=\"color: #cccccc;\"> {<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">from_port<\/span><span style=\"color: #9cdcfe;\">\u00a0\u00a0\u00a0<\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #b5cea8;\">20<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">to_port<\/span><span style=\"color: #9cdcfe;\">\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #b5cea8;\">20<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">protocol \u00a0 \u00a0<\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #ce9178;\">&#8220;<\/span><span style=\"color: #ce9178;\">tcp<\/span><span style=\"color: #ce9178;\">&#8220;<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">cidr_blocks<\/span> <span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #d4d4d4;\">[<\/span><span style=\"color: #ce9178;\">&#8220;0.0.0.0\/0&#8221;<\/span><span style=\"color: #d4d4d4;\">]<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0 }<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"display: inline-block; height: 1em;\"><span style=\"display: none;\">.<\/span><\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #6a9955;\">\/\/ Custom TCP 587<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #4ec9b0;\">ingress<\/span><span style=\"color: #cccccc;\"> {<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">from_port<\/span><span style=\"color: #9cdcfe;\">\u00a0\u00a0\u00a0<\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #b5cea8;\">587<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">to_port<\/span><span style=\"color: #9cdcfe;\">\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #b5cea8;\">587<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">protocol \u00a0 \u00a0<\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #ce9178;\">&#8220;<\/span><span style=\"color: #ce9178;\">tcp<\/span><span style=\"color: #ce9178;\">&#8220;<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">cidr_blocks<\/span> <span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #d4d4d4;\">[<\/span><span style=\"color: #ce9178;\">&#8220;0.0.0.0\/0&#8221;<\/span><span style=\"color: #d4d4d4;\">]<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0 }<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"display: inline-block; height: 1em;\"><span style=\"display: none;\">.<\/span><\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #6a9955;\">\/\/ DNS (TCP) TCP 53<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #4ec9b0;\">ingress<\/span><span style=\"color: #cccccc;\"> {<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">from_port<\/span><span style=\"color: #9cdcfe;\">\u00a0\u00a0\u00a0<\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #b5cea8;\">53<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">to_port<\/span><span style=\"color: #9cdcfe;\">\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #b5cea8;\">53<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">protocol \u00a0 \u00a0<\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #ce9178;\">&#8220;<\/span><span style=\"color: #ce9178;\">tcp<\/span><span style=\"color: #ce9178;\">&#8220;<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">cidr_blocks<\/span> <span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #d4d4d4;\">[<\/span><span style=\"color: #ce9178;\">&#8220;0.0.0.0\/0&#8221;<\/span><span style=\"color: #d4d4d4;\">]<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0 }<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"display: inline-block; height: 1em;\"><span style=\"display: none;\">.<\/span><\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #6a9955;\">\/\/ SMTPS TCP 465<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #4ec9b0;\">ingress<\/span><span style=\"color: #cccccc;\"> {<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">from_port<\/span><span style=\"color: #9cdcfe;\">\u00a0\u00a0\u00a0<\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #b5cea8;\">465<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">to_port<\/span><span style=\"color: #9cdcfe;\">\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #b5cea8;\">465<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">protocol \u00a0 \u00a0<\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #ce9178;\">&#8220;<\/span><span style=\"color: #ce9178;\">tcp<\/span><span style=\"color: #ce9178;\">&#8220;<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">cidr_blocks<\/span> <span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #d4d4d4;\">[<\/span><span style=\"color: #ce9178;\">&#8220;0.0.0.0\/0&#8221;<\/span><span style=\"color: #d4d4d4;\">]<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0 }<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"display: inline-block; height: 1em;\"><span style=\"display: none;\">.<\/span><\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #6a9955;\">\/\/ HTTPS TCP 443<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #4ec9b0;\">ingress<\/span><span style=\"color: #cccccc;\"> {<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">from_port<\/span><span style=\"color: #9cdcfe;\">\u00a0\u00a0\u00a0<\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #b5cea8;\">443<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">to_port<\/span><span style=\"color: #9cdcfe;\">\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #b5cea8;\">443<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">protocol \u00a0 \u00a0<\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #ce9178;\">&#8220;<\/span><span style=\"color: #ce9178;\">tcp<\/span><span style=\"color: #ce9178;\">&#8220;<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">cidr_blocks<\/span> <span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #d4d4d4;\">[<\/span><span style=\"color: #ce9178;\">&#8220;0.0.0.0\/0&#8221;<\/span><span style=\"color: #d4d4d4;\">]<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0 }<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"display: inline-block; height: 1em;\"><span style=\"display: none;\">.<\/span><\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #6a9955;\">\/\/ DNS (UDP) UDP 53<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #4ec9b0;\">ingress<\/span><span style=\"color: #cccccc;\"> {<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">from_port<\/span><span style=\"color: #9cdcfe;\">\u00a0\u00a0\u00a0<\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #b5cea8;\">53<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">to_port<\/span><span style=\"color: #9cdcfe;\">\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #b5cea8;\">53<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">protocol \u00a0 \u00a0<\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #ce9178;\">&#8220;<\/span><span style=\"color: #ce9178;\">udp<\/span><span style=\"color: #ce9178;\">&#8220;<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">cidr_blocks<\/span> <span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #d4d4d4;\">[<\/span><span style=\"color: #ce9178;\">&#8220;0.0.0.0\/0&#8221;<\/span><span style=\"color: #d4d4d4;\">]<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0 }<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"display: inline-block; height: 1em;\"><span style=\"display: none;\">.<\/span><\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #6a9955;\">\/\/ IMAP TCP 143<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #4ec9b0;\">ingress<\/span><span style=\"color: #cccccc;\"> {<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">from_port<\/span><span style=\"color: #9cdcfe;\">\u00a0\u00a0\u00a0<\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #b5cea8;\">143<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">to_port<\/span><span style=\"color: #9cdcfe;\">\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #b5cea8;\">143<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">protocol \u00a0 \u00a0<\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #ce9178;\">&#8220;<\/span><span style=\"color: #ce9178;\">tcp<\/span><span style=\"color: #ce9178;\">&#8220;<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">cidr_blocks<\/span> <span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #d4d4d4;\">[<\/span><span style=\"color: #ce9178;\">&#8220;0.0.0.0\/0&#8221;<\/span><span style=\"color: #d4d4d4;\">]<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0 }<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"display: inline-block; height: 1em;\"><span style=\"display: none;\">.<\/span><\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #6a9955;\">\/\/ IMAPS TCP 993<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #4ec9b0;\">ingress<\/span><span style=\"color: #cccccc;\"> {<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">from_port<\/span><span style=\"color: #9cdcfe;\">\u00a0\u00a0\u00a0<\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #b5cea8;\">993<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">to_port<\/span><span style=\"color: #9cdcfe;\">\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #b5cea8;\">993<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">protocol \u00a0 \u00a0<\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #ce9178;\">&#8220;<\/span><span style=\"color: #ce9178;\">tcp<\/span><span style=\"color: #ce9178;\">&#8220;<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">cidr_blocks<\/span> <span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #d4d4d4;\">[<\/span><span style=\"color: #ce9178;\">&#8220;0.0.0.0\/0&#8221;<\/span><span style=\"color: #d4d4d4;\">]<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0 }<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"display: inline-block; height: 1em;\"><span style=\"display: none;\">.<\/span><\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #6a9955;\">\/\/ Custom TCP 21<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #4ec9b0;\">ingress<\/span><span style=\"color: #cccccc;\"> {<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">from_port<\/span><span style=\"color: #9cdcfe;\">\u00a0\u00a0\u00a0<\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #b5cea8;\">21<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">to_port<\/span><span style=\"color: #9cdcfe;\">\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #b5cea8;\">21<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">protocol \u00a0 \u00a0<\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #ce9178;\">&#8220;<\/span><span style=\"color: #ce9178;\">tcp<\/span><span style=\"color: #ce9178;\">&#8220;<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">cidr_blocks<\/span> <span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #d4d4d4;\">[<\/span><span style=\"color: #ce9178;\">&#8220;0.0.0.0\/0&#8221;<\/span><span style=\"color: #d4d4d4;\">]<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0 }<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"display: inline-block; height: 1em;\"><span style=\"display: none;\">.<\/span><\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #6a9955;\">\/\/ Custom TCP 2086<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #4ec9b0;\">ingress<\/span><span style=\"color: #cccccc;\"> {<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">from_port<\/span><span style=\"color: #9cdcfe;\">\u00a0\u00a0\u00a0<\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #b5cea8;\">2086<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">to_port<\/span><span style=\"color: #9cdcfe;\">\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #b5cea8;\">2086<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">protocol \u00a0 \u00a0<\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #ce9178;\">&#8220;<\/span><span style=\"color: #ce9178;\">tcp<\/span><span style=\"color: #ce9178;\">&#8220;<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">cidr_blocks<\/span> <span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #d4d4d4;\">[<\/span><span style=\"color: #ce9178;\">&#8220;0.0.0.0\/0&#8221;<\/span><span style=\"color: #d4d4d4;\">]<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0 }<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"display: inline-block; height: 1em;\"><span style=\"display: none;\">.<\/span><\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #6a9955;\">\/\/ Custom TCP 2096<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #4ec9b0;\">ingress<\/span><span style=\"color: #cccccc;\"> {<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">from_port<\/span><span style=\"color: #9cdcfe;\">\u00a0\u00a0\u00a0<\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #b5cea8;\">2096<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">to_port<\/span><span style=\"color: #9cdcfe;\">\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #b5cea8;\">2096<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">protocol \u00a0 \u00a0<\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #ce9178;\">&#8220;<\/span><span style=\"color: #ce9178;\">tcp<\/span><span style=\"color: #ce9178;\">&#8220;<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">cidr_blocks<\/span> <span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #d4d4d4;\">[<\/span><span style=\"color: #ce9178;\">&#8220;0.0.0.0\/0&#8221;<\/span><span style=\"color: #d4d4d4;\">]<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0 }<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"display: inline-block; height: 1em;\"><span style=\"display: none;\">.<\/span><\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #6a9955;\">\/\/ HTTP TCP 80<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #4ec9b0;\">ingress<\/span><span style=\"color: #cccccc;\"> {<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">from_port<\/span><span style=\"color: #9cdcfe;\">\u00a0\u00a0\u00a0<\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #b5cea8;\">80<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">to_port<\/span><span style=\"color: #9cdcfe;\">\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #b5cea8;\">80<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">protocol \u00a0 \u00a0<\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #ce9178;\">&#8220;<\/span><span style=\"color: #ce9178;\">tcp<\/span><span style=\"color: #ce9178;\">&#8220;<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">cidr_blocks<\/span> <span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #d4d4d4;\">[<\/span><span style=\"color: #ce9178;\">&#8220;0.0.0.0\/0&#8221;<\/span><span style=\"color: #d4d4d4;\">]<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0 }<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"display: inline-block; height: 1em;\"><span style=\"display: none;\">.<\/span><\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #6a9955;\">\/\/ SSH TCP 22<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #4ec9b0;\">ingress<\/span><span style=\"color: #cccccc;\"> {<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">from_port<\/span><span style=\"color: #9cdcfe;\">\u00a0\u00a0\u00a0<\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #b5cea8;\">22<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">to_port<\/span><span style=\"color: #9cdcfe;\">\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #b5cea8;\">22<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">protocol \u00a0 \u00a0<\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #ce9178;\">&#8220;<\/span><span style=\"color: #ce9178;\">tcp<\/span><span style=\"color: #ce9178;\">&#8220;<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">cidr_blocks<\/span> <span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #d4d4d4;\">[<\/span><span style=\"color: #ce9178;\">&#8220;0.0.0.0\/0&#8221;<\/span><span style=\"color: #d4d4d4;\">]<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0 }<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"display: inline-block; height: 1em;\"><span style=\"display: none;\">.<\/span><\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #6a9955;\">\/\/ POP3S TCP 995<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #4ec9b0;\">ingress<\/span><span style=\"color: #cccccc;\"> {<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">from_port<\/span><span style=\"color: #9cdcfe;\">\u00a0\u00a0\u00a0<\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #b5cea8;\">995<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">to_port<\/span><span style=\"color: #9cdcfe;\">\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #b5cea8;\">995<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">protocol \u00a0 \u00a0<\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #ce9178;\">&#8220;<\/span><span style=\"color: #ce9178;\">tcp<\/span><span style=\"color: #ce9178;\">&#8220;<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">cidr_blocks<\/span> <span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #d4d4d4;\">[<\/span><span style=\"color: #ce9178;\">&#8220;0.0.0.0\/0&#8221;<\/span><span style=\"color: #d4d4d4;\">]<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0 }<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"display: inline-block; height: 1em;\"><span style=\"display: none;\">.<\/span><\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #6a9955;\">\/\/ Custom TCP 2083<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #4ec9b0;\">ingress<\/span><span style=\"color: #cccccc;\"> {<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">from_port<\/span><span style=\"color: #9cdcfe;\">\u00a0\u00a0\u00a0<\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #b5cea8;\">2083<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">to_port<\/span><span style=\"color: #9cdcfe;\">\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #b5cea8;\">2083<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">protocol \u00a0 \u00a0<\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #ce9178;\">&#8220;<\/span><span style=\"color: #ce9178;\">tcp<\/span><span style=\"color: #ce9178;\">&#8220;<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">cidr_blocks<\/span> <span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #d4d4d4;\">[<\/span><span style=\"color: #ce9178;\">&#8220;0.0.0.0\/0&#8221;<\/span><span style=\"color: #d4d4d4;\">]<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0 }<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"display: inline-block; height: 1em;\"><span style=\"display: none;\">.<\/span><\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #6a9955;\">\/\/ Custom TCP 2087<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #4ec9b0;\">ingress<\/span><span style=\"color: #cccccc;\"> {<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">from_port<\/span><span style=\"color: #9cdcfe;\">\u00a0\u00a0\u00a0<\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #b5cea8;\">2087<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">to_port<\/span><span style=\"color: #9cdcfe;\">\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #b5cea8;\">2087<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">protocol \u00a0 \u00a0<\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #ce9178;\">&#8220;<\/span><span style=\"color: #ce9178;\">tcp<\/span><span style=\"color: #ce9178;\">&#8220;<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">cidr_blocks<\/span> <span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #d4d4d4;\">[<\/span><span style=\"color: #ce9178;\">&#8220;0.0.0.0\/0&#8221;<\/span><span style=\"color: #d4d4d4;\">]<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0 }<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"display: inline-block; height: 1em;\"><span style=\"display: none;\">.<\/span><\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #6a9955;\">\/\/ Custom TCP 2095<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #4ec9b0;\">ingress<\/span><span style=\"color: #cccccc;\"> {<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">from_port<\/span><span style=\"color: #9cdcfe;\">\u00a0\u00a0\u00a0<\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #b5cea8;\">2095<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">to_port<\/span><span style=\"color: #9cdcfe;\">\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #b5cea8;\">2095<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">protocol \u00a0 \u00a0<\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #ce9178;\">&#8220;<\/span><span style=\"color: #ce9178;\">tcp<\/span><span style=\"color: #ce9178;\">&#8220;<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">cidr_blocks<\/span> <span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #d4d4d4;\">[<\/span><span style=\"color: #ce9178;\">&#8220;0.0.0.0\/0&#8221;<\/span><span style=\"color: #d4d4d4;\">]<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0 }<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"display: inline-block; height: 1em;\"><span style=\"display: none;\">.<\/span><\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #6a9955;\">\/\/ Custom TCP 2082<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #4ec9b0;\">ingress<\/span><span style=\"color: #cccccc;\"> {<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">from_port<\/span><span style=\"color: #9cdcfe;\">\u00a0\u00a0\u00a0<\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #b5cea8;\">2082<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">to_port<\/span><span style=\"color: #9cdcfe;\">\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #b5cea8;\">2082<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">protocol \u00a0 \u00a0<\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #ce9178;\">&#8220;<\/span><span style=\"color: #ce9178;\">tcp<\/span><span style=\"color: #ce9178;\">&#8220;<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">cidr_blocks<\/span> <span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #d4d4d4;\">[<\/span><span style=\"color: #ce9178;\">&#8220;0.0.0.0\/0&#8221;<\/span><span style=\"color: #d4d4d4;\">]<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0 }<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">}<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #4ec9b0;\">output<\/span> <span style=\"color: #ce9178;\">&#8220;<\/span><span style=\"color: #ce9178;\">newcpanel_sg_id<\/span><span style=\"color: #ce9178;\">&#8220;<\/span><span style=\"color: #cccccc;\"> {<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">value \u00a0 \u00a0 \u00a0 <\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #569cd6;\">aws_security_group<\/span><span style=\"color: #d4d4d4;\">.<\/span><span style=\"color: #9cdcfe;\">newcpanel<\/span><span style=\"color: #d4d4d4;\">.<\/span><span style=\"color: #9cdcfe;\">id<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">description <\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #ce9178;\">&#8220;The ID of the security group &#8216;<\/span><span style=\"color: #ce9178;\">newcpanel<\/span><span style=\"color: #ce9178;\">&#8216;&#8221;<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">}<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 8pt; padding-bottom: 0; line-height: 1.3;\"><span style=\"display: inline-block; height: 1em;\"><span style=\"display: none;\">.<\/span><\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 8pt; padding-bottom: 0; line-height: 1.3;\"><span style=\"display: inline-block; height: 1em;\"><span style=\"display: none;\">.<\/span><\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 8pt; padding-bottom: 0; line-height: 1.3;\"><span style=\"text-decoration: underline;\"><strong>Outputs.tf<\/strong><\/span><\/p>\n<div class=\"ul\" style=\"margin: 0;\">\n<div class=\"li\" style=\"margin: 0;\">\n<div style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 8pt; padding-bottom: 0; line-height: 1.3; margin-left: 36pt;\"><span style=\"display: inline-block; position: relative; text-indent: -18pt;\"><span style=\"position: absolute; top: -0.34em; left: 0; font-size: 2em;\">\u2022<\/span>\u00a0<\/span>We want some information to be outputted upon creating the machines like the assigned public addresses. In terraform it needs somethings outputted for the checks to work. In ansible arent forced to do this, but it looks like in terraform you are.<\/div>\n<\/div>\n<\/div>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #4ec9b0;\">output<\/span> <span style=\"color: #ce9178;\">&#8220;<\/span><span style=\"color: #ce9178;\">public_ips<\/span><span style=\"color: #ce9178;\">&#8220;<\/span><span style=\"color: #cccccc;\"> {<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">value \u00a0 \u00a0 \u00a0 <\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #569cd6;\">module<\/span><span style=\"color: #d4d4d4;\">.<\/span><span style=\"color: #9cdcfe;\">web_<\/span><span style=\"color: #9cdcfe;\">server<\/span><span style=\"color: #d4d4d4;\">.<\/span><span style=\"color: #9cdcfe;\">public<\/span><span style=\"color: #9cdcfe;\">_ips<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">description <\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #ce9178;\">&#8220;List of public IP addresses for the instances.&#8221;<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">}<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 8pt; padding-bottom: 0; line-height: 1.3;\"><span style=\"display: inline-block; height: 1em;\"><span style=\"display: none;\">.<\/span><\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 8pt; padding-bottom: 0; line-height: 1.3;\">Okay so now we want to create the scalable ec2<\/p>\n<div class=\"ul\" style=\"margin: 0;\">\n<div class=\"li\" style=\"margin: 0;\">\n<div style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0; padding-bottom: 0; line-height: 1.3; margin-left: 36pt;\"><span style=\"display: inline-block; position: relative; text-indent: -18pt;\"><span style=\"position: absolute; top: -0.34em; left: 0; font-size: 2em;\">\u2022<\/span>\u00a0<\/span>Up on deployment in the us-west-2 which essentially is for HA purposes.<\/div>\n<\/div>\n<div class=\"li\" style=\"margin: 0;\">\n<div style=\"margin-bottom: 0; padding-bottom: 0; line-height: 1.3; margin-left: 36pt;\"><span style=\"display: inline-block; position: relative; text-indent: -18pt;\"><span style=\"position: absolute; top: -0.34em; left: 0; font-size: 2em;\">\u2022<\/span>\u00a0<\/span>You want the key pair to used<\/div>\n<\/div>\n<div class=\"li\" style=\"margin: 0;\">\n<div style=\"margin-bottom: 8pt; padding-bottom: 0; line-height: 1.3; margin-left: 36pt;\"><span style=\"display: inline-block; position: relative; text-indent: -18pt;\"><span style=\"position: absolute; top: -0.34em; left: 0; font-size: 2em;\">\u2022<\/span>\u00a0<\/span>And the security group we defined earlier to be added the instance.<\/div>\n<\/div>\n<\/div>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 8pt; padding-bottom: 0; line-height: 1.3;\">We create <strong>a modules\/instance<\/strong> directory and inside here define the instances as resources<\/p>\n<div class=\"ul\" style=\"margin: 0;\">\n<div class=\"li\" style=\"margin: 0;\">\n<div style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 8pt; padding-bottom: 0; line-height: 1.3; margin-left: 36pt;\"><span style=\"display: inline-block; position: relative; text-indent: -18pt; font-weight: bold;\"><span style=\"position: absolute; top: -0.34em; left: 0; font-size: 2em;\">\u2022<\/span>\u00a0<\/span>Now there are a couple of ways to do this. Depends on how you grew your infrastructure out. If all your machines are the same then you don\u2019t need a resource block for each instance which can make the code uglier to manage<strong>. You can use the count attribute to simply add or subtract inside the main.tf where the instance_count is defined under the module <span style=\"color: #cccccc;\">\u00a0<\/span><span style=\"color: #9cdcfe;\">instance_count<\/span><span style=\"color: #9cdcfe;\">\u00a0\u00a0\u00a0<\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #b5cea8;\">2<\/span><\/strong><\/div>\n<\/div>\n<\/div>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 8pt; padding-bottom: 0; line-height: 1.3;\"><span style=\"text-decoration: underline;\"><strong>modules\/instance\/main.tf <\/strong><\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #4ec9b0;\">resource<\/span> <span style=\"color: #ce9178;\">&#8220;<\/span><span style=\"color: #ce9178;\">aws_instance<\/span><span style=\"color: #ce9178;\">&#8220;<\/span> <span style=\"color: #ce9178;\">&#8220;Tailor-Server&#8221;<\/span><span style=\"color: #cccccc;\"> {<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">count \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #569cd6;\">var<\/span><span style=\"color: #d4d4d4;\">.<\/span><span style=\"color: #9cdcfe;\">instance<\/span><span style=\"color: #9cdcfe;\">_count<\/span><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #6a9955;\">\/\/ Control the number of instances with a variable<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"display: inline-block; height: 1em;\"><span style=\"display: none;\">.<\/span><\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">ami<\/span><span style=\"color: #9cdcfe;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #569cd6;\">var<\/span><span style=\"color: #d4d4d4;\">.<\/span><span style=\"color: #9cdcfe;\">ami_id<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">instance_<\/span><span style=\"color: #9cdcfe;\">type<\/span><span style=\"color: #9cdcfe;\">\u00a0\u00a0<\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #569cd6;\">var<\/span><span style=\"color: #d4d4d4;\">.<\/span><span style=\"color: #9cdcfe;\">instance_type<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">subnet_id<\/span><span style=\"color: #9cdcfe;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #569cd6;\">var<\/span><span style=\"color: #d4d4d4;\">.<\/span><span style=\"color: #9cdcfe;\">subnet<\/span><span style=\"color: #9cdcfe;\">_id<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">key_name<\/span><span style=\"color: #9cdcfe;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #569cd6;\">var<\/span><span style=\"color: #d4d4d4;\">.<\/span><span style=\"color: #9cdcfe;\">key_name<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">vpc_security_group_ids<\/span> <span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #d4d4d4;\">[<\/span><span style=\"color: #569cd6;\">var<\/span><span style=\"color: #d4d4d4;\">.<\/span><span style=\"color: #9cdcfe;\">security<\/span><span style=\"color: #9cdcfe;\">_group_id<\/span><span style=\"color: #d4d4d4;\">]<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"display: inline-block; height: 1em;\"><span style=\"display: none;\">.<\/span><\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">tags <\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #cccccc;\">{<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">Name = <\/span><span style=\"color: #dcdcaa;\">format<\/span><span style=\"color: #d4d4d4;\">(<\/span><span style=\"color: #ce9178;\">&#8220;Tailor-Server%02d&#8221;<\/span><span style=\"color: #d4d4d4;\">,<\/span> <span style=\"color: #569cd6;\">count<\/span><span style=\"color: #d4d4d4;\">.<\/span><span style=\"color: #9cdcfe;\">index<\/span> <span style=\"color: #c586c0;\">+<\/span> <span style=\"color: #b5cea8;\">1<\/span><span style=\"color: #d4d4d4;\">)<\/span><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #6a9955;\">\/\/ Naming instances with a sequential number<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0 }<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"display: inline-block; height: 1em;\"><span style=\"display: none;\">.<\/span><\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #4ec9b0;\">root_block_device<\/span><span style=\"color: #cccccc;\"> {<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">volume_type<\/span><span style=\"color: #9cdcfe;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #ce9178;\">&#8220;gp2&#8221;<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">volume_size<\/span><span style=\"color: #9cdcfe;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #b5cea8;\">30<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">delete_on_termination<\/span> <span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #569cd6;\">true<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0 }<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">}<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 8pt; padding-bottom: 0; line-height: 1.3;\"><span style=\"display: inline-block; height: 1em;\"><span style=\"display: none;\">.<\/span><\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 8pt; padding-bottom: 0; line-height: 1.3;\"><span style=\"text-decoration: underline;\"><strong>Modules\/instance\/variables.tf<\/strong><\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 8pt; padding-bottom: 0; line-height: 1.3;\">Each variable serves as an input that can be set externally when the module is called, allowing for flexibility and reusability of the module across different environments or scenarios.<\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 8pt; padding-bottom: 0; line-height: 1.3;\">So here we defining it as a list of items we need to pass for the module to work. We will later provide the actual parameter to pass to the variables being called in the main.tf<\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 8pt; padding-bottom: 0; line-height: 1.3;\">Cheat sheet:<\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 8pt; padding-bottom: 0; line-height: 1.3;\"><strong>ami_id<\/strong>: Specifies the Amazon Machine Image (AMI) ID that will be used to launch the EC2 instances. The AMI determines the operating system and software configurations that will be loaded onto the instances when they are created.<\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 8pt; padding-bottom: 0; line-height: 1.3;\"><strong>instance_type<\/strong>: Determines the type of EC2 instance to launch. This affects the computing resources available to the instance (CPU, memory, etc.).<\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 8pt; padding-bottom: 0; line-height: 1.3;\">Type: It is expected to be a string that matches one of AWS&#8217;s predefined instance types (e.g., t2.micro, m5.large).<\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 8pt; padding-bottom: 0; line-height: 1.3;\"><strong>key_name<\/strong>: Specifies the name of the key pair to be used for SSH access to the EC2 instances. This key should already exist in the AWS account.<\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 8pt; padding-bottom: 0; line-height: 1.3;\"><strong>subnet_id<\/strong>: Identifies the subnet within which the EC2 instances will be launched. The subnet is part of a specific VPC (Virtual Private Cloud).<\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 8pt; padding-bottom: 0; line-height: 1.3;\"><strong>instance_names<\/strong>: A list of names to be assigned to the instances. This helps in identifying the instances within the AWS console or when querying using the AWS CLI.<\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 8pt; padding-bottom: 0; line-height: 1.3;\"><strong>security_group_Id<\/strong>: Specifies the ID of the security group to attach to the EC2 instances. Security groups act as a virtual firewall for your instances to control inbound and outbound traffic.<\/p>\n<div class=\"ul\" style=\"margin: 0;\">\n<div class=\"li\" style=\"margin: 0;\">\n<div style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 8pt; padding-bottom: 0; line-height: 1.3; margin-left: 36pt;\"><span style=\"display: inline-block; position: relative; text-indent: -18pt;\"><span style=\"position: absolute; top: -0.34em; left: 0; font-size: 2em;\">\u2022<\/span>\u00a0<\/span>We are also adding a count here so we can scale ec2 very efficiently, especially if you have a lot of hands working in the pot keeps things very easy to manage.<\/div>\n<\/div>\n<\/div>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #4ec9b0;\">variable<\/span> <span style=\"color: #ce9178;\">&#8220;<\/span><span style=\"color: #ce9178;\">ami_id<\/span><span style=\"color: #ce9178;\">&#8220;<\/span><span style=\"color: #cccccc;\"> {}<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #4ec9b0;\">variable<\/span> <span style=\"color: #ce9178;\">&#8220;<\/span><span style=\"color: #ce9178;\">instance_type<\/span><span style=\"color: #ce9178;\">&#8220;<\/span><span style=\"color: #cccccc;\"> {}<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #4ec9b0;\">variable<\/span> <span style=\"color: #ce9178;\">&#8220;<\/span><span style=\"color: #ce9178;\">key_name<\/span><span style=\"color: #ce9178;\">&#8220;<\/span><span style=\"color: #cccccc;\"> {}<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #4ec9b0;\">variable<\/span> <span style=\"color: #ce9178;\">&#8220;<\/span><span style=\"color: #ce9178;\">subnet_id<\/span><span style=\"color: #ce9178;\">&#8220;<\/span><span style=\"color: #cccccc;\"> {}<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #4ec9b0;\">variable<\/span> <span style=\"color: #ce9178;\">&#8220;<\/span><span style=\"color: #ce9178;\">instance_names<\/span><span style=\"color: #ce9178;\">&#8220;<\/span><span style=\"color: #cccccc;\"> {<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">type \u00a0 \u00a0 \u00a0 \u00a0<\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #dcdcaa;\">list<\/span><span style=\"color: #d4d4d4;\">(<\/span><span style=\"color: #569cd6;\">string<\/span><span style=\"color: #d4d4d4;\">)<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">description <\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #ce9178;\">&#8220;List of names for the instances to create.&#8221;<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">}<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #4ec9b0;\">variable<\/span> <span style=\"color: #ce9178;\">&#8220;<\/span><span style=\"color: #ce9178;\">security_group_id<\/span><span style=\"color: #ce9178;\">&#8220;<\/span><span style=\"color: #cccccc;\"> {<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">description <\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #ce9178;\">&#8220;Security group ID to assign to the instance&#8221;<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">type \u00a0 \u00a0 \u00a0 \u00a0<\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #569cd6;\">string<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">}<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #4ec9b0;\">variable<\/span> <span style=\"color: #ce9178;\">&#8220;<\/span><span style=\"color: #ce9178;\">instance_count<\/span><span style=\"color: #ce9178;\">&#8220;<\/span><span style=\"color: #cccccc;\"> {<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">description <\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #ce9178;\">&#8220;The number of instances to create&#8221;<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">type \u00a0 \u00a0 \u00a0 \u00a0<\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #569cd6;\">number<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #9cdcfe;\">default \u00a0 \u00a0 <\/span><span style=\"color: #d4d4d4;\">=<\/span> <span style=\"color: #b5cea8;\">1<\/span><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #6a9955;\">\/<\/span><span style=\"color: #6a9955;\">\/ Default to one instance if not specified<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">}<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 8pt; padding-bottom: 0; line-height: 1.3;\"><span style=\"display: inline-block; height: 1em;\"><span style=\"display: none;\">.<\/span><\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 8pt; padding-bottom: 0; line-height: 1.3;\"><strong>Time to deploy your<\/strong><strong> code: <\/strong><em>I didnt bother showing the plan here just the apply<\/em><\/p>\n<p>my-terraform-vpc$ terraform apply<\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #dcdcaa;\">Do<\/span> <span style=\"color: #ce9178;\">you<\/span> <span style=\"color: #ce9178;\">want<\/span> <span style=\"color: #ce9178;\">to<\/span> <span style=\"color: #ce9178;\">perform<\/span> <span style=\"color: #ce9178;\">these<\/span> <span style=\"color: #ce9178;\">actions?<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #dcdcaa;\">Terraform<\/span> <span style=\"color: #ce9178;\">will<\/span> <span style=\"color: #ce9178;\">perform<\/span> <span style=\"color: #ce9178;\">the<\/span> <span style=\"color: #ce9178;\">actions<\/span> <span style=\"color: #ce9178;\">described<\/span> <span style=\"color: #ce9178;\">above.<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #dcdcaa;\">Only<\/span> <span style=\"color: #ce9178;\">&#8216;yes&#8217;<\/span> <span style=\"color: #ce9178;\">will<\/span> <span style=\"color: #ce9178;\">be<\/span> <span style=\"color: #ce9178;\">accepted<\/span> <span style=\"color: #ce9178;\">to<\/span> <span style=\"color: #ce9178;\">approve.<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"display: inline-block; height: 1em;\"><span style=\"display: none;\">.<\/span><\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #dcdcaa;\">Enter<\/span> <span style=\"color: #ce9178;\">a<\/span> <span style=\"color: #ce9178;\">value:<\/span> <span style=\"color: #ce9178;\">yes<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"display: inline-block; height: 1em;\"><span style=\"display: none;\">.<\/span><\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #dcdcaa;\">aws_<\/span><span style=\"color: #dcdcaa;\">subnet.newsubnet<\/span><span style=\"color: #dcdcaa;\">:<\/span> <span style=\"color: #ce9178;\">Destroying&#8230;<\/span><span style=\"color: #cccccc;\"> [id=subnet-016181a8999a58cb4]<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #dcdcaa;\">aws_<\/span><span style=\"color: #dcdcaa;\">subnet.newsubnet<\/span><span style=\"color: #dcdcaa;\">:<\/span> <span style=\"color: #ce9178;\">Destruction<\/span> <span style=\"color: #ce9178;\">complete<\/span> <span style=\"color: #ce9178;\">after<\/span> <span style=\"color: #b5cea8;\">1<\/span><span style=\"color: #ce9178;\">s<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #dcdcaa;\">aws_<\/span><span style=\"color: #dcdcaa;\">subnet.newsubnet<\/span><span style=\"color: #dcdcaa;\">:<\/span> <span style=\"color: #ce9178;\">Creating&#8230;<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #dcdcaa;\">aws_<\/span><span style=\"color: #dcdcaa;\">subnet.newsubnet<\/span><span style=\"color: #dcdcaa;\">:<\/span> <span style=\"color: #ce9178;\">Still<\/span> <span style=\"color: #ce9178;\">creating&#8230;<\/span><span style=\"color: #cccccc;\"> [10s <\/span><span style=\"color: #ce9178;\">elapsed]<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #dcdcaa;\">aws_<\/span><span style=\"color: #dcdcaa;\">subnet.newsubnet<\/span><span style=\"color: #dcdcaa;\">:<\/span> <span style=\"color: #ce9178;\">Creation<\/span> <span style=\"color: #ce9178;\">complete<\/span> <span style=\"color: #ce9178;\">after<\/span> <span style=\"color: #b5cea8;\">11<\/span><span style=\"color: #ce9178;\">s<\/span><span style=\"color: #cccccc;\"> [id=subnet-0a5914443d2944510]<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #dcdcaa;\">module.web_server.aws_<\/span><span style=\"color: #dcdcaa;\">instance.Tailor<\/span><span style=\"color: #dcdcaa;\">-Server[1]:<\/span> <span style=\"color: #ce9178;\">Creating&#8230;<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #dcdcaa;\">module.web_server.aws_<\/span><span style=\"color: #dcdcaa;\">instance.Tailor<\/span><span style=\"color: #dcdcaa;\">-Server[0]:<\/span> <span style=\"color: #ce9178;\">Creating&#8230;<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #dcdcaa;\">module.web_server.aws_<\/span><span style=\"color: #dcdcaa;\">instance.Tailor<\/span><span style=\"color: #dcdcaa;\">-Server[1]:<\/span> <span style=\"color: #ce9178;\">Still<\/span> <span style=\"color: #ce9178;\">creating&#8230;<\/span><span style=\"color: #cccccc;\"> [10s <\/span><span style=\"color: #ce9178;\">elapsed]<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #dcdcaa;\">module.web_server.aws_<\/span><span style=\"color: #dcdcaa;\">instance.Tailor<\/span><span style=\"color: #dcdcaa;\">-Server[0]:<\/span> <span style=\"color: #ce9178;\">Still<\/span> <span style=\"color: #ce9178;\">creating&#8230;<\/span><span style=\"color: #cccccc;\"> [10s <\/span><span style=\"color: #ce9178;\">elapsed]<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #dcdcaa;\">module.web_server.aws_<\/span><span style=\"color: #dcdcaa;\">instance.Tailor<\/span><span style=\"color: #dcdcaa;\">-Server[0]:<\/span> <span style=\"color: #ce9178;\">Still<\/span> <span style=\"color: #ce9178;\">creating&#8230;<\/span><span style=\"color: #cccccc;\"> [20s <\/span><span style=\"color: #ce9178;\">elapsed]<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #dcdcaa;\">module.web_server.aws_<\/span><span style=\"color: #dcdcaa;\">instance.Tailor<\/span><span style=\"color: #dcdcaa;\">-Server[1]:<\/span> <span style=\"color: #ce9178;\">Still<\/span> <span style=\"color: #ce9178;\">creating&#8230;<\/span><span style=\"color: #cccccc;\"> [20s <\/span><span style=\"color: #ce9178;\">elapsed]<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #dcdcaa;\">module.web_server.aws_<\/span><span style=\"color: #dcdcaa;\">instance.Tailor<\/span><span style=\"color: #dcdcaa;\">-Server[1]:<\/span> <span style=\"color: #ce9178;\">Still<\/span> <span style=\"color: #ce9178;\">creating&#8230;<\/span><span style=\"color: #cccccc;\"> [30s <\/span><span style=\"color: #ce9178;\">elapsed]<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #dcdcaa;\">module.web_server.aws_<\/span><span style=\"color: #dcdcaa;\">instance.Tailor<\/span><span style=\"color: #dcdcaa;\">-Server[0]:<\/span> <span style=\"color: #ce9178;\">Still<\/span> <span style=\"color: #ce9178;\">creating&#8230;<\/span><span style=\"color: #cccccc;\"> [30s <\/span><span style=\"color: #ce9178;\">elapsed]<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #dcdcaa;\">module.web_server.aws_<\/span><span style=\"color: #dcdcaa;\">instance.Tailor<\/span><span style=\"color: #dcdcaa;\">-Server[0]:<\/span> <span style=\"color: #ce9178;\">Still<\/span> <span style=\"color: #ce9178;\">creating&#8230;<\/span><span style=\"color: #cccccc;\"> [40s <\/span><span style=\"color: #ce9178;\">elapsed]<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #dcdcaa;\">module.web_server.aws_<\/span><span style=\"color: #dcdcaa;\">instance.Tailor<\/span><span style=\"color: #dcdcaa;\">-Server[1]:<\/span> <span style=\"color: #ce9178;\">Still<\/span> <span style=\"color: #ce9178;\">creating&#8230;<\/span><span style=\"color: #cccccc;\"> [40s <\/span><span style=\"color: #ce9178;\">elapsed]<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #dcdcaa;\">module.web_server.aws_<\/span><span style=\"color: #dcdcaa;\">instance.Tailor<\/span><span style=\"color: #dcdcaa;\">-Server[1]:<\/span> <span style=\"color: #ce9178;\">Still<\/span> <span style=\"color: #ce9178;\">creating&#8230;<\/span><span style=\"color: #cccccc;\"> [50s <\/span><span style=\"color: #ce9178;\">elapsed]<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #dcdcaa;\">module.web_server.aws_<\/span><span style=\"color: #dcdcaa;\">instance.Tailor<\/span><span style=\"color: #dcdcaa;\">-Server[0]:<\/span> <span style=\"color: #ce9178;\">Still<\/span> <span style=\"color: #ce9178;\">creating&#8230;<\/span><span style=\"color: #cccccc;\"> [50s <\/span><span style=\"color: #ce9178;\">elapsed]<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #dcdcaa;\">module.web_server.aws_<\/span><span style=\"color: #dcdcaa;\">instance.Tailor<\/span><span style=\"color: #dcdcaa;\">-Server[0]:<\/span> <span style=\"color: #ce9178;\">Creation<\/span> <span style=\"color: #ce9178;\">complete<\/span> <span style=\"color: #ce9178;\">after<\/span> <span style=\"color: #b5cea8;\">52<\/span><span style=\"color: #ce9178;\">s<\/span><span style=\"color: #cccccc;\"> [id=i-0d103937dcd1ce080]<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #dcdcaa;\">module.web_server.aws_<\/span><span style=\"color: #dcdcaa;\">instance.Tailor<\/span><span style=\"color: #dcdcaa;\">-Server[1]:<\/span> <span style=\"color: #ce9178;\">Still<\/span> <span style=\"color: #ce9178;\">creating&#8230;<\/span><span style=\"color: #cccccc;\"> [1m0s <\/span><span style=\"color: #ce9178;\">elapsed]<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #dcdcaa;\">module.web_server.aws_<\/span><span style=\"color: #dcdcaa;\">instance.Tailor<\/span><span style=\"color: #dcdcaa;\">-Server[1]:<\/span> <span style=\"color: #ce9178;\">Still<\/span> <span style=\"color: #ce9178;\">creating&#8230;<\/span><span style=\"color: #cccccc;\"> [1m10s <\/span><span style=\"color: #ce9178;\">elapsed]<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #dcdcaa;\">module.web_server.aws_<\/span><span style=\"color: #dcdcaa;\">instance.Tailor<\/span><span style=\"color: #dcdcaa;\">-Server[1]:<\/span> <span style=\"color: #ce9178;\">Creation<\/span> <span style=\"color: #ce9178;\">complete<\/span> <span style=\"color: #ce9178;\">after<\/span> <span style=\"color: #b5cea8;\">1<\/span><span style=\"color: #ce9178;\">m12s<\/span><span style=\"color: #cccccc;\"> [id=i-071bac658ce51d415]<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"display: inline-block; height: 1em;\"><span style=\"display: none;\">.<\/span><\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #dcdcaa;\">Apply<\/span> <span style=\"color: #ce9178;\">complete!<\/span> <span style=\"color: #ce9178;\">Resources:<\/span> <span style=\"color: #b5cea8;\">3<\/span> <span style=\"color: #ce9178;\">added,<\/span> <span style=\"color: #b5cea8;\">0<\/span> <span style=\"color: #ce9178;\">changed,<\/span> <span style=\"color: #b5cea8;\">1<\/span> <span style=\"color: #ce9178;\">destroyed.<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"display: inline-block; height: 1em;\"><span style=\"display: none;\">.<\/span><\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #dcdcaa;\">Outputs:<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"display: inline-block; height: 1em;\"><span style=\"display: none;\">.<\/span><\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #dcdcaa;\">newcpanel_sg_id<\/span> <span style=\"color: #ce9178;\">=<\/span> <span style=\"color: #ce9178;\">&#8220;sg-0df86c53b5de7b348&#8221;<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #dcdcaa;\">public_ips<\/span> <span style=\"color: #ce9178;\">=<\/span><span style=\"color: #cccccc;\"> [<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #dcdcaa;\">&#8220;34.219.34.165&#8221;,<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">\u00a0\u00a0<\/span><span style=\"color: #dcdcaa;\">&#8220;35.90.247.94&#8221;,<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 0pt; padding-bottom: 0; line-height: 1.43;\"><span style=\"color: #cccccc;\">]<\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 8pt; padding-bottom: 0; line-height: 1.3;\"><span style=\"display: inline-block; height: 1em;\"><span style=\"display: none;\">.<\/span><\/span><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 8pt; padding-bottom: 0; line-height: 1.3;\"><strong style=\"font-size: revert; color: initial; text-decoration: underline;\">Results:<\/strong><\/p>\n<p style=\"margin-top: 0pt; padding-top: 0; margin-bottom: 8pt; padding-bottom: 0; line-height: 1.3;\">VPC successful:<\/p>\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"http:\/\/www.nicktailor.com\/wp-content\/uploads\/2024\/04\/vpc2-1.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"144\" src=\"http:\/\/www.nicktailor.com\/wp-content\/uploads\/2024\/04\/vpc2-1-1024x144.jpg\" alt=\"\" class=\"wp-image-1811\" srcset=\"https:\/\/nicktailor.com\/tech-blog\/wp-content\/uploads\/2024\/04\/vpc2-1-1024x144.jpg 1024w, https:\/\/nicktailor.com\/tech-blog\/wp-content\/uploads\/2024\/04\/vpc2-1-600x84.jpg 600w, https:\/\/nicktailor.com\/tech-blog\/wp-content\/uploads\/2024\/04\/vpc2-1-300x42.jpg 300w, https:\/\/nicktailor.com\/tech-blog\/wp-content\/uploads\/2024\/04\/vpc2-1-768x108.jpg 768w, https:\/\/nicktailor.com\/tech-blog\/wp-content\/uploads\/2024\/04\/vpc2-1-1536x216.jpg 1536w, https:\/\/nicktailor.com\/tech-blog\/wp-content\/uploads\/2024\/04\/vpc2-1-1500x211.jpg 1500w, https:\/\/nicktailor.com\/tech-blog\/wp-content\/uploads\/2024\/04\/vpc2-1.jpg 1809w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>EC2 successful:<\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><a href=\"http:\/\/www.nicktailor.com\/wp-content\/uploads\/2024\/04\/ec2.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"415\" data-id=\"1812\" src=\"http:\/\/www.nicktailor.com\/wp-content\/uploads\/2024\/04\/ec2-1024x415.jpg\" alt=\"\" class=\"wp-image-1812\" srcset=\"https:\/\/nicktailor.com\/tech-blog\/wp-content\/uploads\/2024\/04\/ec2-1024x415.jpg 1024w, https:\/\/nicktailor.com\/tech-blog\/wp-content\/uploads\/2024\/04\/ec2-600x243.jpg 600w, https:\/\/nicktailor.com\/tech-blog\/wp-content\/uploads\/2024\/04\/ec2-300x121.jpg 300w, https:\/\/nicktailor.com\/tech-blog\/wp-content\/uploads\/2024\/04\/ec2-768x311.jpg 768w, https:\/\/nicktailor.com\/tech-blog\/wp-content\/uploads\/2024\/04\/ec2.jpg 1072w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n<\/figure>\n\n\n\n<p>Security-Groups:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"http:\/\/www.nicktailor.com\/wp-content\/uploads\/2024\/04\/sg.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"208\" src=\"http:\/\/www.nicktailor.com\/wp-content\/uploads\/2024\/04\/sg-1024x208.jpg\" alt=\"\" class=\"wp-image-1813\" srcset=\"https:\/\/nicktailor.com\/tech-blog\/wp-content\/uploads\/2024\/04\/sg-1024x208.jpg 1024w, https:\/\/nicktailor.com\/tech-blog\/wp-content\/uploads\/2024\/04\/sg-600x122.jpg 600w, https:\/\/nicktailor.com\/tech-blog\/wp-content\/uploads\/2024\/04\/sg-300x61.jpg 300w, https:\/\/nicktailor.com\/tech-blog\/wp-content\/uploads\/2024\/04\/sg-768x156.jpg 768w, https:\/\/nicktailor.com\/tech-blog\/wp-content\/uploads\/2024\/04\/sg-1536x312.jpg 1536w, https:\/\/nicktailor.com\/tech-blog\/wp-content\/uploads\/2024\/04\/sg-1500x305.jpg 1500w, https:\/\/nicktailor.com\/tech-blog\/wp-content\/uploads\/2024\/04\/sg.jpg 1619w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"http:\/\/www.nicktailor.com\/wp-content\/uploads\/2024\/04\/sg2.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"457\" src=\"http:\/\/www.nicktailor.com\/wp-content\/uploads\/2024\/04\/sg2-1024x457.jpg\" alt=\"\" class=\"wp-image-1814\" srcset=\"https:\/\/nicktailor.com\/tech-blog\/wp-content\/uploads\/2024\/04\/sg2-1024x457.jpg 1024w, https:\/\/nicktailor.com\/tech-blog\/wp-content\/uploads\/2024\/04\/sg2-600x268.jpg 600w, https:\/\/nicktailor.com\/tech-blog\/wp-content\/uploads\/2024\/04\/sg2-300x134.jpg 300w, https:\/\/nicktailor.com\/tech-blog\/wp-content\/uploads\/2024\/04\/sg2-768x343.jpg 768w, https:\/\/nicktailor.com\/tech-blog\/wp-content\/uploads\/2024\/04\/sg2-1278x571.jpg 1278w, https:\/\/nicktailor.com\/tech-blog\/wp-content\/uploads\/2024\/04\/sg2.jpg 1480w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>Key Pairs:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"http:\/\/www.nicktailor.com\/wp-content\/uploads\/2024\/04\/key.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"145\" src=\"http:\/\/www.nicktailor.com\/wp-content\/uploads\/2024\/04\/key-1024x145.jpg\" alt=\"\" class=\"wp-image-1815\" srcset=\"https:\/\/nicktailor.com\/tech-blog\/wp-content\/uploads\/2024\/04\/key-1024x145.jpg 1024w, https:\/\/nicktailor.com\/tech-blog\/wp-content\/uploads\/2024\/04\/key-600x85.jpg 600w, https:\/\/nicktailor.com\/tech-blog\/wp-content\/uploads\/2024\/04\/key-300x43.jpg 300w, https:\/\/nicktailor.com\/tech-blog\/wp-content\/uploads\/2024\/04\/key-768x109.jpg 768w, https:\/\/nicktailor.com\/tech-blog\/wp-content\/uploads\/2024\/04\/key.jpg 1481w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>Ec2 assigned SG group:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"http:\/\/www.nicktailor.com\/wp-content\/uploads\/2024\/04\/ec2sg.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"773\" height=\"462\" src=\"http:\/\/www.nicktailor.com\/wp-content\/uploads\/2024\/04\/ec2sg.jpg\" alt=\"\" class=\"wp-image-1817\" srcset=\"https:\/\/nicktailor.com\/tech-blog\/wp-content\/uploads\/2024\/04\/ec2sg.jpg 773w, https:\/\/nicktailor.com\/tech-blog\/wp-content\/uploads\/2024\/04\/ec2sg-600x359.jpg 600w, https:\/\/nicktailor.com\/tech-blog\/wp-content\/uploads\/2024\/04\/ec2sg-300x179.jpg 300w, https:\/\/nicktailor.com\/tech-blog\/wp-content\/uploads\/2024\/04\/ec2sg-768x459.jpg 768w\" sizes=\"auto, (max-width: 773px) 100vw, 773px\" \/><\/a><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>\u2022\u00a0This will configure a new VPC \u2022\u00a0Create a new subnet for use \u2022\u00a0Create a new security group with bunch rules \u2022\u00a0Create a key pair for your new instances \u2022\u00a0Allow you to scale your instances cleanly use the count attribute. So we are going to do this a bit different than the other post. As the other post is just deploying<a href=\"https:\/\/nicktailor.com\/tech-blog\/how-to-deploy-another-vpc-in-aws-with-scalable-ec2-for-ha\/\" class=\"read-more\">Read More &#8230;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":true,"template":"","format":"standard","meta":{"footnotes":""},"categories":[140,130],"tags":[],"class_list":["post-1793","post","type-post","status-publish","format-standard","hentry","category-aws","category-terraform"],"_links":{"self":[{"href":"https:\/\/nicktailor.com\/tech-blog\/wp-json\/wp\/v2\/posts\/1793","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nicktailor.com\/tech-blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nicktailor.com\/tech-blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nicktailor.com\/tech-blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nicktailor.com\/tech-blog\/wp-json\/wp\/v2\/comments?post=1793"}],"version-history":[{"count":19,"href":"https:\/\/nicktailor.com\/tech-blog\/wp-json\/wp\/v2\/posts\/1793\/revisions"}],"predecessor-version":[{"id":1837,"href":"https:\/\/nicktailor.com\/tech-blog\/wp-json\/wp\/v2\/posts\/1793\/revisions\/1837"}],"wp:attachment":[{"href":"https:\/\/nicktailor.com\/tech-blog\/wp-json\/wp\/v2\/media?parent=1793"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nicktailor.com\/tech-blog\/wp-json\/wp\/v2\/categories?post=1793"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nicktailor.com\/tech-blog\/wp-json\/wp\/v2\/tags?post=1793"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}