Cloud formation template modifications management

0

Hi, I have an amplify app. I added custom resources with a CloudFormation template. This template add a webACL from the WAF, add some rules, create some IPset, a Loggin group and associate this webACL with some resources. My problem is that when i modify the rules the amplify push fail because the association already exist on my resources. The modification of the ipset do not matter the amplify push accept it but the modification of WebACL cause the association creation to be triggered again and as it already exists, the "push" to fail. Is there a solution ? How do i manage those rules modifications in a IAC way ?

1 réponse
0

Have a look here: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-custom-resources.html Is your custom resource doing the right thing based on the RequestType?

répondu il y a 9 mois
  • I'm not sure i'm concerned by this documentation. Because the resources i create are custom resources for amplify but the resource type is valid for CloudFormation so i'm not using the syntax used in this article.

  • Can you post your CloufFormation template and custom Lambda? I'm not sure we're on the same page but we can align on that and take it from there.

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