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:
29
examples/aws-monitoring/main.cue
Normal file
29
examples/aws-monitoring/main.cue
Normal 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
|
||||
}
|
Reference in New Issue
Block a user