WIP
This provisions an ec2 and then configures it with prometheus, alertmanager, and grafana.
For Terraform v0.12.0+
module "this" {
source = "github.com/robc-io/terraform-aws-ec2-prometheus"
}
No issue is creating limit on this module.
Name | Version |
---|---|
aws | n/a |
random | n/a |
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 |
Name | Description |
---|---|
public_ip | n/a |
This module has been packaged with terratest tests
To run them:
- Install Go
- Run
make test-init
from the root of this repo - Run
make test
again from root
Module managed by robc-io
Apache 2 Licensed. See LICENSE for full details.