diff --git a/README.md b/README.md index 805c623..4283c5d 100644 --- a/README.md +++ b/README.md @@ -5,20 +5,22 @@ Magicorn made Terraform Module for AWS Provider ``` module "elasticache" { source = "magicorntech/elasticache/aws" - version = "0.0.2" + version = "0.0.3" tenant = var.tenant name = var.name environment = var.environment vpc_id = var.vpc_id cidr_block = var.cidr_block subnet_ids = var.subnet_ids + encryption = true # 1 + kms_key_id = var.elasticache_key_id # ElastiCache Configuration + cache_name = "master" multi_az = false replica_count = 1 - instance_type = "cache.t4g.small" + instance_type = "cache.t4g.micro" port = 6379 - encryption = true auto_minor_version_upgrade = false engine_version = "7.0" parameter_group = "default.redis7" @@ -26,4 +28,7 @@ module "elasticache" { snapshot_window = "04:00-05:00" snapshot_retention_limit = 3 } -``` \ No newline at end of file +``` + +## Notes +1) Works better with magicorn-aws-kms module. \ No newline at end of file diff --git a/kms.tf b/kms.tf deleted file mode 100644 index a65f04d..0000000 --- a/kms.tf +++ /dev/null @@ -1,70 +0,0 @@ -resource "aws_kms_key" "main" { - count = (var.encryption == true) ? 1 : 0 - description = "${var.tenant}-${var.name}-elasticache-kms-${var.environment}" - key_usage = "ENCRYPT_DECRYPT" - deletion_window_in_days = 7 - enable_key_rotation = true - multi_region = false - is_enabled = true - - policy = <