Simple Elasticache

Terraform scripts to create a simple AWS Elasticache using the module elasticache.

To create a simple AWS Elasticache:

terraform init
terraform plan
terraform apply

To delete all resource:

terraform destroy

Requirements

Name

Version

terraform

>= 1.0

aws

>= 5.61

external

~> 2.3.1

null

>= 3.2.1

Providers

Name

Version

aws

>= 5.61

external

~> 2.3.1

null

>= 3.2.1

Modules

Name

Source

Version

elasticache

../../../elasticache

n/a

Resources

Name

Type

null_resource.timestamp

resource

aws_caller_identity.current

data source

aws_subnets.subnets

data source

aws_vpc.default

data source

external_external.static_timestamp

data source

Inputs

Name

Description

Type

Default

Required

aws_profile

Profile of AWS credentials to deploy Terraform sources

string

"default"

no

aws_region

AWS region where the infrastructure will be deployed

string

"eu-west-3"

no

Outputs

Name

Description

endpoint_host

AWS Elastichache (Redis) endpoint host

endpoint_port

AWS Elastichache (Redis) endpoint port

endpoint_url

AWS Elastichache (Redis) endpoint url

kms_key_id

ARN of KMS used for Elasticache

name

Name of Elasticache cluster