Elastic Agent - EC2 user data vs Instance Startup Script

Hi,

With the stock image with custom EBS / custom Image:

# Do either/both have the option to set the ec2 user data?
# What is the Instance startup script (under managing elastic images in Bamboo), when and how is it used by bamboo/agent?

Cheers,
Sam

[Edit - 15/04/2013]
I have googled / checked Atlassian documentation. I did not see the "Instance startup script" referenced anywhere on https://confluence.atlassian.com/display/BAMBOO/Managing+your+elastic+image+configurations, even the screenshot on the same doc (https://confluence.atlassian.com/download/attachments/289277147/manage-elastic.png).

I only found the "Instance startup script" field in Bamboo 4.2 on the Edit image configurations page.

1 answer

1 accepted

0 vote

# Do either/both have the option to set the ec2 user data?

I don't understand that question. Bamboo Server always sets EC2 user data. Do you mean you'd like to set it to some specific value?

# What is the Instance startup script (under managing elastic images in Bamboo), when and how is it used by bamboo/agent?

It's run during instance startup as the root user. This happens before the agent is started.

Yes, can we set the ec2-user data ourselves as our AMI image takes cloud init script to set up a few things to establish itself in our VPC. I wanted to just confirm whether it was possible to see what options we have. Using the instance startup script should suffice but just wanted to avoid maintaining another version of the same function.

Thanks

It would be nice if the Bamboo documentation could be updated to reflect this info.

On my custom Windows ami, can I specify a PowerShell script as the instance startup script?

No, Windows does not support startup scripts atm.

On windows, how can I connect to a running Bamboo instance? In AWS instance when I do Get Password I get a message: "This instance was launched from a custom AMI, or the default password has changed. A password cannot be retrieved for this instance."

I was hoping to use the "Instance Startup Script" to set the administrator password. Is this not possible on Windows?

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,810 views 0 6
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you