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
I'm trying to build a stack similar to what is outlined here. Most of it is working great in goformation, but it seems like it's not possible to embed an inline policy along with intrinsic functions.
What I'm specifically trying to do is add a DestinationPolicy to an AWSLogsDestination. This policy is comprised of the escaped JSON and intrinsic functions. From the above link:
But despite various ways of invoking cloudformation.Join(), whenever JSON is passed in, DestinationPolicy ends up getting rendered in the output as base64.
The text was updated successfully, but these errors were encountered:
t = strings.Replace(t, "${LogDestinationPolicyPlaceholder}", destinationPolicy, 1)
Where destinationPolicy is the policy JSON. However, big caveat - I have to wrap destinationPolicy with single quotes. Not sure how this goes if the policy document contains single quotes - however until this is fixed it works fine for me.
Like I said - super crude, and super brittle, but gets me moving along.
I'm trying to build a stack similar to what is outlined here. Most of it is working great in goformation, but it seems like it's not possible to embed an inline policy along with intrinsic functions.
What I'm specifically trying to do is add a
DestinationPolicy
to anAWSLogsDestination
. This policy is comprised of the escaped JSON and intrinsic functions. From the above link:But despite various ways of invoking
cloudformation.Join()
, whenever JSON is passed in, DestinationPolicy ends up getting rendered in the output as base64.The text was updated successfully, but these errors were encountered: