Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Mar 2019 14:00:07 -0400
From:      "Philip M. Gollucci" <pgollucci@p6m7g8.com>
To:        Rafal Lukawiecki <raf@rafal.net>
Cc:        freebsd-cloud@freebsd.org
Subject:   Re: How to base64 encode and upload userdata for EC2 Launch Template
Message-ID:  <CACM2dAY%2BVj83uvQxg1WbgOc7Oo3QOP2QMM1%2B0Syx5gjmpBoAPg@mail.gmail.com>
In-Reply-To: <16C73F7C-3673-44CC-B59E-DA247A0C2DF7@rafal.net>
References:  <16C73F7C-3673-44CC-B59E-DA247A0C2DF7@rafal.net>

next in thread | previous in thread | raw e-mail | index | archive | help
You could pull it down from an S3 bucket that only the deployer and the ASG
w/ IAM role have access to.  I highly recommend versioning the bucket and
make 2 for blue/green or red/black.


On Mon, Mar 11, 2019 at 5:46 AM Rafal Lukawiecki <raf@rafal.net> wrote:

> Hello Everyone, Hello Colin,
>
> I hope someone can explain, as I have been lost in this for over a week. I
> would like to pass a small (4-5kB) tarball of files for the built-in cloud
> init script of the official FreeBSD 12.0 EC2 AMI to get untarred and
> processed (>, >>, or #!) upon instance launch. I have successfully done it
> for over 2 years using Launch Configurations but I cannot make it work
> using the new Launch Templates.
>
> No matter if base64 and upload via the console, or base64 and use aws cli,
> or create an LC and convert to an LT, it only works with LC.
>
> So far, I can see that depending which route I use to upload the file,
> when I download it back from the finished template/configuration there seem
> to be 3 different userdata lengths, even though I always pass the same
> input. It suggests to me that some other processing of that input happens,
> and I am lost where to hunt for it.
>
> Have any of you nailed it down? What steps do you take to prepare it?
>
> Many thanks and regards from Ireland,
> Rafal Lukawiecki
> _______________________________________________
> freebsd-cloud@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-cloud
> To unsubscribe, send any mail to "freebsd-cloud-unsubscribe@freebsd.org"
>


-- 
Philip M. Gollucci
IT Executive and Engineering Leader
http://www.linkedin.com/in/pgollucci/
301.818.0719



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CACM2dAY%2BVj83uvQxg1WbgOc7Oo3QOP2QMM1%2B0Syx5gjmpBoAPg>