create_engine()#
relationalai.api
#create_engine(<engine_name>, <engine_size>[, <external_integrations>])
Creates a new RelationalAI (RAI) engine of the specified size.
Requires the eng_admin
application role.
Parameters#
Name | Type | Description |
---|---|---|
<engine_name> | STRING | The name of the engine (case-sensitive). |
<engine_size> | STRING | The size of the engine. Must be one of 'HIGHMEM_X64_S' or 'HIGHMEM_X64_M' . |
<external_integrations> | ARRAY | (Optional) An array of external access integrations to enable on the engine. |
Example#
Use create_engine()
to create a new RAI engine.
For example, to create a new engine named my_rai_engine
size 'HIGHMEM_X64_S'
:
#CALL relationalai.api.create_engine('my_rai_engine', 'HIGHMEM_X64_S');
If the engine needs to access external resources, such as AWS S3 or Azure Blob Storage, specify the external integrations to enable on the engine:
#CALL relationalai.api.create_engine(
'my_rai_engine',
'HIGHMEM_X64_S',
-- Enable existing external integration 'my_external_integration' on the engine.
ARRAY_CONSTRUCT('my_external_integration')
);
See the Snowflake documentation for more information on creating and using external access integrations.