Chef cookbook which contains Elasticsearch, Logstash, and Kibana stack for Amazon AWS OpsWorks.
Although this step is optional, VPCs are very useful in providing flexibility and security in production applications. Since Elasticsearch have no built-in security mechanism, setting up a VPC is highly recommended.
Note: The instructions here assume you will be creating VPC in US West 1 (North California) region. Availability zones may differ depending on the region you have selected.
-
Navigate to VPC Dashboard > Your VPC.
-
Click Create VPC button.
-
Enter in information as shown below:
- Name tag: ELK OpsWorks
- CIDR block: 10.10.0.0/16
- Tenancy: Can be either Default or Dedicated
Click Yes, Create.
It is generally recommended to create subnets in different Availability Zones to ensure failure of instances in one availability zone does not affect the normal operation of the stack layers.
-
Navigate to Subnets from the sidebar and click Create Subnet.
-
Enter in information as shown below for the first subnet:
- Name tag: ELK OpsWorks Subnet (us-west-1b)
- VPC: vpc-YOUR_VPC_ID (10.10.0.0/16) | ELK
- Availability Zone: us-west-1b
- CIDR block: 10.10.1.0/24
Click Yes, Create.
- Enter in information as shown below for the second subnet:
- Name tag: ELK OpsWorks Subnet (us-west-1c)
- VPC: vpc-YOUR_VPC_ID (10.10.0.0/16) | ELK
- Availability Zone: us-west-1c
- CIDR block: 10.10.2.0/24
Click Yes, Create.
The subnets in your VPC must be associated with a route table which define how network packets are routed in your subnets.
-
Navigate to Route Tables from the sidebar and click Create Route Table.
-
Enter in information as shown below:
- Name tag: ELK
- VPC: vpc-YOUR_VPC_ID (10.10.0.0/16) | ELK
Click Yes, Create.
-
Once the Route Table has been created, select the route table from the list and click on Subnet Associations tab and click Edit.
-
Check off checkboxes in Associate column for both subnets and click Save.
Internet Gateways allow instances in your VPC to be able to connect to the Internet. Without it, your instances will not be able to receive public IP addresses.
-
Navigate to Internet Gateways from the sidebar and click Create Internet Gateway.
-
Enter in information as shown below:
- Name tag: ELK
Click Yes, Create.
-
Navigate back to Route Tables from the sidebar.
-
Select the route table you created in previous section.
-
Select the Routes tab at the bottom and click Edit.
-
Enter the following information on the new row:
- Destination: 0.0.0.0/0
- Target: igw-YOUR_GATEWAY_ID
Click Save.
This cookbook is licensed and distributed under the Simplified BSD license. See LICENSE for more details.