Bayer-Group / cloudformation-template-generator

A type-safe Scala DSL for generating CloudFormation templates
BSD 3-Clause "New" or "Revised" License
210 stars 71 forks source link

Add IAM policy to existing role #240

Closed DimaRabkin closed 6 years ago

DimaRabkin commented 6 years ago

I'm trying to create a cloud formation configuration that adds IAM policies to existing role. Can i do it with the generator? AWS::IAM::Policy contains Roles field as sequence of ResourceRef[AWS::IAM::Role] that creates a reference to role in current configuration:

[
  {"Ref": "..."}
]

I want it to generate just:


[
 "..."
]
seanmcl commented 6 years ago

@DimaRabkin The existing code does not allow you to do that. I sent a pull request, referenced above.

bkrodgers commented 6 years ago

Just released v3.8.1 which includes this fix. Let me know if you still have issues.