implemented http-monitoring example using AWS Cloudformation and AWS Cloudwatch Synthetics

Signed-off-by: Sam Alba <sam.alba@gmail.com>
This commit is contained in:
Sam Alba
2021-03-03 17:34:00 -08:00
parent 64ab495c82
commit 56bcf6366c
2 changed files with 298 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
package main
import (
"dagger.io/aws"
)
// Fill using:
// --input-string awsConfig.accessKey=XXX
// --input-string awsConfig.secretKey=XXX
awsConfig: aws.#Config & {
region: *"us-east-1" | string
}
monitor: #HTTPMonitor & {
notifications: [
#Notification & {
endpoint: "sam+test@blocklayerhq.com"
protocol: "email"
},
]
canaries: [
#Canary & {
name: "website-test"
url: "https://www.google.com/"
},
]
cfnStackName: "my-monitor"
"awsConfig": awsConfig
}