aws-control-tower-customizations icon indicating copy to clipboard operation
aws-control-tower-customizations copied to clipboard

Pipeline should be fired when we move accounts between OUs

Open rmsilva1973 opened this issue 3 years ago • 3 comments

Since we can target differente stacksets to different OUs, I think it would be reasonable that the pipeline gets fired whenever we move accounts between OUs

rmsilva1973 avatar Feb 09 '22 13:02 rmsilva1973

Add UpdateManagedAccount to the CustomControlTowerLECWEventRule Resource EventPattern:

https://github.com/aws-solutions/aws-control-tower-customizations/blob/main/deployment/custom-control-tower-initiation.template#L3009

"eventName": [ "CreateManagedAccount", "UpdateManagedAccount" ],

cabjas01 avatar Feb 09 '22 17:02 cabjas01

@cabjas01 the event source is not "aws.controltower" I think it's "organizations.amazonaws.com" as can be seen in eventSource. Also, lifecycle_event_handler.py expects messages from aws.controltower only.

A little bit more tweaking, but still seems doable...

rmsilva1973 avatar Feb 09 '22 18:02 rmsilva1973

Thanks @rmsilva1973 we have added this to our backlog.

rakshb avatar Feb 21 '22 19:02 rakshb