Managing Yandex Cloud resources using an AI assistant
This feature is in the Preview stage.
You can use an AI assistant integrated into the management console to create and delete Yandex Cloud resources as well as manage their settings. With the AI assistant, you can run operations on cloud resources by sending text messages to a chat with a generative model.
Creating and deleting resources
In the example below, you will use an AI assistant to create a cloud network, a subnet, and a security group in it. Then you will delete the resources you created.
To use an AI assistant for resource management:
-
In the management console
, select the folder where you are going to run operations on Yandex Cloud resources, then select AI Assistant in the left-hand panel. -
In the AI assistant window, use the message input field to describe what you want to do with Yandex Cloud resources:
Note
By default the AI assistant performs operations on resources in the folder you selected in the management console before opening the AI assistant window.
-
Create a cloud network:
Create a new cloud network named my-new-network.The AI assistant will create a cloud network with this name and notify you accordingly:
Alright! You have successfully created a new cloud network named my-new-network. It is ready for use: you can now add subnets and other cloud resources. -
Create a subnet specifying the new network name and the availability zone for the subnet:
In my-new-network, create a subnet in the ru-central1-a availability zone with this address range: 192.168.1.0/24.Result:
Successfully created a new subnet with the provided parameters: Name: subnet-ru-central1-a Network: my-new-network Availability zone: ru-central1-a IP address range: 192.168.1.0/24 The subnet is ready for use.As you can see in the result, the AI assistant has given its own name to the new subnet since you have not specified the name in the request. Therefore, the assistant itself can set some standard values for most parameters of the resources you create.
-
Create a security group that allows inbound traffic on TCP ports
80and443as well as any outbound traffic:In my-new-network, create a security group that allows any outgoing traffic as well as incoming traffic on TCP ports 80 and 443.Result:
Successfully created a security group with the following settings: Name: web-security-group Network: my-new-network These rules can be: ✅ Incoming traffic (Ingress): TCP port 80 (HTTP) from any IP address (0.0.0.0/0) TCP port 443 (HTTPS) from any IP address (0.0.0.0/0) ✅ Outgoing traffic (Egress): All outgoing traffic is allowed (from any IP address and over any protocol) Security group is active and ready to connect to your VMs.If you use the AI assistant, you do not need to create resources one by one: you can request multiple resources in a single message.
For example:
Create a new cloud network named my-new-network. In this network, create a subnet in the ru-central1-a availability zone and a security group allowing all outgoing traffic as well as incoming traffic on TCP ports 80 and 443.The AI assistant will then define the parameters of the new resoures and the order in which to create them and ask you to confirm the action plan:
Thank you for your request! So, you would like to create three resources: a network, subnet, and security group. This is a complex project, so let me outline the plan first. Suggested plan: 1. Create a network named my-new-network. 2. In this network, create a subnet in the ru-central1-a availability zone. I will assign it the standard CIDR block, 10.0.0.0/24. 3. Create a security group in the new network that allows: ● Any outgoing traffic. ● Incoming traffic on TCP ports 80 (HTTP) and 443 (HTTPS) from any address. All resources will be created in the folder with ID b1gt6g8ht345********. Is everything correct? May I proceed with this plan?You can accept the proposed plan or modify some parameters, e.g.:
Reduce the number of available subnet addresses to sixteen.The AI assistant will then provide an updated plan:
Excellent point! I will revise the plan. Here is the new plan: 1. Create a network named my-new-network. 2. In this network, create a subnet in the ru-central1-a availability zone. Now I will use the 10.0.0.0/28 CIDR block which contains exactly 16 IP addresses. 3. Create a security group in the new network that allows: ● Any outgoing traffic. ● Incoming traffic on TCP ports 80 (HTTP) and 443 (HTTPS) from any address. I am ready to proceed. Do you confirm?You may ask the assistant to make other changes or approve the plan. After your approval, the assistant will create the resources.
-
Delete all resoures you created by specifying their names or IDs:
Delete subnet-ru-central1-a and web-security-group, then delete my-new-network.The AI assistant will delete all the specified resources.
-
Managing chats with the AI assistant
To manage multiple segments of a cloud infrastructure at the same time, you can create separate chats with the AI assistant. To manage your chats with the AI assistant:
-
In the management console
, select AI Assistant in the left-hand panel. -
In the top-left corner of the AI assistant window, click
to open the assistant chat management page. On that page, you can view your chat history with the AI assisstant and manage chats. -
To create a new chat, click
New chat. -
To open a specific chat, click the row with its name.
-
To delete a specific chat, hover over the row with its name, click the
icon you see, and confirm the deletion in the window that opens. -
To clear the entire chat history:
- Click
and select Delete all chats. - In the window that opens, confirm the deletion.
- Click