aws / aws/elastic-beanstalk-roadmap

Feature Request: python virtualenv naming Set via Python Platform Option or Document

Open
#151 0 comments 11 reactions 0 assignees View on GitHub
Proposed
Dominant language
No language data
Stars
283
Forks
11
PR merge metrics
No merged PRs in 30d

Description

### Community Note

* Please vote on this issue by adding a 👍 [reaction](https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/) to the original issue to help the community and maintainers prioritize this request.
* Please do not leave "+1" or "me too" comments. They generate extra noise for issue followers and do not help prioritize the request.

**Tell us about your request**

I would like to have a variable to create a consistent virtualenv path when running python. The current virtualenv path always (appears) to be `/var/app/venv/staging-LQM1lest` but this isn't documented. In my specific use case, I want to run cron jobs from within this virtualenv while leveraging AWS' installation of dependencies from `requirements.txt`.

**Is this request specific to an Elastic Beanstalk [platform](https://docs.aws.amazon.com/elasticbeanstalk/latest/platforms/platforms-supported.html)?**
If so, which one(s)? Python 3.7 AL2 version 3.1.5

**Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard?**

The problem I'm trying to solve is having a known virtualenv location. The challenge is we are relying on an undocumented feature - that the virtualenv path will be consistently at `/var/app/venv/staging-LQM1lest`.

**Are you currently working around this issue?**

Currently we are assuming that `/var/app/venv/staging-LQM1lest` is consistently available.

**Additional context**

If the behavior was either documented in official docs or available as a "python command option" (https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/command-options-specific.html#command-options-python) such as `aws:elasticbeanstalk:environment` either would work for us.

**Attachments**
If you think you might have additional information that you'd like to include via an attachment, please do - we'll take a look. (Remember to remove any personally-identifiable information.)

Contributor guide

Open the contributing guide

Research direction

No repository files or tests are named. Start with the Python 3.7 AL2 platform documentation and the linked Python command-options section; determine whether a stable virtualenv path can be documented or requires a new option. Done means users can reliably locate the environment without assuming `/var/app/venv/staging-LQM1lest`.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, python
Domain
cloud, documentation
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.