Add detach feature in ebs template
Refactoring R53 library and templates.