Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EREGCSC-2860 - Deploy Redirect to ephemeral environment #1473

Merged
merged 5 commits into from
Nov 12, 2024
Merged

Conversation

addis-samtek
Copy link
Contributor

@addis-samtek addis-samtek commented Nov 6, 2024

Deploy Redirect to Ephemeral Environment

Resolves EREGCSC-2860

Description

This pull request changes:

  • Implements automated deployment of Redirect API to ephemeral environments for PR testing
  • Adds GitHub Actions workflow for PR-specific stack deployment
  • Includes automatic cleanup when PR is closed

Steps to manually verify this change:

  1. Open a new PR

    • Verify GitHub Action triggers automatically
    • Check CDK deployment logs for stack creation
  2. Test deployed endpoint

    • Find API endpoint URL in aws console
    • Verify API responds as expected
    • Check AWS Console for PR-specific resources (format: cms-eregs-eph-{pr-number}-redirect-api)
  3. Close PR to verify cleanup

    • Observe cleanup workflow trigger
    • Verify stack is destroyed
    • Check AWS Console to confirm resource removal

Comments

  1. Stack pattern: cms-eregs-eph-{pr-number}-redirect-api
  2. Ephemeral resources auto-destroy on PR close
  3. Debug logs available with CDK_DEBUG=true

Copy link

github-actions bot commented Nov 6, 2024

✨ See the Django Site in action

Copy link

github-actions bot commented Nov 6, 2024

✨ See the Django Site in action

Copy link

github-actions bot commented Nov 6, 2024

✨ See the Django Site in action

@brittag brittag changed the title Deploy Redirect to ephmeral env EREGCSC-2860 - Deploy Redirect to ephemeral environment Nov 6, 2024
@cgodwin1 cgodwin1 marked this pull request as draft November 7, 2024 19:29
Copy link

github-actions bot commented Nov 7, 2024

✨ See the Django Site in action

@addis-samtek addis-samtek added the Needs Review This PR needs a code review label Nov 7, 2024
@addis-samtek addis-samtek marked this pull request as ready for review November 11, 2024 15:37
Copy link
Contributor

@cgodwin1 cgodwin1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cgodwin1 cgodwin1 added Approved and removed Needs Review This PR needs a code review labels Nov 12, 2024
@addis-samtek addis-samtek merged commit 92f6bf9 into main Nov 12, 2024
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants