Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
6 changes: 3 additions & 3 deletions .github/workflows/terraform-apply-eks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ on:
workflow_call:

env:
TF_CLOUD_ORGANIZATION: "DSB"
TF_CLOUD_ORGANIZATION: "farouk"
TF_API_TOKEN: "${{ secrets.TF_API_TOKEN }}"
TF_WORKSPACE: "aws-devsecops-eks-cluster"
TF_WORKSPACE: "dsb-aws-devsecops-eks-cluster"
CONFIG_DIRECTORY: "./terraform/eks-cluster"

jobs:
Expand Down Expand Up @@ -39,4 +39,4 @@ jobs:
id: apply
with:
run: ${{ steps.apply-run.outputs.run_id }}
comment: "Apply Run from GitHub Actions CI ${{ github.sha }}"
comment: "Apply Run from GitHub Actions CI ${{ github.sha }}"
6 changes: 3 additions & 3 deletions .github/workflows/terraform-apply-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ on:
workflow_call:

env:
TF_CLOUD_ORGANIZATION: "DSB"
TF_CLOUD_ORGANIZATION: "farouk"
TF_API_TOKEN: "${{ secrets.TF_API_TOKEN }}"
TF_WORKSPACE: "aws-devsecops-pipelines"
TF_WORKSPACE: "dsb-aws-devsecops-pipelines"
CONFIG_DIRECTORY: "./terraform/pipelines"

jobs:
Expand Down Expand Up @@ -39,4 +39,4 @@ jobs:
id: apply
with:
run: ${{ steps.apply-run.outputs.run_id }}
comment: "Apply Run from GitHub Actions CI ${{ github.sha }}"
comment: "Apply Run from GitHub Actions CI ${{ github.sha }}"
3 changes: 1 addition & 2 deletions terraform/eks-cluster/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ resource "aws_default_subnet" "default_subnet_a" {
resource "aws_default_subnet" "default_subnet_b" {
availability_zone = "${var.region}b"
}

# EKS Cluster
module "default_cluster" {
source = "./modules/eks"
Expand All @@ -20,4 +19,4 @@ module "default_cluster" {
node_group_desired_capacity = 2
instance_types = ["t3.medium"]
node_group_disk_size = 20
}
}
6 changes: 3 additions & 3 deletions terraform/eks-cluster/variables.tf
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
variable "resource_prefix" {
type = string
description = "Prefix for AWS Resources"
default = "dsb"
default = "aws"
}

variable "region" {
type = string
description = "AWS Region"
default = "us-east-1"
}
default = "eu-west-1"
}