Created 05-02-2016 07:51 PM
Is there a way to tag EC2 instances created by cloudbreak?
Created 07-04-2016 03:00 PM
you can define custom tags with cloudbreak 1.3.0 or higher versions.
If you set CB_AWS_DEFAULT_CF_TAG variable in your Profile like CB_AWS_DEFAULT_CF_TAG=testtag then every resource which will be deployed by cloudbreak will be tagged with CloudbreakId:testtag.
Other option is to set CB_AWS_CUSTOM_CF_TAGS variable. If you set CB_AWS_CUSTOM_CF_TAGS=tag1:apple,tag2:lemon then every resource will be tagged with tag1:apple and with tag2:lemon also.
Created 05-02-2016 07:53 PM
We are already adding tags to the instances. Do you want to add some custom tags?
Created 05-17-2016 12:50 AM
@rdoktorics yes custom tags.
Created 05-06-2016 09:10 PM
What I did was write a boto based python script that does all the tagging, I download ind run it using a recipe
The recipe is as simple as this
#!/bin/bash curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py" curl "https://<repo with my tagging script>/hdp_tagging.py" -o "hdp_tagging.py" python ./get-pip.py pip install boto pip install argparse python ./hdp_tagging.py --key '' --secret ''
Created 05-17-2016 12:52 AM
@Liam MacInnes This is a neat work around. I would like to see capablities from CB to add custom tags to each host group.
Created 07-04-2016 03:00 PM
you can define custom tags with cloudbreak 1.3.0 or higher versions.
If you set CB_AWS_DEFAULT_CF_TAG variable in your Profile like CB_AWS_DEFAULT_CF_TAG=testtag then every resource which will be deployed by cloudbreak will be tagged with CloudbreakId:testtag.
Other option is to set CB_AWS_CUSTOM_CF_TAGS variable. If you set CB_AWS_CUSTOM_CF_TAGS=tag1:apple,tag2:lemon then every resource will be tagged with tag1:apple and with tag2:lemon also.