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

CI/CD Environment Variables Missing Results in Failed Runs on Serverless #10

Open
jamestkelly opened this issue Aug 5, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@jamestkelly
Copy link
Owner

jamestkelly commented Aug 5, 2022

Description

As identified by @houstonpearse, previous versions of the lambda, specifically version 10, have no environment (env) variables. At this current point, this is the most likely reason as to why previous deployments via the pipeline have failed to fire the cron schedule correctly. This can be seen from the following snapshot of the serverless dashboard where the deployment coincided with a failure for Harold to fire on schedule.

image

Resolution

Simple Fix

For the easier implementation to determine whether or not it is the environment variables leading to the cron schedule not firing. @houstonpearse suggested the following:

  • We make a commit, let the CI/CD deploy, then add the env variables in the AWS console, then hopefully if a new commit is made and when the CI/CD redeploys it the env variables will persist.

Long-term Solution

  • Build an ansible script to be called via GitHub Workflow to deploy Harold to serverless, etc with the env variables.
@jamestkelly jamestkelly added the bug Something isn't working label Aug 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants