Name | Version |
---|---|
terraform | ~> 1.0 |
No providers.
Name | Source | Version |
---|---|---|
cloudwatch_log_group | ./modules/cloudwatch_log_group | n/a |
cloudwatch_log_resource_policy | ./modules/cloudwatch_log_resource_policy | n/a |
cloudwatch_metric_alarm | ./modules/cloudwatch_metric_alarm | n/a |
No resources.
Name | Description | Type | Default | Required |
---|---|---|---|---|
cloudwatch_log_group_kms_key_id | The ARN of the KMS Key to use when encrypting log data | string |
null |
no |
cloudwatch_log_group_name | The name of the log group. If omitted, Terraform will assign a random, unique name | string |
null |
no |
cloudwatch_log_group_retention_in_days | Specifies the number of days you want to retain log events in the specified log group. Possible values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1827, 3653, and 0. If you select 0, the events in the log group are always retained and never expire | number |
null |
no |
cloudwatch_log_group_tags | A map of tags to assign to the resource | map(string) |
{} |
no |
cloudwatch_log_resource_policy_document | Required if create_cloudwatch_log_resource_policy is set to true . Details of the resource policy, including the identity of the principal that is enabled to put logs to this account. This is formatted as a JSON string. Maximum length of 5120 characters |
string |
null |
no |
cloudwatch_log_resource_policy_name | Required if create_cloudwatch_log_resource_policy is set to true . Name of the resource policy |
string |
null |
no |
cloudwatch_metric_alarm_actions_enabled | Indicates whether or not actions should be executed during any changes to the alarm's state. Defaults to true |
bool |
true |
no |
cloudwatch_metric_alarm_alarm_actions | The list of actions to execute when this alarm transitions into an ALARM state from any other state. Each action is specified as an Amazon Resource Name (ARN) | set(string) |
null |
no |
cloudwatch_metric_alarm_alarm_description | The description for the alarm | string |
null |
no |
cloudwatch_metric_alarm_comparison_operator | Required if create_cloudwatch_metric_alarm is set to true . The arithmetic operation to use when comparing the specified Statistic and Threshold. The specified Statistic value is used as the first operand. Either of the following is supported: GreaterThanOrEqualToThreshold , GreaterThanThreshold , LessThanThreshold , LessThanOrEqualToThreshold . Additionally, the values LessThanLowerOrGreaterThanUpperThreshold , LessThanLowerThreshold , and GreaterThanUpperThreshold are used only for alarms based on anomaly detection models. |
string |
null |
no |
cloudwatch_metric_alarm_datapoints_to_alarm | The number of datapoints that must be breaching to trigger the alarm | number |
null |
no |
cloudwatch_metric_alarm_dimensions | The dimensions for the alarm's associated metric | map(string) |
null |
no |
cloudwatch_metric_alarm_evaluate_low_sample_count_percentiles | Used only for alarms based on percentiles. If you specify ignore, the alarm state will not change during periods with too few data points to be statistically significant. If you specify evaluate or omit this parameter, the alarm will always be evaluated and possibly change state no matter how many data points are available. The following values are supported: ignore , and evaluate |
string |
null |
no |
cloudwatch_metric_alarm_evaluation_periods | Required if create_cloudwatch_metric_alarm is set to true . The number of periods over which data is compared to the specified threshold |
number |
null |
no |
cloudwatch_metric_alarm_extended_statistic | The percentile statistic for the metric associated with the alarm. Specify a value between p0.0 and p100 | string |
null |
no |
cloudwatch_metric_alarm_insufficient_data_actions | The list of actions to execute when this alarm transitions into an INSUFFICIENT_DATA state from any other state. Each action is specified as an Amazon Resource Name (ARN) | set(string) |
null |
no |
cloudwatch_metric_alarm_metric_name | The name for the alarm's associated metric | string |
null |
no |
cloudwatch_metric_alarm_metric_queries | List of mertic queries. Enables you to create an alarm based on a metric math expression. You may specify at most 20 | any |
[] |
no |
cloudwatch_metric_alarm_name | Required if create_cloudwatch_metric_alarm is set to true . The descriptive name for the alarm. This name must be unique within the user's AWS account |
string |
null |
no |
cloudwatch_metric_alarm_namespace | The namespace for the alarm's associated metric | string |
null |
no |
cloudwatch_metric_alarm_ok_actions | The list of actions to execute when this alarm transitions into an OK state from any other state. Each action is specified as an Amazon Resource Name (ARN) | set(string) |
null |
no |
cloudwatch_metric_alarm_period | The period in seconds over which the specified statistic is applied | number |
null |
no |
cloudwatch_metric_alarm_statistic | The statistic to apply to the alarm's associated metric. Either of the following is supported: SampleCount , Average , Sum , Minimum , Maximum |
string |
null |
no |
cloudwatch_metric_alarm_tags | A map of tags to assign to the resource | map(string) |
{} |
no |
cloudwatch_metric_alarm_threshold | The value against which the specified statistic is compared. This parameter is required for alarms based on static thresholds, but should not be used for alarms based on anomaly detection models | number |
null |
no |
cloudwatch_metric_alarm_threshold_metric_id | If this is an alarm based on an anomaly detection model, make this value match the ID of the ANOMALY_DETECTION_BAND function | string |
null |
no |
cloudwatch_metric_alarm_treat_missing_data | Sets how this alarm is to handle missing data points. The following values are supported: missing , ignore , breaching and notBreaching . Defaults to missing |
string |
"missing" |
no |
cloudwatch_metric_alarm_unit | The unit for the alarm's associated metric | string |
null |
no |
create_cloudwatch_log_group | Determinate to create cloudwatch_log_group resource or not |
bool |
true |
no |
create_cloudwatch_log_resource_policy | Determinate to create cloudwatch_log_resource_policy resource or not |
bool |
true |
no |
create_cloudwatch_metric_alarm | Determinate to create cloudwatch_metric_alarm resource or not |
bool |
false |
no |
use_cloudwatch_log_group_name_prefix | Determinate to use name_prefix or not |
bool |
false |
no |
Name | Description |
---|---|
cloudwatch_log_group_arn | The Amazon Resource Name (ARN) specifying the log group |
cloudwatch_log_resource_policy_id | The name of the CloudWatch log resource policy |
cloudwatch_metric_alarm_arn | The ARN of the CloudWatch Metric Alarm |
cloudwatch_metric_alarm_id | The ID of the health check |