How to use Optimus Datastore in my service?
Add Optimus Datastore to my existing deployed service
Adding Optimus datastore to the existing deployed service is similar to adding any new component to the existing deployed service. Following are the steps:
Update your service definition & provisioning with the right details. The sample of the same can be found here:
Add the component by using odin's add component feature. One sample command of the command can be as follow. The new component details have to be passed in a file content is similar to how the component details and provisioning details of the same is passed during add_component operation. A sample file can be found here. Command for example:
odin operate service --operation add_component --name Service-A --env env-1001 --file file.json
Once the component addition activity is completed, optimus datastore will be ready for operation via Odin. Currently available operations via Optimus datastores can be found here -
RDS: RDS Operations
Kafka: Kafka Operations
DynamoDB: DynamoDB Operations
MemoryDB: MemoryDB Operations
CloudSQL: CloudSQL Operations
Add Optimus Datastore to my new Service
Adding Optimus datastores in a new service is no different than adding any other component to a new service and deploying the same. The following steps to be followed:
Define the service definition & provisioning file and include the Optimus datastore within it. A sample file can be found in the link below:
Release the service as per the process mentioned here - Release Service. Do not forget to verify the service release by running
odin list service
command.Deploy the service as mentioned here - Deploy Service.
Once the deployment is completed, along with any other components, Optimus datastore is also available for operation. Currently available operations via Optimus datastores can be found here
RDS: RDS Operations
Kafka: Kafka Operations
DynamoDB: DynamoDB Operations
MemoryDB: MemoryDB Operations
CloudSQL: CloudSQL Operations
Last updated