DevOps Automation

 View Only
Expand all | Collapse all

Is there a way to reuse properties defined at other resources/components

  • 1.  Is there a way to reuse properties defined at other resources/components

    Posted Mon September 21, 2020 08:00 PM

    Hi, am adding a new component/resource. I would like to know if there is a way to reuse values defined at other resource/component. The other component/resource and new component/resource have few properties, (differ in property name, but shares same value). Don't want to edit it at multiple places (if there is a change required).


    #SupportMigration
    #Support
    #UrbanCodeDeploy


  • 2.  RE: Is there a way to reuse properties defined at other resources/components

    Posted Wed October 28, 2020 10:43 AM

    If I understand what you're asking correctly, the following might help

    You can define the value of a property in terms of the value of another although it would be best to just have the one.

    So I if I have a property propA with a value of "XYZ" and i want another property propB to have the same value then I could define the value for propB as ${p:propA} but it does depend on whether propB would have visibility of probA.

    If possible it might just be better to move propA higher in the resource tree so that it is visible to both consumers.

    Sorry this is a bit generic but its difficult to be more specific with the information provided


    #SupportMigration
    #UrbanCodeDeploy
    #Support