Skip to content

Commit

Permalink
Image build (#3)
Browse files Browse the repository at this point in the history
* 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

---------

Co-authored-by: Dave Arnold <dave@roknsound.com>
  • Loading branch information
2 people authored and GitHub committed Apr 17, 2025
1 parent 0ffd573 commit ff1b8ed
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
workflow_dispatch:
push:
branches: [ "main" ]

permissions:
contents: write
id-token: write
Expand Down Expand Up @@ -33,11 +33,16 @@ jobs:
curl -sSL https://raw.githubusercontent.com/HappyPathway/centralized-actions/main/gtag.py -o gtag.py
curl -sSL https://raw.githubusercontent.com/HappyPathway/centralized-actions/main/gtag_requirements.txt -o requirements.txt
- name: Setup Python
uses: actions/setup-python@v2
- name: Setup minimal Python for gtag
uses: actions/setup-python@v4
with:
python-version: '3.11'
cache: pip
cache: 'pip'
cache-dependency-path: requirements.txt

- name: Install gtag dependencies
run: |
python -m pip install -r requirements.txt
- name: Setup Terraform
uses: hashicorp/setup-terraform@v3.1.2
Expand Down Expand Up @@ -95,3 +100,4 @@ jobs:
-var "repository_uri=${{ env.repository_uri }}" \
-var "tag=${{ env.next_tag }}" \
packer.pkr.hcl
7 changes: 7 additions & 0 deletions backend.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
terraform {
backend "gcs" {
bucket = "hpwe-terraform-state"
prefix = "eks-automation-lambda"
}
}

0 comments on commit ff1b8ed

Please sign in to comment.