Skip to content

Commit

Permalink
container-image: install cloud-init on AWS
Browse files Browse the repository at this point in the history
This gets the correct SSH keys onto the instance, via the metadata service.
  • Loading branch information
justinsb committed May 31, 2020
1 parent c680d2c commit 3f69a8a
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ RUN apt-get -y install --no-install-recommends cloud-init
# Configure default user (admin) to match debian default image
# https://salsa.debian.org/cloud-team/debian-cloud-images/-/blob/master/config_space/files/etc/cloud/cloud.cfg.d/01_debian_cloud.cfg/EC2
COPY 01_debian_cloud.cfg /etc/cloud/cloud.cfg.d/

RUN echo "cloud-init cloud-init/datasources multiselect Ec2" | debconf-set-selections
RUN apt-get -y install --no-install-recommends cloud-init

0 comments on commit 3f69a8a

Please sign in to comment.