I feel like CloudFormation, CLI, and probably SDK support (might already be a thing, not sure) should be a requirement for any new features before release. It’s really frustrating to have 3rd party tools with support before AWS in some cases, but not others.
That would be nice. I’m patiently watching a github issue for them to add secrets manager support in Fargate to Cloudformarion. It’s been in the dashboard for quite a while. If I updated these stacks more frequently I wouldn’t be able to use the feature at all as I created everything in cfn.
That only happens if you construct your templates with every resource in one template and you haven’t turned off resource rollback during the development phase of your template.
A lot of people use CF in the wrong way. Rollbacks are GREAT if you want to be able to trust your environment. But like I said, just turn it off during development, and use nested templates that are small. Make incremental changes.
On the other hand; would you rather they wait to release the service? I see releases as “previews”. Release to general public, then wait for bug reports and feature requests. After the service is “set in stone” then build CF support for it.
There’s something to be said about the fact Cloudformation has never had a new version of its template system, 2010-09-09 The templates I wrote over 4 years ago, still work.
Why are you making excuses for AWS? They are a big company, they don’t need it.
You are paying for releases, they aren’t previews. Once it gets general availability there should be CloudFormation support as well, they definitely can pull it off (e.g. Terraform/Hashicorp)
That is a fine tip, but I don’t see how this avoids the tremendous amount of time that custom resources take to error out other than removing the rollback time. I also don’t see how nested stacks really helps unless you’re creating a stack for every custom resource or something.
Maybe I didn’t understand exactly the issue. So you have a custom resource and it takes a long time to error out? Doesn’t that depend on how it’s written?
Basically if there is a syntax error, or some other error in the lambda that prevents a callback from reaching cloudformation, the stack just sits there waiting for way longer than it should.
It comes down to doing things a different way. For example, for lambda you can develop them locally and iterate until they work using the SAM framework. It even spins up local versions of API Gateway, your functions and dynamodb so you can quickly make sure they work on your computer before deploying to AWS.
I guess it would be hard to check if callbacks to cloudformation works locally though but is this a common issue that it just doesn’t work?
Once you deploy, set a short timeout period for your stack while developing so it will time out quickly in case of network errors and such. But normally you would already know the network communication works because those resources (security groups and policies) are in a different template (or should be) that has already been deployed and tested.
I agree there are ways to make it work better, but this is not trivial. Your described setup could take a week or more to figure out, time that many dev teams don’t have to spare. Most are going to need a custom resource as a one-off, last resort and aren’t going to spend the time setting up a whole Lambda dev environment.
A better solution would be for AWS to just reduce these timeouts or intelligently set the timeout. For example, if my custom resource lambda has a timeout of 5 seconds, why does the stack wait 15+ minutes to timeout?
Yeah I understand. I’ve noticed this myself in a lot of companies - the urgency to get stuff done as fast as possible, not as good as possible. This is why there is a lot of daily issues with most environments that makes it a pain to work in them. This is not the fault of the devs, it’s the fault of agile development where you constantly have to motivate where time is going, and you are encouraged to be fast and get the cards moving across the board.
It does make economic sense though of course, because often the end result looks good on the surface. It’s just later you get issues.