For our application, we have a Kinesis stream that is only supposed to exist in one environment. Then we have an IAM role to allow Lambda to access the stream.
Since the stream will not exist in other environments, is it possible to conditionally create the Kinesis statement? Or should I just use some dummy value for the ARN?
I have tried specifying a
Condition for the statement (with the definition under
resources.Conditions) but this is returning a syntax error.