aws resource types vs custom resources

0

My customer is looking to enable Infra As Code for some 3rd-party resources external to AWS using Cloudformation. It looks like there are 2 ways to do this: https://aws.amazon.com/blogs/mt/managing-resources-using-aws-cloudformation-resource-types/

This blog posts appears to heavily favor resource types over custom resources.

Using cfn-cli to run through an example using a resource type in Go, but the generator crashes when running “cfn-cli init”. Seems to be a Windows-specific issue.

They looked for an already-generated example of a Go resource type on Github under the aws-cloudformation org, but couldn’t find any. It was also unclear whether interactions with resource types using the CDK is possible. Is this possible using the CfnResource construct?

Are resource types really ready for prime-time, or should they fall back to custom resources?

Thanks!

AWS
Larry_I
demandé il y a 4 ans712 vues
1 réponse
0
Réponse acceptée

Hello,

Basically custom resource timeout is capped to 1 hour.

But even though custom resource is capped to 1 hour, lambda can only run for 15 mins. So basically for lambda backed CR its 15 mins. SNS backed CR signal should be sent within 59 minutes and 59 seconds but as Christian suggested, you can make use of CloudFormation registry it can be upto 36 hours.

In summary - Lambda backed CR - 15mins SNS backed CR - 1 hour CFN Registry - upto 36 hours

Yes, resource types are ready for prime-time. Custom resources have their own use-case.

If their use-case requires compute/logic that takes less than 1 hour to execute, then custom resource would be the go-to solution.

But in case they want to have a pure resource kind of experience which also does drift detection, etc. then its better to use CloudFormation registry.

Hope this helps :)

AWS
répondu il y a 4 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions

Contenus pertinents