Extend Redis and RabbitMQ instance parameters (#431)

* Extend RabbitMQ instance parameters (#409)

* Extend Schema

* initial parameter integration in resource

* datasource, resource and acceptance testing

* add docs, fix map fields edge case

* improve testing

* rename tls_protocols to singular

* revert renaming

* Extend Redis instance parameters (#410)

* Extend Schema

* initial parameter integration in resource

* datasource, resource and acceptance testing

* add docs, fix map fields edge case

* improve testing

* rename tls_protocols to singular

* revert renaming

* initial schema

* resource and datasource

* acceptance testing

* fix linting and testing, generate docs

* improve acceptance testing

---------

Co-authored-by: Diogo Ferrão <diogo.ferrao@freiheit.com>
This commit is contained in:
João Palet 2024-06-25 16:03:59 +01:00 committed by GitHub
parent 923764172d
commit 9f82c3262b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 1009 additions and 244 deletions

View file

@ -7,6 +7,7 @@ import (
"github.com/hashicorp/terraform-plugin-framework/datasource"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-log/tflog"
"github.com/stackitcloud/terraform-provider-stackit/stackit/internal/core"
"github.com/stackitcloud/terraform-provider-stackit/stackit/internal/validate"
@ -130,6 +131,71 @@ func (r *instanceDataSource) Schema(_ context.Context, _ datasource.SchemaReques
"sgw_acl": schema.StringAttribute{
Computed: true,
},
"down_after_milliseconds": schema.Int64Attribute{
Computed: true,
},
"enable_monitoring": schema.BoolAttribute{
Computed: true,
},
"failover_timeout": schema.Int64Attribute{
Computed: true,
},
"graphite": schema.StringAttribute{
Computed: true,
},
"lazyfree_lazy_eviction": schema.StringAttribute{
Computed: true,
},
"lazyfree_lazy_expire": schema.StringAttribute{
Computed: true,
},
"lua_time_limit": schema.Int64Attribute{
Computed: true,
},
"max_disk_threshold": schema.Int64Attribute{
Computed: true,
},
"maxclients": schema.Int64Attribute{
Computed: true,
},
"maxmemory_policy": schema.StringAttribute{
Computed: true,
},
"maxmemory_samples": schema.Int64Attribute{
Computed: true,
},
"metrics_frequency": schema.Int64Attribute{
Computed: true,
},
"metrics_prefix": schema.StringAttribute{
Computed: true,
},
"min_replicas_max_lag": schema.Int64Attribute{
Computed: true,
},
"monitoring_instance_id": schema.StringAttribute{
Computed: true,
},
"notify_keyspace_events": schema.StringAttribute{
Computed: true,
},
"snapshot": schema.StringAttribute{
Computed: true,
},
"syslog": schema.ListAttribute{
ElementType: types.StringType,
Computed: true,
},
"tls_ciphers": schema.ListAttribute{
ElementType: types.StringType,
Computed: true,
},
"tls_ciphersuites": schema.StringAttribute{
Computed: true,
},
"tls_protocols": schema.StringAttribute{
Computed: true,
},
},
Computed: true,
},