From eb71291a376a8a9d6617fce2b11224b8c2ac2e52 Mon Sep 17 00:00:00 2001 From: David Arnold <10138997+djaboxx@users.noreply.github.com> Date: Thu, 17 Apr 2025 02:54:01 -0700 Subject: [PATCH] Image build (#6) * Remove obsolete Lambda packaging script and related configuration files - Deleted `package_lambda.py` script responsible for packaging AWS Lambda functions and layers. - Removed `pip.conf` configuration file for pip settings. - Eliminated `requirements.txt` file that specified Python dependencies. - Deleted `test_payload.json` used for testing Lambda functions. - Removed empty JSON and TFVAR files in `varfiles` directory. - Deleted `variables.tf` file containing Terraform variable definitions. - Removed `versions.tf` file specifying Terraform version requirements. - Added new GitHub Actions workflow for building and pushing Lambda container images using Packer. - Introduced `packer.pkr.hcl` file for Packer configuration to build Docker images for Lambda. * Refactor GitHub API integration to remove Census-specific references and improve configuration handling * Update Python setup in build workflow to use actions/setup-python@v4 and improve dependency installation * Add Terraform backend configuration for GCS storage * Add GOOGLE_CREDENTIALS environment variable to build workflow * Remove unused PACKER_GITHUB_API_TOKEN from build workflow environment * updating build * Remove eks_automation/data.json configuration file --------- Co-authored-by: Dave Arnold --- .github/workflows/build.yml | 2 +- eks_automation/data.json | 26 -------------------------- 2 files changed, 1 insertion(+), 27 deletions(-) delete mode 100644 eks_automation/data.json diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 85f6de6..3d45304 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -40,7 +40,7 @@ jobs: with: python-version: '3.11' cache: 'pip' - cache-dependency-path: requirements.txt + cache-dependency-path: gtag_requirements.txt - name: Install gtag dependencies run: | diff --git a/eks_automation/data.json b/eks_automation/data.json deleted file mode 100644 index ad8264e..0000000 --- a/eks_automation/data.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "project_name": "eks-automation-lambda-test1", - "eks_settings": { - "attrs": { - "account_name": "lab-dev-ew", - "aws_region": "us-gov-east-1", - "cluster_mailing_list": "matthew.c.morgan@census.gov", - "cluster_name": "csvd-platform-lab-mcm", - "eks_instance_disk_size": 100, - "eks_ng_desired_size": 2, - "eks_ng_max_size": 10, - "eks_ng_min_size": 2, - "environment": "development", - "environment_abbr": "dev", - "organization": "census:ocio:csvd", - "finops_project_name": "csvd_platformbaseline", - "finops_project_number": "fs0000000078", - "finops_project_role": "csvd_platformbaseline_app", - "vpc_domain_name": "dev.lab.csp2.census.gov", - "vpc_name": "vpc3-lab-dev" - }, - "tags" : { - "slim:schedule": "8:00-17:00" - } - } -}