Skip to content
This repository has been archived by the owner on Sep 15, 2021. It is now read-only.

Cannot pass environment variables to module #9

Open
ianau74 opened this issue Mar 1, 2021 · 2 comments
Open

Cannot pass environment variables to module #9

ianau74 opened this issue Mar 1, 2021 · 2 comments

Comments

@ianau74
Copy link

ianau74 commented Mar 1, 2021

It looks like the current module doesn't support passing in environment variables as an argument.

I'm guessing because this module was created before November 16th before environment variables was a feature?

It would be super useful to be able to set up a canary and pass environment variables in. Right now, you have to upload multiple copies of the same script with a 1 line difference. However, what I really want is to use the same script over and over again, and pass in a single environment variable.

Right now, we have to do this:
url='google.com'
...rest of python script

Ideal python script:
url=os.environ.get('URL')
...rest of python script

See: https://aws.amazon.com/about-aws/whats-new/2020/11/amazon-cloudwatch-synthetics-supports-environment-variables/

@lloyd-cw
Copy link
Contributor

lloyd-cw commented Mar 4, 2021

I agree, this would be useful but as of AWS Provider v3.28, this Canary functionality is now part of the AWS Providers and therefore will need to be worked on as functionality there. I very much doubt that there will be any further work on this code and it'll be archived.

@MaksymBilenko
Copy link
Owner

This repo is about to be archived. But if you would like to still use this one and you need some extra functionality you can open PR for it and I'll merge it for you

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants