Skip to content

michelia-io/terraform-alicloud-kvstore-redis

 
 

Repository files navigation

Alibaba Cloud Redis Template

Terraform module which deploys KvStore Redis on Alibaba Cloud.

  • Support standalone(standard read-write instance) and replication(one read-write instance and multiple read-only instances, for read write splitting).

Usage

module "example" {
  source = "..."

  infrastructure = {
    vpc_id        = "..."
    domain_suffix = "..."
  }

  architecture   = "standalone"
  engine_version = "5.0"
}

Examples

Contributing

Please read our contributing guide if you're interested in contributing to Walrus template.

Requirements

Name Version
terraform >= 1.0
alicloud >= 1.140.0
random >= 3.5.1

Providers

Name Version
alicloud >= 1.140.0
random >= 3.5.1

Modules

No modules.

Resources

Name Type
alicloud_kvstore_connection.default resource
alicloud_kvstore_instance.default resource
alicloud_pvtz_zone_record.default resource
random_password.password resource
random_string.name_suffix resource
alicloud_kvstore_instance_classes.selected data source
alicloud_pvtz_zones.selected data source
alicloud_vpcs.selected data source
alicloud_vswitches.selected data source
alicloud_zones.selected data source

Inputs

Name Description Type Default Required
architecture Specify the deployment architecture, select from standalone or replication. string "standalone" no
context Receive contextual information. When Walrus deploys, Walrus will inject specific contextual information into this field.

Examples:
context:
project:
name: string
id: string
environment:
name: string
id: string
resource:
name: string
id: string
map(any) {} no
engine_version Specify the deployment engine version. string "5.0" no
infrastructure Specify the infrastructure information for deploying.

Examples:
infrastructure:
vpc_id: string # the ID of the VPC where the Redis service applies
domain_suffix: string, optional # a private DNS namespace of the PrivateZone where to register the applied Redis service
publicly_accessible: bool, optional # whether the Redis service is publicly accessible
object({
vpc_id = string
domain_suffix = optional(string)
publicly_accessible = optional(bool, false)
})
n/a yes
password Specify the account password. The password must be 16-32 characters long and start with any letter, number, or the following symbols: ! # $ % ^ & * ( ) _ + - =.
If not specified, it will generate a random password.
string null no
replication_readonly_replicas Specify the number of read-only replicas under the replication deployment. number 1 no

Outputs

Name Description
address The address, a string only has host, might be a comma separated string or a single string.
address_readonly The readonly address, a string only has host, might be a comma separated string or a single string.
connection The connection, a string combined host and port, might be a comma separated string or a single string.
connection_readonly The readonly connection, a string combined host and port, might be a comma separated string or a single string.
context The input context, a map, which is used for orchestration.
password The password of the account to access the service.
port The port of the service.
refer The refer, a map, including hosts, ports and account, which is used for dependencies or collaborations.

License

Copyright (c) 2023 Seal, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at LICENSE file for details.

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

About

Apply KVStore Redis service from Alibaba Cloud.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 70.2%
  • HCL 25.7%
  • Makefile 4.1%