Hi,
Currently it seems like awacs.aws.Statement
's Resource attr can only be a list
(https://github.com/cloudtools/awacs/blob/master/awacs/aws.py#L143)
It would be useful to allow passing in a troposphere.Ref
object because then you can have a CommaDelimitedList parameter which contains the resources you want to create the policy for.
I guess this could be done with a callable, like the Effect
type check in Statement
, although it feels like there could be a more general solution that could be useful for all types, not just Statement.
Thanks