Skip to content

use terraform letast version #35

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 31 commits into from
May 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
a24659d
use terraform letast version
anmolnagpal Feb 22, 2023
4deff9a
use terraform letast version
anmolnagpal Feb 22, 2023
58a3277
use terraform letast version
anmolnagpal Feb 22, 2023
bff3733
use terraform letast version
anmolnagpal Feb 22, 2023
aee3178
use terraform letast version
anmolnagpal Feb 22, 2023
e6485f0
use terraform letast version
anmolnagpal Feb 22, 2023
c85b326
use terraform letast version
anmolnagpal Feb 22, 2023
4e567ba
use terraform letast version
anmolnagpal Feb 22, 2023
d8e2b1e
use terraform letast version
anmolnagpal Feb 22, 2023
b1dd81e
use terraform letast version
anmolnagpal Feb 22, 2023
5e6931c
use terraform letast version
anmolnagpal Feb 23, 2023
a3dce28
use terraform letast version
anmolnagpal Feb 23, 2023
9404358
use terraform letast version
anmolnagpal Feb 23, 2023
d64dbc6
use terraform letast version
anmolnagpal Feb 23, 2023
586a808
use terraform letast version
anmolnagpal Feb 23, 2023
304dd4a
use terraform letast version
anmolnagpal Feb 23, 2023
c005e63
use terraform letast version
anmolnagpal Feb 23, 2023
f800dbb
use terraform letast version
anmolnagpal May 4, 2023
3faafd3
Merge branch 'master' into cd-341
theprashantyadav May 4, 2023
9f265f1
use terraform letast version
anmolnagpal May 4, 2023
f7d7e10
use terraform letast version
anmolnagpal May 4, 2023
864c083
use terraform letast version
anmolnagpal May 4, 2023
e350d4d
use terraform letast version
anmolnagpal May 4, 2023
60a03bc
use terraform letast version
anmolnagpal May 4, 2023
86c623c
use terraform letast version
anmolnagpal May 4, 2023
30cbb8b
use terraform letast version
anmolnagpal May 4, 2023
b123a4e
use terraform letast version
anmolnagpal May 4, 2023
4d5485f
fix github action
anmolnagpal May 9, 2023
eb8b519
fix github action
anmolnagpal May 9, 2023
79dcc69
Merge branch 'master' into cd-341
theprashantyadav May 9, 2023
749a96f
fix github action
anmolnagpal May 9, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/readme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 'Checkout'
uses: actions/checkout@v2.3.4
uses: actions/checkout@master

- name: "Set up Python 3.7"
- name: 'Set up Python 3.7'
uses: actions/setup-python@v2
with:
python-version: '3.x'
Expand All @@ -26,11 +26,11 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN}}


- name: "pre-commit check errors"
- name: 'pre-commit check errors'
uses: pre-commit/action@v2.0.0
continue-on-error: true

- name: "pre-commit fix errors"
- name: 'pre-commit fix erros'
uses: pre-commit/action@v2.0.0
continue-on-error: true

Expand All @@ -51,4 +51,4 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # required
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_TERRAFORM }} # required
if: always()
if: always()
4 changes: 2 additions & 2 deletions .github/workflows/terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ jobs:
- ${{ needs.versionExtract.outputs.maxVersion }}
directory:
- _example/memcached
- _example/redis
- _example/redis-cluster
- _example/redis

steps:
- name: Checkout
Expand Down Expand Up @@ -83,4 +83,4 @@ jobs:
terraform_version: ${{ needs.versionExtract.outputs.maxVersion }}

- name: Check Terraform format changes
run: terraform fmt --recursive
run: terraform fmt --recursive
28 changes: 8 additions & 20 deletions .github/workflows/terratest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,39 +6,27 @@ on:
types: [labeled]

jobs:
terraform:
name: 'Terraform'
Terratest:
name: 'terratest'
runs-on: ubuntu-latest
steps:

- name: 'Checkout'
uses: actions/checkout@master
uses: actions/checkout@v2.3.4

- name: Configure AWS Credentials
- name: 'Configure AWS Credentials'
uses: clouddrove/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.TEST_AWS_ACCESS_KEY }}
aws-secret-access-key: ${{ secrets.TEST_AWS_ACCESS_SECRET_KEY }}
aws-region: us-east-2


- name: 'Terratest for redis'
if: ${{ github.event.label.name == 'terratest' }}
- name: 'terratest'
uses: 'clouddrove/github-actions@v9.0.2'
with:
actions_subcommand: 'terratest'
tf_actions_working_dir: '_test/redis'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: 'Terratest for redis-cluster'
if: ${{ github.event.label.name == 'terratest' }}
uses: 'clouddrove/github-actions@v9.0.2'
with:
actions_subcommand: 'terratest'
tf_actions_working_dir: '_test/redis-cluster'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: ${{ github.event.label.name == 'terratest' }}
tf_actions_working_dir: '_test'

- name: 'Slack Notification'
uses: clouddrove/action-slack@v2
Expand All @@ -49,4 +37,4 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # required
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_TERRAFORM }} # required
if: always()
if: always()
6 changes: 3 additions & 3 deletions README.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ usage : |-
```hcl
module "redis" {
source = "clouddrove/elasticache/aws
version = "1.0.1"
version = "1.3.0"
name = "redis"
environment = "test"
label_order = ["environment", "name"]
Expand All @@ -66,7 +66,7 @@ usage : |-
```hcl
module "redis-cluster" {
source = "clouddrove/elasticache/aws
version = "1.0.1"
version = "1.3.0"
name = "cluster"
environment = "test"
label_order = ["environment","name"]
Expand All @@ -89,7 +89,7 @@ usage : |-
```hcl
module "memcached" {
source = "clouddrove/elasticache/aws
version = "1.0.1"
version = "1.3.0"
name = "memcached"
environment = "test"
label_order = ["environment", "name"]
Expand Down
2 changes: 1 addition & 1 deletion _example/memcached/example.tf
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,4 @@ module "memcached" {
extra_tags = {
Application = "CloudDrove"
}
}
}
6 changes: 3 additions & 3 deletions _example/memcached/versions.tf
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Terraform version
terraform {
required_version = ">= 0.14.11"
required_version = ">= 1.3.6"

required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 3.1.15"
version = ">= 4.48.0"
}
}
}
}
6 changes: 3 additions & 3 deletions _example/redis-cluster/versions.tf
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Terraform version
terraform {
required_version = ">= 0.14.11"
required_version = ">= 1.3.6"

required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 3.1.15"
version = ">= 4.48.0"
}
}
}
}
6 changes: 3 additions & 3 deletions _example/redis/versions.tf
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Terraform version
terraform {
required_version = ">= 0.14.11"
required_version = ">= 1.3.6"

required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 3.1.15"
version = ">= 4.48.0"
}
}
}
}
1 change: 0 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -145,4 +145,3 @@ resource "aws_elasticache_cluster" "default" {
tags = module.labels.tags

}

2 changes: 2 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -252,4 +252,6 @@ variable "multi_az_enabled" {
type = bool
default = false
description = "Specifies whether to enable Multi-AZ Support for the replication group. If true, automatic_failover_enabled must also be enabled. Defaults to false."

}