Hi
Using Terraform is it possible to create a Cloudwatch rule that runs a scheduled 'create snapshot' on a particular volume
Had a good look at the docs and online but cant seem to find the correct syntax
Thanks for any help
Rgds
Keir
Details of a Rule and Target from one manually created
Rule
{
"State": "ENABLED",
"ScheduleExpression": "rate(1 hour)",
"Name": "backup-devops-diskstore",
"Arn": "arn:aws:events:eu-central-1:498606453616:rule/backup-devops-diskstore",
"Description": "backup-devops-diskstore"
}
Target
"Targets": [
{
"Input": "\"arn:aws:ec2:eu-central-1:1234567890:volume/vol-12345678\"",
"Id": "Id372662439390",
"Arn": "arn:aws:automation:eu-central-1:1234567890:action/EBSCreateSnapshot/EBSCreateSnapshot_backup-devops-diskstore"
}
]