Creating compute instance from instance configuration

513 views Asked by At

I want to create a compute instance using oci-python-sdk in the same way as I would by clicking 'launch instance' in the "compute >> instance configurations >> instance configuration details" on the Oracle website.

I only found references to creating instances from custom images, but nothing on doing it from an existing configuration.

1

There are 1 answers

0
Vyas Bhagwat On

You can launch an instance configuration with launch_instance_configuration.

This example for launching an instance might help with a few more operations around the same: https://github.com/oracle/oci-python-sdk/blob/master/examples/launch_instance_example.py