Slide 6
Slide 6 text
@riferrei
resource "aws_elasticache_replication_group" "cache_server" {
replication_group_id = "${var.global_prefix}-cache-server"
replication_group_description = "Cache server for the APIs"
subnet_group_name = aws_elasticache_subnet_group.cache_server.name
availability_zones = data.aws_availability_zones.available.names
number_cache_clusters =
length(data.aws_availability_zones.available.names)
security_group_ids = [aws_security_group.cache_server.id]
automatic_failover_enabled = true
node_type = "cache.m4.large"
parameter_group_name = "default.redis5.0"
port = 6379
}
{
"mode": "managed",
"type": "aws_elasticache_replication_group ",
"name": "cache_server",
"provider": "provider.aws",
"instances": [
{
"schema_version": 1,
"attributes": {
"arn": "arn:aws:ec2:us-east-1:523:security-group/sg-03e276aa9",
"description": "Cache server for the APIs",
"egress": [
{
"cidr_blocks": [
"0.0.0.0/0"
],
"description": "",
"from_port": 0,
"ipv6_cidr_blocks": [],
Estado
Terraform