Skip to content

Commit

Permalink
docs(cassandra): add EOL notice to Cassandra resources
Browse files Browse the repository at this point in the history
  • Loading branch information
staceysalamon-aiven committed Feb 12, 2025
1 parent f0017ae commit 92df928
Show file tree
Hide file tree
Showing 6 changed files with 84 additions and 20 deletions.
16 changes: 9 additions & 7 deletions docs/resources/cassandra.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "aiven_cassandra Resource - terraform-provider-aiven"
subcategory: ""
description: |-
Creates and manages an Aiven for Apache Cassandra® https://aiven.io/docs/products/cassandra service.
---

# aiven_cassandra (Resource)

Creates and manages an [Aiven for Apache Cassandra®](https://aiven.io/docs/products/cassandra) service.

## Example Usage

~> **End of life notice**
Aiven for Apache Cassandra® is entering its [end-of-life cycle](https://aiven.io/docs/platform/reference/end-of-life).
From **November 30, 2025**, it will not be possible to start a new Cassandra service, but existing services will continue to operate until end of life.
From **December 31, 2025**, all active Aiven for Apache Cassandra services are powered off and deleted, making data from these services inaccessible.
To ensure uninterrupted service, complete your migration out of Aiven for Apache Cassandra
before December 31, 2025. For further assistance, contact your account team.


## Example Usage
```terraform
resource "aiven_cassandra" "example_cassandra" {
project = data.aiven_project.example_project.project
Expand All @@ -30,7 +36,6 @@ resource "aiven_cassandra" "example_cassandra" {
}
}
```

<!-- schema generated by tfplugindocs -->
## Schema

Expand Down Expand Up @@ -195,11 +200,8 @@ Read-Only:
- `route` (String)
- `ssl` (Boolean)
- `usage` (String)

## Import

Import is supported using the following syntax:

```shell
terraform import aiven_cassandra.example_cassandra PROJECT/SERVICE_NAME
```
16 changes: 9 additions & 7 deletions docs/resources/cassandra_user.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "aiven_cassandra_user Resource - terraform-provider-aiven"
subcategory: ""
description: |-
Creates and manages an Aiven for Apache Cassandra® service user.
---

# aiven_cassandra_user (Resource)

Creates and manages an Aiven for Apache Cassandra® service user.

## Example Usage

~> **End of life notice**
Aiven for Apache Cassandra® is entering its [end-of-life cycle](https://aiven.io/docs/platform/reference/end-of-life).
From **November 30, 2025**, it will not be possible to start a new Cassandra service, but existing services will continue to operate until end of life.
From **December 31, 2025**, all active Aiven for Apache Cassandra services are powered off and deleted, making data from these services inaccessible.
To ensure uninterrupted service, complete your migration out of Aiven for Apache Cassandra
before December 31, 2025. For further assistance, contact your account team.


## Example Usage
```terraform
resource "aiven_cassandra_user" "example_service_user" {
service_name = aiven_cassandra.example_cassandra.service_name
Expand All @@ -20,7 +26,6 @@ resource "aiven_cassandra_user" "example_service_user" {
password = var.service_user_pw
}
```

<!-- schema generated by tfplugindocs -->
## Schema

Expand Down Expand Up @@ -52,11 +57,8 @@ Optional:
- `delete` (String)
- `read` (String)
- `update` (String)

## Import

Import is supported using the following syntax:

```shell
terraform import aiven_cassandra_user.example_service_user PROJECT/SERVICE_NAME/USERNAME
```
13 changes: 7 additions & 6 deletions internal/sdkprovider/service/cassandra/cassandra.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,13 @@ func cassandraSchema() map[string]*schema.Schema {

func ResourceCassandra() *schema.Resource {
return &schema.Resource{
Description: "Creates and manages an [Aiven for Apache Cassandra®](https://aiven.io/docs/products/cassandra) service.",
CreateContext: schemautil.ResourceServiceCreateWrapper(schemautil.ServiceTypeCassandra),
ReadContext: schemautil.ResourceServiceRead,
UpdateContext: schemautil.ResourceServiceUpdate,
DeleteContext: schemautil.ResourceServiceDelete,
CustomizeDiff: schemautil.CustomizeDiffGenericService(schemautil.ServiceTypeCassandra),
Description: "Creates and manages an [Aiven for Apache Cassandra®](https://aiven.io/docs/products/cassandra) service.",
DeprecationMessage: "Aiven for Apache Cassandra® is approaching its end of life on the Aiven Platform. After 31 December 2025, all active Cassandra services will be powered off and deleted, making data from these services inaccessible.",
CreateContext: schemautil.ResourceServiceCreateWrapper(schemautil.ServiceTypeCassandra),
ReadContext: schemautil.ResourceServiceRead,
UpdateContext: schemautil.ResourceServiceUpdate,
DeleteContext: schemautil.ResourceServiceDelete,
CustomizeDiff: schemautil.CustomizeDiffGenericService(schemautil.ServiceTypeCassandra),
Importer: &schema.ResourceImporter{
StateContext: schema.ImportStatePassthroughContext,
},
Expand Down
1 change: 1 addition & 0 deletions internal/sdkprovider/service/cassandra/cassandra_user.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ var aivenCassandraUserSchema = map[string]*schema.Schema{
func ResourceCassandraUser() *schema.Resource {
return &schema.Resource{
Description: "Creates and manages an Aiven for Apache Cassandra® service user.",

Check failure on line 52 in internal/sdkprovider/service/cassandra/cassandra_user.go

View workflow job for this annotation

GitHub Actions / make_lint

File is not properly formatted (gofmt)
DeprecationMessage: "Aiven for Apache Cassandra® is approaching its end of life on the Aiven Platform. After 31 December 2025, all active Cassandra services will be powered off and deleted, making data from these services inaccessible.",
CreateContext: schemautil.ResourceServiceUserCreate,
UpdateContext: schemautil.ResourceServiceUserUpdate,
ReadContext: schemautil.ResourceServiceUserRead,
Expand Down
29 changes: 29 additions & 0 deletions templates/resources/cassandra.md.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
page_title: "{{.Name}} {{.Type}} - {{.ProviderName}}"
subcategory: ""
description: |-
{{ .Description | plainmarkdown | trimspace | prefixlines " " }}
---
# {{.Name}} ({{.Type}})

{{ .Description | trimspace }}


~> **End of life notice**
Aiven for Apache Cassandra® is entering its [end-of-life cycle](https://aiven.io/docs/platform/reference/end-of-life).
From **November 30, 2025**, it will not be possible to start a new Cassandra service, but existing services will continue to operate until end of life.
From **December 31, 2025**, all active Aiven for Apache Cassandra services are powered off and deleted, making data from these services inaccessible.
To ensure uninterrupted service, complete your migration out of Aiven for Apache Cassandra
before December 31, 2025. For further assistance, contact your account team.


{{ if .HasExample -}}
## Example Usage
{{ tffile .ExampleFile }}
{{- end }}
{{ .SchemaMarkdown | trimspace }}
{{ if .HasImport -}}
## Import
Import is supported using the following syntax:
{{ codefile "shell" .ImportFile }}
{{- end }}
29 changes: 29 additions & 0 deletions templates/resources/cassandra_user.md.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
page_title: "{{.Name}} {{.Type}} - {{.ProviderName}}"
subcategory: ""
description: |-
{{ .Description | plainmarkdown | trimspace | prefixlines " " }}
---
# {{.Name}} ({{.Type}})

{{ .Description | trimspace }}


~> **End of life notice**
Aiven for Apache Cassandra® is entering its [end-of-life cycle](https://aiven.io/docs/platform/reference/end-of-life).
From **November 30, 2025**, it will not be possible to start a new Cassandra service, but existing services will continue to operate until end of life.
From **December 31, 2025**, all active Aiven for Apache Cassandra services are powered off and deleted, making data from these services inaccessible.
To ensure uninterrupted service, complete your migration out of Aiven for Apache Cassandra
before December 31, 2025. For further assistance, contact your account team.


{{ if .HasExample -}}
## Example Usage
{{ tffile .ExampleFile }}
{{- end }}
{{ .SchemaMarkdown | trimspace }}
{{ if .HasImport -}}
## Import
Import is supported using the following syntax:
{{ codefile "shell" .ImportFile }}
{{- end }}

0 comments on commit 92df928

Please sign in to comment.