Containers-roadmap: [Fargate] [CloudFormation]: CloudFormation support for CWE

Created on 7 Jan 2019  Â·  10Comments  Â·  Source: aws/containers-roadmap

Tell us about your request
Update the CloudFormation support for CloudWatch Events so that targets can be Fargate tasks.

Which service(s) is this request for?
Fargate

Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard?
Its currently not possible to create a CloudWatch Events rule target that starts a Fargate task using CloudFormation. ECS is supported, but the validation does not allow the properties required to make it work for Fargate.

Are you currently working around this issue?
Creating the rule with CFN, but manually setting up the target in the UI.

Fargate Proposed

Most helpful comment

It looks like the CloudWatch Events Rule's EcsParameters needs updated to support the new data types (LaunchType, NetworkConfiguration, PlatformVersion). Being able to create fargate task triggers in CWE Rules will be very useful.

All 10 comments

One would think that when AWS releases new abilities, they would include cloudformation support. We do everything with cloudformation as it's the only way to get stuff into production, since production is updated via automated processes only.

When is this expected to be available?

Yeah @DraakUSA, the disconnect between CloudFormation and AWS's own products is perplexing.

AWS API changes get support in Terraform in only days after public release. Yet CloudFormation, which should have the inside scoop, can take weeks, or months, or just never support AWS API changes. There are some resources that have had tags support added, that have just never been updated to support tags in CloudFormation. ¯\_(ツ)_/¯

It looks like the CloudWatch Events Rule's EcsParameters needs updated to support the new data types (LaunchType, NetworkConfiguration, PlatformVersion). Being able to create fargate task triggers in CWE Rules will be very useful.

Since this still has the proposed tag, should we assume that there's no chance of getting this addition to CloudFormation this year? My company is fully deployed on Fargate now, however we have a few Tasks scheduled using CWE and we're running an EC2 instance only to support that and nothing more.

+1 - we currently have a Lambda hack to start Fargate containers and it's very annoying :(

We also need to schedule Fargate container through Cloudformation.

@mukaibot could you please share the lambda you're using ? Thanks in advance

+1
I am currently getting around this by using the AWS CDK which creates custom resources and lambda's to create the event target. This is not great as its adds a lot of complexity to what should be a very simple thing to do in cloudformation.

+1
This should be quite simple but without CF support it's not. I echo @toneill818 and @whereisaaron comments above.

It looks like this is finally on their roadmap but they are tracking it with issue #392

Was this page helpful?
0 / 5 - 0 ratings

Related issues

groodt picture groodt  Â·  3Comments

jeremietharaud picture jeremietharaud  Â·  3Comments

AndrewMcFarren picture AndrewMcFarren  Â·  3Comments

ORESoftware picture ORESoftware  Â·  3Comments

tabern picture tabern  Â·  3Comments