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 votes
Accepted answer

# 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
Community showcase
Asked Thursday in Jira Ops

I'm John Allspaw, Ask Me Anything about incident analysis and postmortems

I'm John Allspaw, co-founder of   Adaptive Capacity Labs, where we help teams use their incidents to learn and improve. We bring research-driven methods and approaches to drive effective inciden...

2,190 views 8 7
View question

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