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

con risposta 9 mesi fa
  • 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.

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande