Moogsoft Docs

AWS CloudWatch LAM Reference

This is a reference for the AWS CloudWatch LAM and UI integration. The AWS CloudWatch LAM configuration file is located at $MOOGSOFT_HOME/config/aws_lam.conf.

The following properties are unique to the AWS CloudWatch LAM and UI integration.

See the LAM and Integration Reference for a full description of all common properties used to configure LAMs and UI integrations.

See the AWS CloudWatch documentation for details on AWS CloudWatch components.

role_arn

Role ARN of the delegated role. If credentials (access_key_id and secret_access_key) are provided, it is assumed that it belongs to a user from the account trusted with role delegation. If no credentials are provided, SDK falls back on environment variables, SDK or instance roles for them.

Type

String

Required

No

Default

N/A

role_session_validity

Duration (in seconds) for which temporary credentials remain valid for sending requests to AWS.

Type

Integer

Required

Yes

Default

3600

exclude_protected_regions

When true, US Government and Chinese regions are not added when aws_all_regions is used in either the alarms or events filter. When false, all regions are included.

Type

Boolean

Required

Yes

Default

true

filter

Filters alarms and/or events received from AWS CloudWatch by region.

Type

Object

Required

No

Default

N/A

Valid Values

See the alarms and events properties below.

Example

filter:
{
    alarms:
    { 
        "aws_all_regions":
        {
            #alarm_name_prefix            : "",
            alarms_to_monitor             : ["alarm1", "alarm2"]
        },
        
        "us-west-2":
        {
            alarm_name_prefix            : "alarm",
            alarms_to_monitor             : ["3", "4"]
        }
    
    events:
    {
        "aws_all_regions":
        {
            #filter_pattern              : "scheduled",
            log_group_to_monitor         : ["/aws/lambda/event1"]
        },
               
        "ap-south-1":
        {
            #filter_pattern               :"",
            log_group_to_monitor         :["/aws/lambda/event2", "/aws/lambda/event3"]
        }
    }
}
alarms

Filters the alarms received from AWS CloudWatch by region. The alarm_name_prefix filters alarms based on their prefixes. The aws_all_regions filter applies to all regions that have not been separately filtered.

Type

String

Required

No

Default

N/A

events

Filters the events from AWS CloudWatch by region. log_group_to_monitor specifies the log group to filter within a region. The filter_pattern filters events within the specified log group. The aws_all_regions filter applies to all regions that have not been separately filtered.

Type

String

Required

No

Default

N/A