Console utilities

Clouds API service

It provides an API for configuring cloud integration.

  • systemd service name:

    aos-clouds-api.service
    

OpenStack utility commands

Note

Output of messages with the level logging WARNING and below is disabled by default. It is need to set log level and run the command with the --verbose flag to enable verbose output.

Authentication mechanism is described in the section «OpenStackClient Authentication».

Setting up project for cloud integration.

Utility allows to configure a project to work with public cloud.

Command:

openstack aos clouds add
Utility arguments
Parameter Cloud type Description
-h, --help
Help output.
--project
OpenStack project for which it is need to configure integration.
<cloud_type>
Cloud type.
--access-key AWS AWS Access key ID.
--secret-key AWS AWS Secret access key.
--region AWS AWS region.
--service-account-id Yandex.Cloud Yandex.Cloud service account ID.
--key Yandex.Cloud Yandex.Cloud authorized key ID.
--private-key Yandex.Cloud Yandex.Cloud private key.
--folder-id Yandex.Cloud Yandex.Clouds directory ID.
--az AWS, Yandex.Cloud Availability zone.

Example:

openstack aos clouds add aws --project aws --access-key "AKIAIOSFODNN7EXAMPLE" --secret-key "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY" --region us-east-2 --az us-east-2a

Getting a list of integrations.

Utility allows to get list of projects for which integration with the public cloud is configured.

Command:

openstack aos clouds list
Utility arguments
Parameter Description
-h, --help Help output.

Example:

openstack aos clouds list

Deleting project integration with the cloud.

Utility allows to delete the integration of the project with public cloud.

Command:

openstack aos clouds delete
Utility arguments
Parameter Description
-h, --help Help output.
--project OpenStack project for which it is needed to delete the integration.

Example:

openstack aos clouds delete --project aws

Registering cloud images in OpenStack.

Utility allows to register public cloud images in OpenStack.

Command:

openstack aos clouds images register
Utility arguments
Parameter Description
-h, --help Help output.
--project OpenStack project to register images.
--cloud-image-id Public cloud image ID. If the parameter is specified only the specified image will be registered.

Example:

openstack aos clouds images register --project aws

Registering cloud instance types in OpenStack.

Utility allows to register public cloud instance types (flavors) in OpenStack.

Command:

openstack aos clouds flavors register
Utility arguments
Parameter Description
-h, --help Help output.
--project OpenStack project to register flavors.
--flavor Public cloud flavor ID. If the parameter is specified only the specified flavor will be registered.

Example:

openstack aos clouds flavors register --project aws