Skip to content

Add GitHub Actions CI/CD for SAM stack deployment - #5

Draft
vmanam0451 with Copilot wants to merge 5 commits into
mainfrom
copilot/review-cdk-code
Draft

Add GitHub Actions CI/CD for SAM stack deployment#5
vmanam0451 with Copilot wants to merge 5 commits into
mainfrom
copilot/review-cdk-code

Conversation

Copilot AI commented Dec 16, 2025

Copy link
Copy Markdown

Automates deployment of AWS SAM stacks (path-tracer and preprocessor Lambda functions) using GitHub Actions with OIDC authentication.

Workflows

deploy-sam.yml

  • Manual-only deployment via workflow_dispatch (no auto-deploy on push)
  • Configurable stack name and environment (prod/staging)
  • OIDC-based AWS authentication (no long-lived credentials)
  • Builds Docker images and deploys to Lambda via SAM CLI

validate-sam.yml

  • Runs on PRs touching SAM templates
  • Validates template syntax and performs build dry-runs

Setup Required

AWS Resources:

  • OIDC identity provider: token.actions.githubusercontent.com
  • IAM role with least-privilege policies (see .github/workflows/README.md)
  • S3 bucket for artifacts, ECR repository for images

GitHub Secrets:

AWS_ROLE_ARN: arn:aws:iam::123456789012:role/GitHubActionsDeployRole
SAM_ARTIFACTS_BUCKET: distributed-path-tracer-artifacts
ECR_REPOSITORY: 123456789012.dkr.ecr.us-east-1.amazonaws.com/distributed-path-tracer

Deploy by running the workflow manually under Actions → Deploy SAM Application.

Original prompt

Review my CDK code.

Use github actions to deploy my cdk stacks


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 4 commits December 17, 2025 00:00
Co-authored-by: vmanam0451 <25410102+vmanam0451@users.noreply.github.com>
…idation workflow

Co-authored-by: vmanam0451 <25410102+vmanam0451@users.noreply.github.com>
Co-authored-by: vmanam0451 <25410102+vmanam0451@users.noreply.github.com>
Co-authored-by: vmanam0451 <25410102+vmanam0451@users.noreply.github.com>
Copilot AI changed the title [WIP] Review CDK code and GitHub Actions deployment Add GitHub Actions CI/CD for SAM stack deployment Dec 17, 2025
Copilot AI requested a review from vmanam0451 December 17, 2025 00:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants