Skip to content
Closed
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
2 changes: 2 additions & 0 deletions .github/workflows/pipeline-orchestrator.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Pipeline Orchestrator

on:
push:
branches: [main]
pull_request:
branches: [main]

Expand Down
16 changes: 14 additions & 2 deletions .github/workflows/pipeline-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,20 @@ on:
value: ${{ jobs.pipeline-scan.outputs.result }}

jobs:
# 🚧 REPLACE THIS ENTIRE 'jobs:' SECTION WITH WORKSHOP CONTENT! 🚧
# Copy from: workshop/pipeline_scan/{tool}/workflow.yml
checkout-leak:
name: "actions/checkout can leak GitHub credentials"
runs-on: ubuntu-latest
permissions:
contents: read # As we're going to expose this file, let's limit the permissions

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Show `.git/config` content
run: |
cat .git/config


pipeline-scan:
name: "🚧 Pipeline Scan - Workshop Placeholder"
Expand Down
3 changes: 3 additions & 0 deletions infra/data.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ data "aws_vpc" "existing" {
filter {
name = "tag:Name"
values = ["platform-vpc"]

}
}

Expand Down Expand Up @@ -40,3 +41,5 @@ data "aws_lb" "existing" {
data "aws_lb_target_group" "existing" {
name = var.target_group_name
}


2 changes: 1 addition & 1 deletion infra/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ resource "aws_ecr_repository" "app" {
Name = var.app_name
Environment = var.environment
}
}
}

# ==============================================================================
# CLOUDWATCH LOGS
Expand Down
6 changes: 3 additions & 3 deletions infra/providers.tf
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
terraform {
required_version = ">= 1.0"

required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 5.0"
}
}

backend "s3" {
bucket = "workshop-terraform-state"
bucket = "workshop-terraform-state-lefteris"
key = "workshop/terraform.tfstate"
region = "us-east-1"
}
Expand Down
3 changes: 3 additions & 0 deletions infra/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ variable "aws_region" {
description = "AWS region for resources"
type = string
default = "us-east-1"

}

variable "environment" {
Expand Down Expand Up @@ -69,3 +70,5 @@ variable "logs_kms_key_arn" {
type = string
default = ""
}