Skip to content

Commit

Permalink
feat: feature snapshot identifier argument and did minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
nileshgadgi committed Feb 26, 2024
1 parent 78ef6ce commit 4606e84
Show file tree
Hide file tree
Showing 7 changed files with 137 additions and 282 deletions.
51 changes: 6 additions & 45 deletions .github/workflows/readme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,51 +3,12 @@ on:
push:
branches:
- master
paths-ignore:
- 'README.md'

jobs:
readme-create:
name: 'readme-create'
runs-on: ubuntu-latest
steps:
- name: 'Checkout'
uses: actions/checkout@master

- name: 'Set up Python 3.7'
uses: actions/setup-python@v5
with:
python-version: '3.x'

- name: 'create readme'
uses: 'clouddrove/[email protected]'
with:
actions_subcommand: 'readme'
github_token: '${{ secrets.GITHUB }}'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: 'pre-commit check errors'
uses: pre-commit/[email protected]
continue-on-error: true

- name: 'pre-commit fix erros'
uses: pre-commit/[email protected]
continue-on-error: true

- name: 'push readme'
uses: 'clouddrove/[email protected]'
continue-on-error: true
with:
actions_subcommand: 'push'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: 'Slack Notification'
uses: clouddrove/action-slack@v2
with:
status: ${{ job.status }}
fields: repo,author
author_name: 'CloudDrove'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # required
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_TERRAFORM }} # required
if: always()
uses: clouddrove/github-shared-workflows/.github/workflows/[email protected]
secrets:
TOKEN: ${{ secrets.GITHUB }}
SLACK_WEBHOOK_TERRAFORM: ${{ secrets.SLACK_WEBHOOK_TERRAFORM }}
35 changes: 21 additions & 14 deletions _example/memcached/example.tf
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,21 @@ module "memcached" {

cluster_enabled = true
memcached_ssm_parameter_endpoint_enabled = true
memcached_route53_record_enabled = true
engine = "memcached"
engine_version = "1.6.17"
parameter_group_name = ""
az_mode = "cross-az"
port = 11211
node_type = "cache.t2.micro"
num_cache_nodes = 2
subnet_ids = module.subnets.public_subnet_id
availability_zones = ["eu-west-1a", "eu-west-1b"]
memcached_route53_record_enabled = false

replication_group = {
engine = "memcached"
engine_version = "1.6.17"
parameter_group_name = ""
port = 11211
node_type = "cache.t2.micro"
parameter_group_name = ""
}

az_mode = "cross-az"
num_cache_nodes = 2
subnet_ids = module.subnets.public_subnet_id
availability_zones = ["eu-west-1a", "eu-west-1b"]
extra_tags = {
Application = "CloudDrove"
}
Expand All @@ -74,8 +79,10 @@ module "memcached" {
####----------------------------------------------------------------------------------
route53_record_enabled = false
ssm_parameter_endpoint_enabled = false
dns_record_name = "prod"
route53_ttl = "300"
route53_type = "CNAME"
route53_zone_id = "SERFxxxx6XCsY9Lxxxxx"
route53 = {
dns_record_name = "prod"
route53_ttl = "300"
route53_type = "CNAME"
route53_zone_id = "SERFxxxx6XCsY9Lxxxxx" # Change Zone ID with Route53 Zone ID from looking at AWS Console
}
}
34 changes: 20 additions & 14 deletions _example/redis-cluster/example.tf
Original file line number Diff line number Diff line change
Expand Up @@ -57,16 +57,20 @@ module "redis-cluster" {
allowed_ports = [6379]

cluster_replication_enabled = true
engine = "redis"
engine_version = "7.0"
parameter_group_name = "default.redis7.cluster.on"
port = 6379
node_type = "cache.t2.micro"
subnet_ids = module.subnets.public_subnet_id
availability_zones = ["eu-west-1a", "eu-west-1b"]
num_cache_nodes = 1
snapshot_retention_limit = 7
automatic_failover_enabled = true

replication_group = {
engine = "redis"
engine_version = "7.0"
parameter_group_name = "default.redis7.cluster.on"
port = 6379
node_type = "cache.t2.micro"
snapshot_retention_limit = 7
automatic_failover_enabled = true
}

subnet_ids = module.subnets.public_subnet_id
availability_zones = ["eu-west-1a", "eu-west-1b"]
num_cache_nodes = 1
extra_tags = {
Application = "CloudDrove"
}
Expand All @@ -76,8 +80,10 @@ module "redis-cluster" {
###----------------------------------------------------------------------------------
route53_record_enabled = false
ssm_parameter_endpoint_enabled = false
dns_record_name = "prod"
route53_ttl = "300"
route53_type = "CNAME"
route53_zone_id = "SERFxxxx6XCsY9Lxxxxx"
route53 = {
dns_record_name = "prod"
route53_ttl = "300"
route53_type = "CNAME"
route53_zone_id = "SERFxxxx6XCsY9Lxxxxx"
}
}
38 changes: 21 additions & 17 deletions _example/redis/example.tf
Original file line number Diff line number Diff line change
Expand Up @@ -58,18 +58,20 @@ module "redis" {
allowed_ports = [6379]

cluster_replication_enabled = true
engine = "redis"
engine_version = "7.0"
parameter_group_name = "default.redis7"
port = 6379
node_type = "cache.t2.micro"
subnet_ids = module.subnets.public_subnet_id
availability_zones = [""]
automatic_failover_enabled = false
multi_az_enabled = false
num_cache_clusters = 1
retention_in_days = 0
snapshot_retention_limit = 7

replication_group = {
engine = "redis"
engine_version = "7.0"
parameter_group_name = "default.redis7"
port = 6379
node_type = "cache.t2.micro"
automatic_failover_enabled = false
num_cache_clusters = 1
}

subnet_ids = module.subnets.public_subnet_id
availability_zones = [""]
retention_in_days = 0

log_delivery_configuration = [
{
Expand All @@ -90,10 +92,12 @@ module "redis" {
####----------------------------------------------------------------------------------
## will create ROUTE-53 for redis which will add the dns of the cluster.
####----------------------------------------------------------------------------------
route53_record_enabled = true
route53_record_enabled = false
ssm_parameter_endpoint_enabled = true
dns_record_name = "prod"
route53_ttl = "300"
route53_type = "CNAME"
route53_zone_id = "Z017xxxxDLxxx0GH04"
route53 = {
dns_record_name = "prod"
route53_ttl = "300"
route53_type = "CNAME"
route53_zone_id = "Z017xxxxDLxxx0GH04"
}
}
Loading

0 comments on commit 4606e84

Please sign in to comment.