Astra is DataStax's Serverless Apache Cassandra as a service platform.
Obtain a client token from the Astra Dashboard.
Configure provider (provider.tf):
provider "astra" {
token = "your client token"
}
See examples of resources.tf
here
To run:
terraform plan
terraform apply
terraform show
When modifying plugin services, updates to documentation may be required. Once you have changed a service description, or added or deleted a service, you need to regenerate the docs and commit them with your changes.
The tool used to generate documentation is tfplugindocs. See the installation
section for installing the tool. Once installed, generate the docs by running tfplugindocs
from the root of the project:
tfplugindocs
The tool will build the plugin and generate the docs based on the implementation. Make sure to add the docs
folder to your commit to include any changes in the docs.