If your cloud provider offers an API accessible in your language of choice, you can interact with the cloud resources directly from your application.
Example: you have an application that allows users to upload their own pictures. This application uses the Cloud API to create a storage bucket for each newly registered user:
#include <aws/core/Aws.h>
#include <aws/s3/S3Client.h>
#include <aws/s3/model/CreateBucketRequest.h>
#include <spdlog/spdlog.h>
const Aws::S3::Model::BucketLocationConstraint region =
Aws::S3::Model::BucketLocationConstraint::eu_central_1;
bool create_user_bucket(const std::string &username) {
Aws::S3::Model::CreateBucketRequest request;
Aws::String bucket_name("userbucket_" + username);
request.SetBucket(bucket_name);
Aws::S3::Model::CreateBucketConfiguration bucket_config;
bucket_config.SetLocationConstraint(region);
request.SetCreateBucketConfiguration(bucket_config);
Aws::S3::S3Client s3_client...