amazon web services - How to create cloudwatch event using cloudformation template? -


i using cloudwatch scheduled event trigger lambda function after specific time interval. use cloud-formation template add rule in cloudwatch. have gone through cloudformation templates documentation not able find out way configure events using cloud formation template. can please suggest how implement using cloud formation template.

i using below template.

{   "awstemplateformatversion": "2010-09-09",   "description": "provision environment specific",   "resources": {     "lambdascheduler": {       "type": "aws::cloudwatch::event",       "properties": {         "detail-type": "scheduled event",         "source": "aws.events",         "name": "test_event_10_mins_rule",         "schedule-expression": "rate(5 minutes)"       }     }   } } 

i getting a client error (validationerror) occurred when calling validatetemplate operation: template format error: unrecognized resource type: aws::cloudwatch::event error message when validate using aws cli.

i pretty sure cloudwatch event yet exposed via cloudformation api. there lag between new features in aws , them being implemented/exposed cloudformation team.

here list of resources available via cloudformation. http://docs.aws.amazon.com/awscloudformation/latest/userguide/aws-template-resource-type-ref.html

as 1 can see there 1 resource in cloudwatch namespace.


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -