56e60c5b29
Signed-off-by: Sam Alba <sam.alba@gmail.com>
35 lines
619 B
CUE
35 lines
619 B
CUE
package main
|
|
|
|
import (
|
|
"dagger.io/aws"
|
|
)
|
|
|
|
// AWS account: credentials and region
|
|
awsConfig: aws.#Config & {
|
|
region: *"us-east-1" | string @dagger(input)
|
|
}
|
|
|
|
// URL of the website to monitor
|
|
website: string | *"https://www.google.com" @dagger(input)
|
|
|
|
// Email address to notify of monitoring alerts
|
|
email: string @dagger(input)
|
|
|
|
// The monitoring service running on AWS Cloudwatch
|
|
monitor: #HTTPMonitor & {
|
|
notifications: [
|
|
#Notification & {
|
|
endpoint: email
|
|
protocol: "email"
|
|
},
|
|
]
|
|
canaries: [
|
|
#Canary & {
|
|
name: "default"
|
|
url: website
|
|
},
|
|
]
|
|
cfnStackName: "my-monitor"
|
|
"awsConfig": awsConfig
|
|
}
|