# Provider user-data to AWS Add Host

**URL:** <https://forums.suse.com/t/provider-user-data-to-aws-add-host/1767>\
**Category:** Rancher 1.x\
**Created:** [February 18, 2016, 8:04pm UTC](https://forums.suse.com/t/provider-user-data-to-aws-add-host/1767 "2016-02-18T20:04:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cumpsd](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/cumpsd/32/883_2.png) [@cumpsd](https://forums.suse.com/u/cumpsd)\
**Post date:** [February 18, 2016, 8:04pm UTC](https://forums.suse.com/t/provider-user-data-to-aws-add-host/1767/1 "2016-02-18T20:04:06Z")

</div>

I have recently setup a Rancher cluster on AWS using RancherOS as it’s nodes. Right now I manually created all these from the provided AMIs, upgraded them and manually joined them.

On the Add Host screen, I see AWS is an option, but if I read it correctly, it defaults to ubuntu machines. I see I can select another AMI, so I could launch RancherOS ones, but how would I provide the user-data to it to launch with?

---

<div class="post-metadata">

**Author:** ![jloisel](https://avatars.discourse-cdn.com/v4/letter/j/74df32/32.png) [@jloisel](https://forums.suse.com/u/jloisel)\
**Post date:** [February 19, 2016, 1:37pm UTC](https://forums.suse.com/t/provider-user-data-to-aws-add-host/1767/2 "2016-02-19T13:37:32Z")

</div>

You can’t, not because of Rancher but because Docker machine doesn’t support it:

> **[Amazon Web Services](https://docs.docker.com/machine/drivers/aws/)**
>
> Create machines on Amazon Web Services. To create machines on Amazon Web Services, you must supply two parameters: the AWS Access Key ID and the AWS Secret Access Key. Configuring...

Rancher simply calls Docker Machine to launch machines.

---

<div class="post-metadata">

**Author:** ![cumpsd](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/cumpsd/32/883_2.png) [@cumpsd](https://forums.suse.com/u/cumpsd)\
**Post date:** [February 19, 2016, 11:48pm UTC](https://forums.suse.com/t/provider-user-data-to-aws-add-host/1767/3 "2016-02-19T23:48:28Z")

</div>

Oh, that’s a shame, so I will have to continue going in the AWS console to boot up instances with custom user-data.

Thanks

---

<div class="post-metadata">

**Author:** ![andrewcstewart](https://avatars.discourse-cdn.com/v4/letter/a/d07c76/32.png) [@andrewcstewart](https://forums.suse.com/u/andrewcstewart)\
**Post date:** [October 25, 2016, 2:47am UTC](https://forums.suse.com/t/provider-user-data-to-aws-add-host/1767/4 "2016-10-25T02:47:24Z")

</div>

Couldn’t you pass the information to the AWS\_USERDATA env variable used by docker-machine?
