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

Adding labels to GCE resources #702

Open
ro6ert opened this issue Jun 16, 2021 · 3 comments
Open

Adding labels to GCE resources #702

ro6ert opened this issue Jun 16, 2021 · 3 comments

Comments

@ro6ert
Copy link

ro6ert commented Jun 16, 2021

I would like to label my gce instances and resources for billing purposes, but the concepts of network tags and billing labels have diverged in GCE and tags no longer suffice. Is there an easy way to add labels (key/value pairs) from the elasticluster start command? If not, I need to code one, and if I have to do that, can I make a pull request so the changes are included into future releases?

@riccardomurri
Copy link
Contributor

I'm afraid there's currently no support in ElastiCluster for setting metadata labels, although that would be a very welcome addition!

If you want to try adding it yourself, you probably would need to:

Thank you and please feel free to ask questions here if you need help!

@robertchasechanning
Copy link

I passed the labels argument from the command line to the cluster creator factory and now it seems to be working. There are lots of print line statements and commits that failed to work, but I can put a label in the instances now.

robertchasechanning/elasticluster@d697139

@riccardomurri
Copy link
Contributor

Can you please make a Pull Request? That would make it easier to review and merge.

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

3 participants