Skip to content

Commit

Permalink
version update in modules
Browse files Browse the repository at this point in the history
  • Loading branch information
yadavprakash committed Jun 16, 2021
1 parent 5539ee7 commit c6594c8
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 17 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,17 @@ jobs:
actions_subcommand: 'validate'
tf_actions_working_dir: ./_example/basic_example

- 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()

plan:
name: 'terraform plan'
runs-on: ubuntu-latest
Expand Down
15 changes: 7 additions & 8 deletions _example/basic_example/example.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ provider "aws" {

module "vpc" {
source = "clouddrove/vpc/aws"
version = "0.14.0"
version = "0.15.0"

name = "vpc"
repository = "https://registry.terraform.io/modules/clouddrove/vpc/aws/0.14.0"
Expand All @@ -15,9 +15,8 @@ module "vpc" {
}

module "public_subnets" {
# source = "clouddrove/subnet/aws"
# version = "0.14.0"
source = "git::https://github.com/clouddrove/terraform-aws-subnet.git?ref=0.15"
source = "clouddrove/subnet/aws"
version = "0.15.0"

name = "public-subnet"
repository = "https://registry.terraform.io/modules/clouddrove/subnet/aws/0.14.0"
Expand All @@ -34,7 +33,7 @@ module "public_subnets" {

module "http-https" {
source = "clouddrove/security-group/aws"
version = "0.14.0"
version = "0.15.0"
name = "http-https"
repository = "https://registry.terraform.io/modules/security-group/ec2/aws/0.14.0"
environment = "test"
Expand All @@ -47,7 +46,7 @@ module "http-https" {

module "ssh" {
source = "clouddrove/security-group/aws"
version = "0.14.0"
version = "0.15.0"
name = "ssh"
repository = "https://registry.terraform.io/modules/clouddrove/security-group/aws/0.14.0"
environment = "test"
Expand All @@ -60,7 +59,7 @@ module "ssh" {

module "iam-role" {
source = "clouddrove/iam-role/aws"
version = "0.14.0"
version = "0.15.0"

name = "iam-role"
repository = "https://registry.terraform.io/modules/clouddrove/iam-role/aws/0.14.0"
Expand All @@ -74,7 +73,7 @@ module "iam-role" {

module "kms_key" {
source = "clouddrove/kms/aws"
version = "0.14.0"
version = "0.15.0"
name = "kms"
environment = "test"
label_order = ["environment", "name"]
Expand Down
13 changes: 6 additions & 7 deletions _example/secure_example/example.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ provider "aws" {

module "vpc" {
source = "clouddrove/vpc/aws"
version = "0.14.0"
version = "0.15.0"

name = "vpc"
environment = "test"
Expand All @@ -14,9 +14,8 @@ module "vpc" {
}

module "public_subnets" {
# source = "clouddrove/subnet/aws"
# version = "0.14.0"
source = "git::https://github.com/clouddrove/terraform-aws-subnet.git?ref=0.15"
source = "clouddrove/subnet/aws"
version = "0.15.0"


name = "public-subnet"
Expand All @@ -34,7 +33,7 @@ module "public_subnets" {

module "http-https" {
source = "clouddrove/security-group/aws"
version = "0.14.0"
version = "0.15.0"

name = "http-https"
environment = "test"
Expand All @@ -47,7 +46,7 @@ module "http-https" {

module "ssh" {
source = "clouddrove/security-group/aws"
version = "0.14.0"
version = "0.15.0"

name = "ssh"
environment = "test"
Expand Down Expand Up @@ -108,7 +107,7 @@ data "aws_iam_policy_document" "iam-policy" {

module "kms_key" {
source = "clouddrove/kms/aws"
version = "0.14.0"
version = "0.15.0"
name = "kms"
environment = "test"
label_order = ["environment", "name"]
Expand Down
5 changes: 3 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@
# tags for resources. You can use terraform-labels to implement a strict
# naming convention.
module "labels" {
source = "git::https://github.com/clouddrove/terraform-labels.git?ref=0.15"
source = "clouddrove/labels/aws"
version = "0.15.0"

name = var.name
repository = var.repository
environment = var.environment
label_order = var.label_order
managedby = var.managedby
label_order = var.label_order
}

locals {
Expand Down

0 comments on commit c6594c8

Please sign in to comment.