dspham / terraform-aws-ec2-prometheus

ec2 with prometheus, alertmanager, and grafana installed with ansible

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

terraform-aws-ec2-prometheus

WIP

Features

This provisions an ec2 and then configures it with prometheus, alertmanager, and grafana.

Terraform Versions

For Terraform v0.12.0+

Usage

module "this" {
    source = "github.com/robc-io/terraform-aws-ec2-prometheus"

}

Examples

Known Issues

No issue is creating limit on this module.

Providers

Name Version
aws n/a
random n/a

Inputs

Name Description Type Default Required
ebs_volume_id The volume id of the ebs volume to mount string "" no
ebs_volume_size The size of volume - leave as zero or empty for no volume number 0 no
eip_id The elastic ip id to attach to active instance string "" no
environment The environment string "" no
grafana_admin_password The grafana admin password string "hunter2" no
grafana_admin_user The grafana admin user name string "admin" no
instance_type Instance type string "t2.micro" no
key_name The key pair to import string "" no
monitoring Boolean for cloudwatch bool false no
name The name for the label string "prometheus" no
namespace The namespace to deploy into string "prod" no
network_name The network name, ie kusama / mainnet string "main" no
owner Owner of the infrastructure string "" no
playbook_vars Extra playbook vars map(string) {} no
private_key_path The path to the private ssh key string n/a yes
public_key_path The path to the public ssh key string n/a yes
root_volume_size Root volume size string 8 no
stage The stage of the deployment string "blue" no
subnet_id The id of the subnet string n/a yes
volume_path The path of the EBS volume string "/dev/xvdf" no
vpc_security_group_ids List of security groups list(string) n/a yes

Outputs

Name Description
public_ip n/a

Testing

This module has been packaged with terratest tests

To run them:

  1. Install Go
  2. Run make test-init from the root of this repo
  3. Run make test again from root

Authors

Module managed by robc-io

Credits

License

Apache 2 Licensed. See LICENSE for full details.

About

ec2 with prometheus, alertmanager, and grafana installed with ansible

License:Other


Languages

Language:HCL 63.0%Language:Go 28.4%Language:Makefile 4.5%Language:Python 2.7%Language:Shell 1.4%