Create Route53 HealthChecks to monitor TCP, HTTP, HTTPS endpoints, CloudWatch Alarms and other Route53 HealthChecks.
Project description
AWS CDK Route53 HealthCheck
Create Route53 HealthChecks to monitor TCP, HTTP, HTTPS endpoints, CloudWatch Alarms and other Route53 HealthChecks.
Currently supported types of Route53 HealthChecks:
- Health checks that monitor an endpoint
- Health checks that monitor other health checks
- Health checks that monitor CloudWatch alarms
Easily create a CloudWatch Alarm based on the Route53 HealthCheck:
const healthCheck = new EndpointHealthCheck(stack, "HealthCheck", {
domainName: "pepperize.com",
});
const alarm = new cloudwatch.Alarm(this, "Alarm", {
metric: healthCheck.metric(),
comparisonOperator: cloudwatch.ComparisonOperator.LESS_THAN_THRESHOLD,
threshold: 1,
evaluationPeriods: 1,
});
See more options API Reference
Install
TypeScript
npm install @pepperize/cdk-route53-health-check
or
yarn add @pepperize/cdk-route53-health-check
Python
pip install pepperize.cdk-route53-health-check
C# / .Net
dotnet add package Pepperize.CDK.Route53HealthCheck
Java
<dependency>
<groupId>com.pepperize</groupId>
<artifactId>cdk-route53-health-check</artifactId>
<version>${cdkRoute53HealthCheck.version}</version>
</dependency>
Usage
npm install @pepperize/cdk-route53-health-check
See API.md.
Create a Route53 HealthCheck for an endpoint
new EndpointHealthCheck(stack, "HealthCheck", {
domainName: "pepperize.com",
});
Generates
Resources:
Type: AWS::Route53::HealthCheck
Properties:
HealthCheckConfig:
FullyQualifiedDomainName: "pepperize.com"
Port: 443
Type: "HTTPS"
EnableSNI: true
See for more options API Reference - EndpointHealthCheckProps
Create a Route53 HealthCheck to monitor other HealthChecks
const healthCheck1 = new EndpointHealthCheck(stack, "HealthCheck1", {
domainName: "pepperize.com",
});
const healthCheck2 = EndpointHealthCheck.fromHealthCheckId(
stack,
"HealthCheck2",
"9ebee2db-6292-4803-9838-327e6example"
);
new CalculatedHealthCheck(stack, "CalculatedHealthCheck", {
childHealthChecks: [healthCheck1, healthCheck2],
});
See for more options API Reference - CalculatedHealthCheckProps
Create a Route53 HealthCheck to monitor CloudWatch Alarms
const alarm = cloudwatch.Alarm.fromAlarmArn(
stack,
"Alarm",
"arn:aws:cloudwatch:us-east-1:123456789012:alarm:any-alarm"
);
new AlarmHealthCheck(stack, "HealthCheck", {
alarm: alarm,
});
See for more options API Reference - AlarmHealthCheckProps
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for pepperize.cdk-route53-health-check-0.0.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e156adb4a0949e163128ea451d2bd485015994ffdaccf730e90cde80a18df267 |
|
MD5 | e9bf44cdd04f7dda30e76c24a5c8109e |
|
BLAKE2b-256 | 5ee89968fdcc350bbf9f63ad0b0bed215a7fd8650c4042e2eb6777f7d8940639 |
Close
Hashes for pepperize.cdk_route53_health_check-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62dfc3f1b32e99a7471b804e4f19575092ff25d4968390d6381d58dbcd40ecf5 |
|
MD5 | 1325a3f7716101bfcdaacbb47ace98fd |
|
BLAKE2b-256 | b20240aa05a696008eef1b05f819e67748495964c3d6356b9ee1eed6c99e1691 |