-
Notifications
You must be signed in to change notification settings - Fork 24
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
WORKFLOWS-25: support sceptre resolvers in build #19
Conversation
bf1003e
to
28b6f43
Compare
@daisyhan97 Here's another PR that may interest you |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks fine in general, just had a few questions about pipenv packaing
@@ -4,10 +4,11 @@ verify_ssl = true | |||
name = "pypi" | |||
|
|||
[packages] | |||
sceptre = "2.4.0" | |||
sceptre = "2.5.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't these be in dev-packages
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It could be in dev, but then the only contents of the Pipfile would be in dev.
.github/workflows/aws-deploy.yaml
Outdated
- name: Install dependencies | ||
run: | | ||
python -m pip install pipenv | ||
pipenv install |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't this be pipenv install --dev
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
The current github actions workflow uses a sceptre action which does not support custom resolvers. This is limits how we have come to use sceptre -- for example, we won't be able to use the ever-popular
sceptre-ssm-resolver
. I have use cases for usingsceptre-cmd-resolver
, so I have refactored the workflow to use the pipenv environment instead and forgo the sceptre action.I also want to make more of a case for using pipenv in this way. It makes sense that you set up your dependencies file -- whether that is
requirements.txt
orPipfile
-- that can be used in any environment. In other words, it creates an environment that I can use to build whether I am developing or the build action is running on github. When we use the sceptre custom action, we're effectively departing from the simplicity of a single build environment.This solves blocking issue WORKFLOWS-25.