Adding & removing components
Last updated
Last updated
Adding and removing a component are operation that can be performed on a service. The syntax for the same withing odin CLI are as follow:
add_component
& remove_component
Following are the various options available for the above operations
name
string
Service Name
odin operate service --operation add_component --name Service-A --env env-1001 --file file.json
env
string
Environment Name
--do--
file
string
The file that contains the component details to be added/removed
--do--
options
string
The json content directly being passed as inline content
odin operate service --operation remove_component --name Service-A --env env-1001 --options '{"component_name":"odindemo"}'
While adding a component, a sample json to pass along with component details and provisioning config can be found here -
It is important to note that internal schema is exactly the same as that of service definition and provisioning config.