Skip to content

insight-infrastructure/terraform-aws-ec2-prometheus

Repository files navigation

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
alertmanager_receivers list of recievers per docs https://prometheus.io/docs/alerting/configuration/#example list(map(string))
[
{}
]
no
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
hostname Boolean to create a hostname - ie hostname.example.com string "" no
instance_type Instance type string "t2.small" 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
playbook_vars_file Path to vars file 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_domain_name The name of the root domain name string "" no
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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published