You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@eladb how about "generating" the code for these classes from the JSON files or type definitions of the aws-sdk?
So if I want to roll a container everyday at midnight I could do:
newScheduledAwsEcsUpdateService(this,'Roll',{// The class for the ECS.UpdateService API callparams: {// This is typed :)service: myService.serviceName,cluster: myCluster.clusterName,forceNewDeployment: true},scheduleExpression: 'cron(0 0 * * ? *)'});
The cdk could benefit from an
AwsLambda
orScheduledAwsLambda
construct that could be used like this:The lambda function takes the
service
,action
andparameter
asevent
and simply makes the call usingaws-sdk-js
.See also discussion started in #1850
The text was updated successfully, but these errors were encountered: