Viewing docs for Astra DB v1.0.42
published on Tuesday, Jun 6, 2023 by pulumiverse
published on Tuesday, Jun 6, 2023 by pulumiverse
Astra DB
I want to use the Pulumi Astra DB package (astra) in my project.
## Provider details
- Package: astra
- Version: v1.0.42
- Publisher: pulumiverse
- Source: pulumi
- Repository: https://github.com/pulumiverse/pulumi-astra
## Documentation
The Pulumi Cloud Registry API serves canonical, up-to-date docs for this package — including private packages and every published version. Send the "Accept: text/markdown" header for clean readable content, or "application/json" for structured data.
Start at the navigation tree, which cross-links to the readme, installation guide, and per-resource docs URL template:
- https://api.pulumi.com/api/registry/packages/pulumi/pulumiverse/astra/versions/latest/nav
Returns a summary by default. The full tree can be hundreds of kB for large providers, so prefer targeted search: append "?q=<query>&depth=full" to filter by resource/function title or token (for example "?q=bucket&depth=full"). Only request the full nav without a query if you actually need to enumerate every resource.
Other endpoints:
- Overview and getting started: https://api.pulumi.com/api/registry/packages/pulumi/pulumiverse/astra/versions/latest/readme
- Installation and configuration: https://api.pulumi.com/api/registry/packages/pulumi/pulumiverse/astra/versions/latest/installation
- Per-resource/function docs: https://api.pulumi.com/api/registry/packages/pulumi/pulumiverse/astra/versions/latest/docs/{token}?lang={lang}
Replace {token} with the percent-encoded token from the nav response (for example aws:s3/bucket:Bucket).
Replace {lang} with typescript, python, go, csharp, java, or yaml.
Fetch the installation endpoint above for the correct setup steps — install instructions vary between native providers, bridged Terraform providers, and component packages.
Help me get started using this provider. Show me a complete Pulumi program that provisions a common resource, including all necessary configuration and imports.
Viewing docs for Astra DB v1.0.42
published on Tuesday, Jun 6, 2023 by pulumiverse
published on Tuesday, Jun 6, 2023 by pulumiverse
The Astra DB provider for Pulumi can be used to provision any of the cloud resources available in Astra DB. The Astra DB provider must be configured with credentials to deploy and update resources in Astra DB.
Example
import * as astra from "@pulumiverse/astra";
const db = new astra.Database("example", {
cloudProvider: "azure",
keyspace: "default",
regions: ["westus2"],
name: "example-db"
});
import pulumiverse_astra as astra
db = astra.Database("example",
cloud_provider="azure",
keyspace="default",
regions=["westus2"],
name="example-db"
)
import (
"fmt"
astra "github.com/pulumiverse/pulumi-astra/sdk/go/astra"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
db, err := astra.NewDatabase(ctx, "example", &astra.DatabaseArgs{
CloudProvider: pulumi.String("azure"),
Keyspace: pulumi.String("default"),
Regions: pulumi.StringArray{
pulumi.String("westus2")
},
Name: pulumi.String("example-db"),
})
if err != nil {
return fmt.Errorf("error creating instance server: %v", err)
}
ctx.Export("dbId", db.Id)
return nil
})
}
using Pulumi;
using Pulumiverse.Astra;
class AstraDb : Stack
{
public AstraDb()
{
var db = new Database("example", new DatabaseArgs{
CloudProvider: "azure",
Keyspace: "default",
Regions: new[] {"westus2"},
Name: "example-db"
});
}
}
Viewing docs for Astra DB v1.0.42
published on Tuesday, Jun 6, 2023 by pulumiverse
published on Tuesday, Jun 6, 2023 by pulumiverse