You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Hi! How can I create custom tag for EC2 instances, started via Bamboo? Bamboo Server version 7.2.4.
Hi Mithrim, welcome to the Atlassian Community!
Unfortunately this is still not supported by Bamboo - please watch and vote for the following issue to raise Atlassian's priority to finally address this extremely long standing feature gap:
Potential workarounds
The issue comments describe a few approaches - nowadays I'd look into automating this on the AWS side by listening to the EC2 instance startup via EventBridge and applying the tag via a Lambda function provisioned as an Serverless Application Model (SAM) app.
Thanks for asking my question. I'm already find decision, may be it will be useful for somebody.
import os
import subprocess
import json
cmd = 'aws ec2 describe-tags > /tmp/aws_tags.json'
os.system(cmd)
with open("/tmp/aws_tags.json", "r") as read_file:
tags = json.load(read_file)
for elem in tags.values():
for elem1 in elem:
if elem1['ResourceType'] == 'instance' and 'known tag' in elem1['Value']:
cmd = f"aws ec2 create-tags --resources {elem1['ResourceId']} --tags Key=Name,Value=new_tag"
subprocess.run(cmd, shell=True)
This python script run on instance startup ang change tags via aws cli
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.