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

Add variable substitution in topic names #748

Open
janborch opened this issue Oct 16, 2020 · 1 comment
Open

Add variable substitution in topic names #748

janborch opened this issue Oct 16, 2020 · 1 comment

Comments

@janborch
Copy link

Certain variable substitution like ${AWS_IOT_THING_NAME} are already available in the outputTopics/inputTopics entries in the function config file and are very useful when you need to parametrize topics.

Would be great to have a feature to define my own substitution variables, for example in the main deployment config file that could be used in referenced function config files.

--> function.conf

...
outputTopics = 'event/${ORG}/sensor
...

--> deployment.config

...
subtEnv :{
ORG: 'acme'
}
...

or by passing substitution variables over the command line or environment variables
java -jar bin/AwsGreengrassProvisioner.jar -g test-zebra -d deployments/morrison-zebra.conf --oem --env ORG:acme

or

export ORG=acme
java -jar bin/AwsGreengrassProvisioner.jar -g test-zebra -d deployments/morrison-zebra.conf --oem 
@timmattison
Copy link
Contributor

Sorry I missed this. Would this still be useful when v2 support is added? If so, I'll add it there.

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

2 participants