According to the docs of the Ref CF function, you should be able to use this to get a managed policy resource through its logical name.
For example:
Policies: [ { "Ref" : "MyManagedPolicy" } ]
where " MyManagedPolicy " will be the name of the resource defined in your CF template:
"MyManagedPolicy" : { "Type": "AWS::IAM::ManagedPolicy", "Properties": { "Description" : String, "Groups" : [ String, ... ], "Path" : String, "PolicyDocument" : JSON object, "Roles" : [ String, ... ], "Users" : [ String, ... ] } }
Hope this helps?
gsaslis
source share