

# Create Amazon Keyspaces resources with Amazon CloudFormation
<a name="creating-resources-with-cloudformation"></a>

Amazon Keyspaces is integrated with Amazon CloudFormation, a service that helps you model and set up your Amazon keyspaces and tables so that you can spend less time creating and managing your resources and infrastructure. You create a template that describes the keyspaces and tables that you want, and Amazon CloudFormation takes care of provisioning and configuring those resources for you. 

When you use Amazon CloudFormation, you can reuse your template to set up your Amazon Keyspaces resources consistently and repeatedly. Just describe your resources once, and then provision the same resources over and over in multiple Amazon Web Services accounts and Regions. 

## Amazon Keyspaces and Amazon CloudFormation templates
<a name="working-with-templates"></a>

To provision and configure resources for Amazon Keyspaces, you must understand [Amazon CloudFormation templates](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/template-guide.html). Templates are formatted text files in JSON or YAML. These templates describe the resources that you want to provision in your Amazon CloudFormation stacks. If you're unfamiliar with JSON or YAML, you can use Amazon CloudFormation Designer to help you get started with Amazon CloudFormation templates. For more information, see [What is Amazon CloudFormation designer?](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/working-with-templates-cfn-designer.html) in the *Amazon CloudFormation User Guide*.

Amazon Keyspaces supports creating keyspaces and tables in Amazon CloudFormation. For the tables you create using Amazon CloudFormation templates, you can specify the schema, read/write mode, provisioned throughput settings, and other supported features. For more information, including examples of JSON and YAML templates for keyspaces and tables, see [Amazon Keyspaces (for Apache Cassandra) resource type reference](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/AWS_Cassandra.html) in the *Amazon CloudFormation Template Reference*.

## Learn more about Amazon CloudFormation
<a name="learn-more-cloudformation"></a>

To learn more about Amazon CloudFormation, see the following resources:
+ [Amazon CloudFormation](https://www.amazonaws.cn/cloudformation/)
+ [Amazon CloudFormation User Guide](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/Welcome.html)
+ [Amazon CloudFormation command line interface User Guide](https://docs.amazonaws.cn/cloudformation-cli/latest/userguide/what-is-cloudformation-cli.html)