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 Answer
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?

answered 8 months ago
  • 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.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions