You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Deploy the attached Cloudformation template, see that visiting the API GW address shows the text in the RandomParameter CF parameter.
Update the stack and change the RandomParameter value, see that a new Deployment resource is not created by the Serverless transform and see that visiting the API GW address shows the previous value of RandomParameter rather than the expected current one.
Thinking about this in the context of my own custom transform I get why detecting the change in the ref is difficult in a transform, with it being a layer removed, but the UX confused me, my VTL changed so why didn't it deploy was my initial reaction.
I suspect this suggestion won't fly but I'm making it anyway: could you generate a new Deployment on every transform regardless of if the Api resource has changed or not? It feels like a safe choice, worst case it's a noop deployment, best case it means !Refs and !Subs and !Ifs within the transformed resource work intuitively.
This is similar to issue #479. SAM only generates a new API Gateway Deployment if the swagger definition changes. If SAM uses an intrinsic function inside the swagger definition, the definition is not seen as changed, even if the value returned by the intrinsic function changes.
One way to workaround this (and force redeployment) is to make a change in the swagger.
This isn't ideal, and we are aware of this issue. Please +1 on #479 to help prioritize this issue. Thanks!
RandomParameter
CF parameter.RandomParameter
value, see that a new Deployment resource is not created by the Serverless transform and see that visiting the API GW address shows the previous value ofRandomParameter
rather than the expected current one.Thinking about this in the context of my own custom transform I get why detecting the change in the ref is difficult in a transform, with it being a layer removed, but the UX confused me, my VTL changed so why didn't it deploy was my initial reaction.
I suspect this suggestion won't fly but I'm making it anyway: could you generate a new Deployment on every transform regardless of if the Api resource has changed or not? It feels like a safe choice, worst case it's a noop deployment, best case it means
!Ref
s and!Sub
s and!If
s within the transformed resource work intuitively.The text was updated successfully, but these errors were encountered: