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

Can't sent environment variables to EB due to ERROR: InvalidSyntaxError #529

Open
StubbornDeer opened this issue Nov 29, 2024 · 1 comment

Comments

@StubbornDeer
Copy link

Description

EB SETENV doesn't allow to send variables. Even this string shows the error "ERROR: InvalidSyntaxError - You must use the format KEY=VALUE to set an environment variable. Variables must start with a letter."

eb setenv FLASK_APP=commands

Steps to reproduce

In my VS Code terminal, on the computer with EB installed, just run this command.

Observed result

image

Expected result

Env variables should be sent to EB

Additional environment details (Ex: Windows, Mac, Amazon Linux etc)

  1. OS: Win 11
  2. EBCLI version: EB CLI 3.21.0 (Python 3.12.7 (tags/v3.12.7:0b05ead, Oct 1 2024, 03:06:41) [MSC v.1941 64 bit (AMD64)])
@StubbornDeer
Copy link
Author

Tried to debug the code, in setenv.py I see the pargs is not right:

    def do_command(self):
        app_name = self.get_app_name()
        env_name = self.get_env_name()
        var_list = self.app.pargs.varKey
        timeout = self.app.pargs.timeout
        
        print('COMMANDS', self.app.pargs.varKey)

        envvarops.setenv(app_name, env_name, var_list, timeout)
image

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

No branches or pull requests

1 participant