# Aurora code examples for the SDK for C++ ## Overview Shows how to use the AWS SDK for C++ to work with Amazon Aurora (Aurora). *Aurora is a fully managed relational database engine that's built for the cloud and compatible with MySQL and PostgreSQL. Aurora is part of Amazon Relational Database Service (Amazon RDS).* ## ⚠ Important * Running this code might result in charges to your AWS account. * Running the tests might result in charges to your AWS account. * We recommend that you grant your code least privilege. At most, grant only the minimum permissions required to perform the task. For more information, see [Grant least privilege](https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html#grant-least-privilege). * This code is not tested in every AWS Region. For more information, see [AWS Regional Services](https://aws.amazon.com/about-aws/global-infrastructure/regional-product-services). ## Code examples ### Single actions Code excerpts that show you how to call individual service functions. * [Create a DB cluster](getting_started_with_db_clusters.cpp#L498) (`CreateDBCluster`) * [Create a DB cluster parameter group](getting_started_with_db_clusters.cpp#L333) (`CreateDBClusterParameterGroup`) * [Create a DB cluster snapshot](getting_started_with_db_clusters.cpp#L661) (`CreateDBClusterSnapshot`) * [Create a DB instance in a DB cluster](getting_started_with_db_clusters.cpp#L589) (`CreateDBInstance`) * [Delete a DB cluster](getting_started_with_db_clusters.cpp#L1027) (`DeleteDBCluster`) * [Delete a DB cluster parameter group](getting_started_with_db_clusters.cpp#L1095) (`DeleteDBClusterParameterGroup`) * [Delete a DB instance](getting_started_with_db_clusters.cpp#L997) (`DeleteDBInstance`) * [Describe DB cluster parameter groups](getting_started_with_db_clusters.cpp#L295) (`DescribeDBClusterParameterGroups`) * [Describe DB cluster snapshots](getting_started_with_db_clusters.cpp#L701) (`DescribeDBClusterSnapshots`) * [Describe DB clusters](getting_started_with_db_clusters.cpp#L746) (`DescribeDBClusters`) * [Describe DB instances](getting_started_with_db_clusters.cpp#L882) (`DescribeDBInstances`) * [Describe database engine versions](getting_started_with_db_clusters.cpp#L844) (`DescribeDBEngineVersions`) * [Describe options for DB instances](getting_started_with_db_clusters.cpp#L919) (`DescribeOrderableDBInstanceOptions`) * [Describe parameters from a DB cluster parameter group](getting_started_with_db_clusters.cpp#L783) (`DescribeDBClusterParameters`) * [Update parameters in a DB cluster parameter group](getting_started_with_db_clusters.cpp#L403) (`ModifyDBClusterParameterGroup`) ### Scenarios Code examples that show you how to accomplish a specific task by calling multiple functions within the same service. * [Get started with DB clusters](getting_started_with_db_clusters.cpp) ## Run the examples ### Prerequisites Before using the code examples, first complete the installation and setup steps for [Getting started](https://docs.aws.amazon.com/sdk-for-cpp/v1/developer-guide/getting-started.html) in the AWS SDK for C++ Developer Guide. This section covers how to get and build the SDK, and how to build your own code by using the SDK with a sample Hello World-style application. Next, for information on code example structures and how to build and run the examples, see [Getting started with the AWS SDK for C++ code examples](https://docs.aws.amazon.com/sdk-for-cpp/v1/developer-guide/getting-started-code-examples.html). ### Instructions #### Get started with DB clusters This example shows you how to do the following: * Create a custom Aurora DB cluster parameter group and set parameter values. * Create a DB cluster that is configured to use the parameter group. * Create a DB instance in the DB cluster that contains a database. * Take a snapshot of the DB cluster. * Delete the instance, DB cluster, and parameter group. ### Tests ⚠ Running tests might result in charges to your AWS account. ```sh cd cmake -DBUILD_TESTS=ON make ctest ``` ## Additional resources * [Aurora User Guide](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/CHAP_AuroraOverview.html) * [Aurora API Reference](https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/Welcome.html) * [SDK for C++ Aurora reference](https://sdk.amazonaws.com/cpp/api/LATEST/aws-cpp-sdk-rds/html/annotated.html) --- Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0