Read the post on this application in AWS Management & Governance blog.
To deploy the example application, you need the following:
-
Permissions in your AWS account to create the resources. This example uses admin credentials.
-
A VPC with a public subnet or a private subnet with a route to a NAT gateway.
-
An EC2 keypair.
This template creates EC2 instances, CloudWatch custom metrics and related resources. You will be billed for the AWS resources used if you create a stack from this template.
- On the AWS CloudFormation console, choose Create stack.
- Choose the option to use new resources.
- Upload the saved template file.
- For Stack name, enter a name for the stack.
- For network configuration, select an existing VPC and one subnet with internet access.
- For EC2 Configuration, leave defaults for demo, or adjust Logstash instance type to match Logstash JVM size.
- For troubleshooting and connectivity, enter your SSH location IP CIDR and select an existing EC2 key pair.
- Choose Next.
- Step through the remaining pages.
- On the final page, select the acknowledgement that IAM resources can be created.
- Choose Create stack. It takes approximately 10 minutes to complete.
This stack creates one EC2 instance for the Logstash server and two instances running the SNMP daemon, fully configured with cfn-init helper scripts. The deployment also creates a secret with a randomly generated password in AWS Secrets Manager, the necessary EC2 IAM profiles and locked down security groups.
See CONTRIBUTING for more information.
This library is licensed under the MIT-0 License. See the LICENSE file.