second first commit

This commit is contained in:
Zakaria
2026-09-22 08:57:00 -04:00
parent e88d7e2ff3
commit 0aef7fb2d8
4766 changed files with 1236986 additions and 0 deletions
@@ -0,0 +1,26 @@
resource "aws_elasticache_replication_group" "cluster" {
replication_group_id = "floci-tf-valkey-cluster"
description = "floci terraform cluster-mode compatibility test"
engine = "valkey"
node_type = "cache.t4g.micro"
parameter_group_name = "default.valkey8.cluster.on"
automatic_failover_enabled = true
num_node_groups = 2
replicas_per_node_group = 1
}
output "cluster_enabled" {
value = aws_elasticache_replication_group.cluster.cluster_enabled
}
output "configuration_endpoint_address" {
value = aws_elasticache_replication_group.cluster.configuration_endpoint_address
}
output "num_node_groups" {
value = aws_elasticache_replication_group.cluster.num_node_groups
}
output "member_clusters" {
value = aws_elasticache_replication_group.cluster.member_clusters
}
@@ -0,0 +1,28 @@
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 6.0"
}
}
}
variable "endpoint" {
type = string
default = "http://localhost:4566"
}
provider "aws" {
region = "us-east-1"
access_key = "test"
secret_key = "test"
skip_credentials_validation = true
skip_metadata_api_check = true
skip_requesting_account_id = true
s3_use_path_style = true
endpoints {
elasticache = var.endpoint
}
}