widdix / aws-cf-templates

Free Templates for AWS CloudFormation
https://templates.cloudonaut.io/
Apache License 2.0
2.74k stars 1.38k forks source link

Documentation on UserData field EC2 template #721

Closed Q-Nimbus closed 3 months ago

Q-Nimbus commented 7 months ago

UserData Field in EC2

Hi I am trying to find information on what format I should use to add user data to the cloud-init when using the EC2 template so far I have been unable to install additional apps in the instance, or should I create the bash script and store it in s3 for example?

michaelwittig commented 7 months ago

Hi @Q-Nimbus, something like: yum -y install package && systemctl start some.service

Or you can load a script from S3 and execute it: aws s3 cp s3://yourbucket/yourscript.sh - | bash

Q-Nimbus commented 7 months ago

Brilliant thank you very much

Q-Nimbus commented 7 months ago

Actually tried both methods and neither seem to run the script, i dont see anything in the logs on the instance

michaelwittig commented 7 months ago

What's inside /var/log/cloud-init-output.log?

Q-Nimbus commented 7 months ago

`[root@ip-10-143-21-185 log]# cat cloud-init-output.log Cloud-init v. 19.3-46.amzn2.0.1 running 'init-local' at Wed, 15 Nov 2023 12:33:33 +0000. Up 5.35 seconds. Cloud-init v. 19.3-46.amzn2.0.1 running 'init' at Wed, 15 Nov 2023 12:33:34 +0000. Up 6.09 seconds. ci-info: ++++++++++++++++++++++++++++++++++++++Net device info++++++++++++++++++++++++++++++++++++++ ci-info: +--------+------+----------------------------+---------------+--------+-------------------+ ci-info: | Device | Up | Address | Mask | Scope | Hw-Address | ci-info: +--------+------+----------------------------+---------------+--------+-------------------+ ci-info: | eth0 | True | 10.143.21.185 | 255.255.240.0 | global | 02:49:41:ae:2e:77 | ci-info: | eth0 | True | fe80::49:41ff:feae:2e77/64 | . | link | 02:49:41:ae:2e:77 | ci-info: | lo | True | 127.0.0.1 | 255.0.0.0 | host | . | ci-info: | lo | True | ::1/128 | . | host | . | ci-info: +--------+------+----------------------------+---------------+--------+-------------------+ ci-info: ++++++++++++++++++++++++++++++++Route IPv4 info++++++++++++++++++++++++++++++++ ci-info: +-------+-----------------+-------------+-----------------+-----------+-------+ ci-info: | Route | Destination | Gateway | Genmask | Interface | Flags | ci-info: +-------+-----------------+-------------+-----------------+-----------+-------+ ci-info: | 0 | 0.0.0.0 | 10.143.16.1 | 0.0.0.0 | eth0 | UG | ci-info: | 1 | 10.143.16.0 | 0.0.0.0 | 255.255.240.0 | eth0 | U | ci-info: | 2 | 169.254.169.254 | 0.0.0.0 | 255.255.255.255 | eth0 | UH | ci-info: +-------+-----------------+-------------+-----------------+-----------+-------+ ci-info: +++++++++++++++++++Route IPv6 info+++++++++++++++++++ ci-info: +-------+-------------+---------+-----------+-------+ ci-info: | Route | Destination | Gateway | Interface | Flags | ci-info: +-------+-------------+---------+-----------+-------+ ci-info: | 9 | fe80::/64 | :: | eth0 | U | ci-info: | 11 | local | :: | eth0 | U | ci-info: | 12 | ff00::/8 | :: | eth0 | U | ci-info: +-------+-------------+---------+-----------+-------+ Cloud-init v. 19.3-46.amzn2.0.1 running 'modules:config' at Wed, 15 Nov 2023 12:33:35 +0000. Up 7.29 seconds. Loaded plugins: extras_suggestions, langpacks, priorities, update-motd Existing lock /var/run/yum.pid: another copy is running as pid 2395. Another app is currently holding the yum lock; waiting for it to exit... The other application is: yum Memory : 31 M RSS (247 MB VSZ) Started: Wed Nov 15 12:33:36 2023 - 00:00 ago State : Running, pid: 2395 Another app is currently holding the yum lock; waiting for it to exit... The other application is: yum Memory : 110 M RSS (403 MB VSZ) Started: Wed Nov 15 12:33:36 2023 - 00:02 ago State : Running, pid: 2395 Another app is currently holding the yum lock; waiting for it to exit... The other application is: yum Memory : 217 M RSS (510 MB VSZ) Started: Wed Nov 15 12:33:36 2023 - 00:04 ago State : Running, pid: 2395 Another app is currently holding the yum lock; waiting for it to exit... The other application is: yum Memory : 195 M RSS (490 MB VSZ) Started: Wed Nov 15 12:33:36 2023 - 00:06 ago State : Running, pid: 2395 --> glibc-common-2.26-63.amzn2.0.1.x86_64 from amzn2-core removed (updateinfo) --> yajl-2.0.4-4.amzn2.0.3.x86_64 from amzn2-core removed (updateinfo) --> 12:dhclient-4.2.5-79.amzn2.1.5.x86_64 from amzn2-core removed (updateinfo) --> 12:dhcp-common-4.2.5-79.amzn2.1.5.x86_64 from amzn2-core removed (updateinfo) --> jbigkit-libs-2.0-11.amzn2.0.3.x86_64 from amzn2-core removed (updateinfo) --> python3-setuptools-49.1.3-1.amzn2.0.3.noarch from amzn2-core removed (updateinfo) --> libidn-1.28-4.amzn2.0.2.x86_64 from installed removed (updateinfo) --> glibc-2.26-63.amzn2.0.1.x86_64 from amzn2-core removed (updateinfo) --> 2:microcode_ctl-2.1-47.amzn2.2.15.x86_64 from amzn2-core removed (updateinfo) --> glibc-all-langpacks-2.26-63.amzn2.x86_64 from installed removed (updateinfo) --> krb5-libs-1.15.1-55.amzn2.2.5.x86_64 from installed removed (updateinfo) --> elfutils-libelf-0.176-2.amzn2.x86_64 from installed removed (updateinfo) --> amazon-linux-extras-2.0.3-1.amzn2.noarch from amzn2-core removed (updateinfo) --> libtiff-4.0.3-35.amzn2.0.8.x86_64 from installed removed (updateinfo) --> jbigkit-libs-2.0-11.amzn2.0.2.x86_64 from installed removed (updateinfo) --> libidn2-2.3.0-1.amzn2.x86_64 from installed removed (updateinfo) --> glibc-all-langpacks-2.26-63.amzn2.0.1.x86_64 from amzn2-core removed (updateinfo) --> 1:openssl-1.0.2k-24.amzn2.0.10.x86_64 from amzn2-core removed (updateinfo) --> ec2-hibinit-agent-1.0.2-4.amzn2.noarch from installed removed (updateinfo) --> 2:shadow-utils-4.1.5.1-24.amzn2.0.3.x86_64 from amzn2-core removed (updateinfo) --> python-configobj-4.7.2-7.amzn2.noarch from installed removed (updateinfo) --> libstdc++-7.3.1-17.amzn2.x86_64 from amzn2-core removed (updateinfo) --> 1:system-release-2-16.amzn2.x86_64 from amzn2-core removed (updateinfo) --> libgcc-7.3.1-17.amzn2.x86_64 from amzn2-core removed (updateinfo) --> openldap-2.4.44-25.amzn2.0.7.x86_64 from amzn2-core removed (updateinfo) --> sudo-1.8.23-10.amzn2.3.1.x86_64 from installed removed (updateinfo) --> 1:system-release-2-14.amzn2.x86_64 from installed removed (updateinfo) --> amazon-linux-extras-yum-plugin-2.0.3-1.amzn2.noarch from amzn2-core removed (updateinfo) --> glibc-locale-source-2.26-63.amzn2.x86_64 from installed removed (updateinfo) --> amazon-linux-extras-yum-plugin-2.0.1-1.amzn2.noarch from installed removed (updateinfo) --> zlib-1.2.7-19.amzn2.0.3.x86_64 from amzn2-core removed (updateinfo) --> libcrypt-2.26-63.amzn2.x86_64 from installed removed (updateinfo) --> libidn-1.28-4.amzn2.0.5.x86_64 from amzn2-core removed (updateinfo) --> glibc-minimal-langpack-2.26-63.amzn2.0.1.x86_64 from amzn2-core removed (updateinfo) --> elfutils-libs-0.176-2.amzn2.0.2.x86_64 from amzn2-core removed (updateinfo) --> mdadm-4.0-5.amzn2.0.2.x86_64 from installed removed (updateinfo) --> libtasn1-4.10-1.amzn2.0.3.x86_64 from installed removed (updateinfo) --> elfutils-libelf-0.176-2.amzn2.0.2.x86_64 from amzn2-core removed (updateinfo) --> elfutils-default-yama-scope-0.176-2.amzn2.noarch from installed removed (updateinfo) --> 2:microcode_ctl-2.1-47.amzn2.0.15.x86_64 from installed removed (updateinfo) --> zlib-1.2.7-19.amzn2.0.2.x86_64 from installed removed (updateinfo) --> krb5-libs-1.15.1-55.amzn2.2.6.x86_64 from amzn2-core removed (updateinfo) --> libtiff-4.0.3-35.amzn2.0.19.x86_64 from amzn2-core removed (updateinfo) --> elfutils-default-yama-scope-0.176-2.amzn2.0.2.noarch from amzn2-core removed (updateinfo) --> 12:dhcp-common-4.2.5-79.amzn2.1.2.x86_64 from installed removed (updateinfo) --> mdadm-4.0-5.amzn2.0.3.x86_64 from amzn2-core removed (updateinfo) --> libstdc++-7.3.1-15.amzn2.x86_64 from installed removed (updateinfo) --> 1:openssl-1.0.2k-24.amzn2.0.7.x86_64 from installed removed (updateinfo) --> libsepol-2.5-8.1.amzn2.0.2.x86_64 from installed removed (updateinfo) --> 2:libpng-1.5.13-8.amzn2.0.5.x86_64 from amzn2-core removed (updateinfo) --> python-configobj-4.7.2-7.amzn2.0.1.noarch from amzn2-core removed (updateinfo) --> 2:shadow-utils-4.1.5.1-24.amzn2.0.2.x86_64 from installed removed (updateinfo) --> libcrypt-2.26-63.amzn2.0.1.x86_64 from amzn2-core removed (updateinfo) --> 12:dhcp-libs-4.2.5-79.amzn2.1.2.x86_64 from installed removed (updateinfo) --> ec2-hibinit-agent-1.0.2-7.amzn2.noarch from amzn2-core removed (updateinfo) --> 12:dhcp-libs-4.2.5-79.amzn2.1.5.x86_64 from amzn2-core removed (updateinfo) --> libtasn1-4.10-1.amzn2.0.6.x86_64 from amzn2-core removed (updateinfo) --> glibc-2.26-63.amzn2.x86_64 from installed removed (updateinfo) --> 1:openssl-libs-1.0.2k-24.amzn2.0.10.x86_64 from amzn2-core removed (updateinfo) --> libgomp-7.3.1-15.amzn2.x86_64 from installed removed (updateinfo) --> amazon-linux-extras-2.0.1-1.amzn2.noarch from installed removed (updateinfo) --> 1:openssl-libs-1.0.2k-24.amzn2.0.7.x86_64 from installed removed (updateinfo) --> expat-2.1.0-15.amzn2.0.2.x86_64 from installed removed (updateinfo) --> 12:dhclient-4.2.5-79.amzn2.1.2.x86_64 from installed removed (updateinfo) --> 2:libpng-1.5.13-8.amzn2.0.1.x86_64 from installed removed (updateinfo) --> glibc-common-2.26-63.amzn2.x86_64 from installed removed (updateinfo) --> glibc-minimal-langpack-2.26-63.amzn2.x86_64 from installed removed (updateinfo) --> libidn2-2.3.0-1.amzn2.0.3.x86_64 from amzn2-core removed (updateinfo) --> python3-setuptools-49.1.3-1.amzn2.0.2.noarch from installed removed (updateinfo) --> sudo-1.8.23-10.amzn2.3.5.x86_64 from amzn2-core removed (updateinfo) --> elfutils-libs-0.176-2.amzn2.x86_64 from installed removed (updateinfo) --> glibc-locale-source-2.26-63.amzn2.0.1.x86_64 from amzn2-core removed (updateinfo) --> libsepol-2.5-10.amzn2.0.1.x86_64 from amzn2-core removed (updateinfo) --> libgcc-7.3.1-15.amzn2.x86_64 from installed removed (updateinfo) --> openldap-2.4.44-25.amzn2.0.6.x86_64 from installed removed (updateinfo) --> libgomp-7.3.1-17.amzn2.x86_64 from amzn2-core removed (updateinfo) --> yajl-2.0.4-4.amzn2.0.2.x86_64 from installed removed (updateinfo) --> expat-2.1.0-15.amzn2.0.3.x86_64 from amzn2-core removed (updateinfo) 38 package(s) needed (+0 related) for security, out of 79 available Resolving Dependencies --> Running transaction check ---> Package amazon-ssm-agent.x86_64 0:3.1.1732.0-1.amzn2 will be updated ---> Package amazon-ssm-agent.x86_64 0:3.2.1705.0-1.amzn2 will be an update ---> Package bind-export-libs.x86_64 32:9.11.4-26.P2.amzn2.13.1 will be updated ---> Package bind-export-libs.x86_64 32:9.11.4-26.P2.amzn2.13.5 will be an update ---> Package bind-libs.x86_64 32:9.11.4-26.P2.amzn2.13.1 will be updated ---> Package bind-libs.x86_64 32:9.11.4-26.P2.amzn2.13.5 will be an update ---> Package bind-libs-lite.x86_64 32:9.11.4-26.P2.amzn2.13.1 will be updated ---> Package bind-libs-lite.x86_64 32:9.11.4-26.P2.amzn2.13.5 will be an update ---> Package bind-license.noarch 32:9.11.4-26.P2.amzn2.13.1 will be updated ---> Package bind-license.noarch 32:9.11.4-26.P2.amzn2.13.5 will be an update ---> Package bind-utils.x86_64 32:9.11.4-26.P2.amzn2.13.1 will be updated ---> Package bind-utils.x86_64 32:9.11.4-26.P2.amzn2.13.5 will be an update ---> Package ca-certificates.noarch 0:2021.2.50-72.amzn2.0.7 will be updated ---> Package ca-certificates.noarch 0:2023.2.62-1.amzn2.0.1 will be an update ---> Package curl.x86_64 0:8.0.1-1.amzn2.0.1 will be updated ---> Package curl.x86_64 0:8.3.0-1.amzn2.0.4 will be an update ---> Package grub2.x86_64 1:2.06-14.amzn2.0.1 will be obsoleted ---> Package grub2.x86_64 1:2.06-14.amzn2.0.2 will be obsoleting ---> Package grub2-common.noarch 1:2.06-14.amzn2.0.1 will be updated ---> Package grub2-common.noarch 1:2.06-14.amzn2.0.2 will be an update ---> Package grub2-efi-x64-ec2.x86_64 1:2.06-14.amzn2.0.1 will be updated ---> Package grub2-efi-x64-ec2.x86_64 1:2.06-14.amzn2.0.2 will be an update ---> Package grub2-pc.x86_64 1:2.06-14.amzn2.0.1 will be updated ---> Package grub2-pc.x86_64 1:2.06-14.amzn2.0.2 will be obsoleting ---> Package grub2-pc-modules.noarch 1:2.06-14.amzn2.0.1 will be updated ---> Package grub2-pc-modules.noarch 1:2.06-14.amzn2.0.2 will be an update ---> Package grub2-tools.x86_64 1:2.06-14.amzn2.0.1 will be obsoleted ---> Package grub2-tools.x86_64 1:2.06-14.amzn2.0.2 will be obsoleting ---> Package grub2-tools-efi.x86_64 1:2.06-14.amzn2.0.2 will be obsoleting ---> Package grub2-tools-extra.x86_64 1:2.06-14.amzn2.0.2 will be obsoleting ---> Package grub2-tools-minimal.x86_64 1:2.06-14.amzn2.0.1 will be updated ---> Package grub2-tools-minimal.x86_64 1:2.06-14.amzn2.0.2 will be obsoleting ---> Package kernel-tools.x86_64 0:4.14.320-242.534.amzn2 will be updated ---> Package kernel-tools.x86_64 0:4.14.327-246.539.amzn2 will be an update ---> Package libcurl.x86_64 0:8.0.1-1.amzn2.0.1 will be updated ---> Package libcurl.x86_64 0:8.3.0-1.amzn2.0.4 will be an update ---> Package libjpeg-turbo.x86_64 0:2.0.90-2.amzn2.0.1 will be updated ---> Package libjpeg-turbo.x86_64 0:2.0.90-2.amzn2.0.6 will be an update ---> Package libnghttp2.x86_64 0:1.41.0-1.amzn2 will be updated ---> Package libnghttp2.x86_64 0:1.41.0-1.amzn2.0.4 will be an update ---> Package libssh2.x86_64 0:1.4.3-12.amzn2.2.4 will be updated ---> Package libssh2.x86_64 0:1.4.3-12.amzn2.2.6 will be an update ---> Package libxml2.x86_64 0:2.9.1-6.amzn2.5.8 will be updated ---> Package libxml2.x86_64 0:2.9.1-6.amzn2.5.13 will be an update ---> Package libxml2-python.x86_64 0:2.9.1-6.amzn2.5.8 will be updated ---> Package libxml2-python.x86_64 0:2.9.1-6.amzn2.5.13 will be an update ---> Package openssh.x86_64 0:7.4p1-22.amzn2.0.2 will be updated ---> Package openssh.x86_64 0:7.4p1-22.amzn2.0.5 will be an update ---> Package openssh-clients.x86_64 0:7.4p1-22.amzn2.0.2 will be updated ---> Package openssh-clients.x86_64 0:7.4p1-22.amzn2.0.5 will be an update ---> Package openssh-server.x86_64 0:7.4p1-22.amzn2.0.2 will be updated ---> Package openssh-server.x86_64 0:7.4p1-22.amzn2.0.5 will be an update ---> Package python.x86_64 0:2.7.18-1.amzn2.0.6 will be updated ---> Package python.x86_64 0:2.7.18-1.amzn2.0.7 will be an update ---> Package python-devel.x86_64 0:2.7.18-1.amzn2.0.6 will be updated ---> Package python-devel.x86_64 0:2.7.18-1.amzn2.0.7 will be an update ---> Package python-libs.x86_64 0:2.7.18-1.amzn2.0.6 will be updated ---> Package python-libs.x86_64 0:2.7.18-1.amzn2.0.7 will be an update ---> Package python-pillow.x86_64 0:2.0.0-23.gitd1c6db8.amzn2.0.7 will be updated ---> Package python-pillow.x86_64 0:2.0.0-23.gitd1c6db8.amzn2.0.8 will be an update ---> Package python3.x86_64 0:3.7.16-1.amzn2.0.2 will be updated ---> Package python3.x86_64 0:3.7.16-1.amzn2.0.4 will be an update ---> Package python3-libs.x86_64 0:3.7.16-1.amzn2.0.2 will be updated ---> Package python3-libs.x86_64 0:3.7.16-1.amzn2.0.4 will be an update ---> Package vim-common.x86_64 2:9.0.1592-1.amzn2.0.1 will be updated ---> Package vim-common.x86_64 2:9.0.1882-1.amzn2.0.3 will be an update ---> Package vim-data.noarch 2:9.0.1592-1.amzn2.0.1 will be updated ---> Package vim-data.noarch 2:9.0.1882-1.amzn2.0.3 will be an update ---> Package vim-enhanced.x86_64 2:9.0.1592-1.amzn2.0.1 will be updated ---> Package vim-enhanced.x86_64 2:9.0.1882-1.amzn2.0.3 will be an update ---> Package vim-filesystem.noarch 2:9.0.1592-1.amzn2.0.1 will be updated ---> Package vim-filesystem.noarch 2:9.0.1882-1.amzn2.0.3 will be an update ---> Package vim-minimal.x86_64 2:9.0.1592-1.amzn2.0.1 will be updated ---> Package vim-minimal.x86_64 2:9.0.1882-1.amzn2.0.3 will be an update ---> Package xxd.x86_64 2:9.0.1592-1.amzn2.0.1 will be updated ---> Package xxd.x86_64 2:9.0.1882-1.amzn2.0.3 will be an update ---> Package yum.noarch 0:3.4.3-158.amzn2.0.6 will be updated ---> Package yum.noarch 0:3.4.3-158.amzn2.0.7 will be an update --> Finished Dependency Resolution

Dependencies Resolved

================================================================================ Package Arch Version Repository Size

Installing: grub2 x86_64 1:2.06-14.amzn2.0.2 amzn2-core 46 k replacing grub2.x86_64 1:2.06-14.amzn2.0.1 grub2-pc x86_64 1:2.06-14.amzn2.0.2 amzn2-core 46 k replacing grub2.x86_64 1:2.06-14.amzn2.0.1 grub2-tools x86_64 1:2.06-14.amzn2.0.2 amzn2-core 2.0 M replacing grub2-tools.x86_64 1:2.06-14.amzn2.0.1 grub2-tools-efi x86_64 1:2.06-14.amzn2.0.2 amzn2-core 560 k replacing grub2-tools.x86_64 1:2.06-14.amzn2.0.1 grub2-tools-extra x86_64 1:2.06-14.amzn2.0.2 amzn2-core 1.0 M replacing grub2-tools.x86_64 1:2.06-14.amzn2.0.1 grub2-tools-minimal x86_64 1:2.06-14.amzn2.0.2 amzn2-core 625 k replacing grub2-tools.x86_64 1:2.06-14.amzn2.0.1 Updating: amazon-ssm-agent x86_64 3.2.1705.0-1.amzn2 amzn2-core 24 M bind-export-libs x86_64 32:9.11.4-26.P2.amzn2.13.5 amzn2-core 1.1 M bind-libs x86_64 32:9.11.4-26.P2.amzn2.13.5 amzn2-core 159 k bind-libs-lite x86_64 32:9.11.4-26.P2.amzn2.13.5 amzn2-core 1.1 M bind-license noarch 32:9.11.4-26.P2.amzn2.13.5 amzn2-core 92 k bind-utils x86_64 32:9.11.4-26.P2.amzn2.13.5 amzn2-core 261 k ca-certificates noarch 2023.2.62-1.amzn2.0.1 amzn2-core 435 k curl x86_64 8.3.0-1.amzn2.0.4 amzn2-core 377 k grub2-common noarch 1:2.06-14.amzn2.0.2 amzn2-core 1.8 M grub2-efi-x64-ec2 x86_64 1:2.06-14.amzn2.0.2 amzn2-core 287 k grub2-pc-modules noarch 1:2.06-14.amzn2.0.2 amzn2-core 943 k kernel-tools x86_64 4.14.327-246.539.amzn2 amzn2-core 161 k libcurl x86_64 8.3.0-1.amzn2.0.4 amzn2-core 352 k libjpeg-turbo x86_64 2.0.90-2.amzn2.0.6 amzn2-core 171 k libnghttp2 x86_64 1.41.0-1.amzn2.0.4 amzn2-core 73 k libssh2 x86_64 1.4.3-12.amzn2.2.6 amzn2-core 136 k libxml2 x86_64 2.9.1-6.amzn2.5.13 amzn2-core 662 k libxml2-python x86_64 2.9.1-6.amzn2.5.13 amzn2-core 247 k openssh x86_64 7.4p1-22.amzn2.0.5 amzn2-core 508 k openssh-clients x86_64 7.4p1-22.amzn2.0.5 amzn2-core 652 k openssh-server x86_64 7.4p1-22.amzn2.0.5 amzn2-core 458 k python x86_64 2.7.18-1.amzn2.0.7 amzn2-core 93 k python-devel x86_64 2.7.18-1.amzn2.0.7 amzn2-core 404 k python-libs x86_64 2.7.18-1.amzn2.0.7 amzn2-core 7.5 M python-pillow x86_64 2.0.0-23.gitd1c6db8.amzn2.0.8 amzn2-core 444 k python3 x86_64 3.7.16-1.amzn2.0.4 amzn2-core 72 k python3-libs x86_64 3.7.16-1.amzn2.0.4 amzn2-core 9.8 M vim-common x86_64 2:9.0.1882-1.amzn2.0.3 amzn2-core 8.0 M vim-data noarch 2:9.0.1882-1.amzn2.0.3 amzn2-core 82 k vim-enhanced x86_64 2:9.0.1882-1.amzn2.0.3 amzn2-core 1.6 M vim-filesystem noarch 2:9.0.1882-1.amzn2.0.3 amzn2-core 77 k vim-minimal x86_64 2:9.0.1882-1.amzn2.0.3 amzn2-core 750 k xxd x86_64 2:9.0.1882-1.amzn2.0.3 amzn2-core 93 k yum noarch 3.4.3-158.amzn2.0.7 amzn2-core 1.2 M

Transaction Summary

Install 6 Packages Upgrade 34 Packages

Total download size: 68 M Downloading packages: Delta RPMs disabled because /usr/bin/applydeltarpm not installed.

Total 84 MB/s | 68 MB 00:00 Running transaction check Running transaction test Transaction test succeeded Running transaction Updating : 1:grub2-common-2.06-14.amzn2.0.2.noarch 1/78 Updating : libxml2-2.9.1-6.amzn2.5.13.x86_64 2/78 Updating : python-libs-2.7.18-1.amzn2.0.7.x86_64 3/78 Updating : python-2.7.18-1.amzn2.0.7.x86_64 4/78 Installing : 1:grub2-tools-minimal-2.06-14.amzn2.0.2.x86_64 5/78 Installing : 1:grub2-tools-2.06-14.amzn2.0.2.x86_64 6/78 Updating : openssh-7.4p1-22.amzn2.0.5.x86_64 7/78 Updating : 32:bind-license-9.11.4-26.P2.amzn2.13.5.noarch 8/78 Updating : 32:bind-libs-lite-9.11.4-26.P2.amzn2.13.5.x86_64 9/78 Updating : libnghttp2-1.41.0-1.amzn2.0.4.x86_64 10/78 Updating : 2:vim-data-9.0.1882-1.amzn2.0.3.noarch 11/78 Updating : libssh2-1.4.3-12.amzn2.2.6.x86_64 12/78 Updating : libcurl-8.3.0-1.amzn2.0.4.x86_64 13/78 Updating : 32:bind-libs-9.11.4-26.P2.amzn2.13.5.x86_64 14/78 Updating : 1:grub2-pc-modules-2.06-14.amzn2.0.2.noarch 15/78 Installing : 1:grub2-pc-2.06-14.amzn2.0.2.x86_64 16/78 Updating : python3-3.7.16-1.amzn2.0.4.x86_64 17/78 Updating : python3-libs-3.7.16-1.amzn2.0.4.x86_64 18/78 Updating : 2:vim-filesystem-9.0.1882-1.amzn2.0.3.noarch 19/78 Updating : 2:xxd-9.0.1882-1.amzn2.0.3.x86_64 20/78 Updating : 2:vim-common-9.0.1882-1.amzn2.0.3.x86_64 21/78 Updating : libjpeg-turbo-2.0.90-2.amzn2.0.6.x86_64 22/78 Updating : python-pillow-2.0.0-23.gitd1c6db8.amzn2.0.8.x86_64 23/78 Updating : 2:vim-enhanced-9.0.1882-1.amzn2.0.3.x86_64 24/78 Installing : 1:grub2-2.06-14.amzn2.0.2.x86_64 25/78 Updating : 32:bind-utils-9.11.4-26.P2.amzn2.13.5.x86_64 26/78 Updating : curl-8.3.0-1.amzn2.0.4.x86_64 27/78 Updating : 2:vim-minimal-9.0.1882-1.amzn2.0.3.x86_64 28/78 Updating : openssh-server-7.4p1-22.amzn2.0.5.x86_64 29/78 Updating : openssh-clients-7.4p1-22.amzn2.0.5.x86_64 30/78 Updating : 1:grub2-efi-x64-ec2-2.06-14.amzn2.0.2.x86_64 31/78 Installing : 1:grub2-tools-extra-2.06-14.amzn2.0.2.x86_64 32/78 Updating : yum-3.4.3-158.amzn2.0.7.noarch 33/78 Updating : libxml2-python-2.9.1-6.amzn2.5.13.x86_64 34/78 Updating : python-devel-2.7.18-1.amzn2.0.7.x86_64 35/78 Installing : 1:grub2-tools-efi-2.06-14.amzn2.0.2.x86_64 36/78 Updating : kernel-tools-4.14.327-246.539.amzn2.x86_64 37/78 Updating : 32:bind-export-libs-9.11.4-26.P2.amzn2.13.5.x86_64 38/78 Updating : amazon-ssm-agent-3.2.1705.0-1.amzn2.x86_64 39/78 Updating : ca-certificates-2023.2.62-1.amzn2.0.1.noarch 40/78 Cleanup : 1:grub2-efi-x64-ec2-2.06-14.amzn2.0.1.x86_64 41/78 Cleanup : python-devel-2.7.18-1.amzn2.0.6.x86_64 42/78 Cleanup : python-pillow-2.0.0-23.gitd1c6db8.amzn2.0.7.x86_64 43/78 Cleanup : 1:grub2-2.06-14.amzn2.0.1.x86_64 44/78 Cleanup : 1:grub2-pc-2.06-14.amzn2.0.1.x86_64 45/78 Cleanup : 1:grub2-pc-modules-2.06-14.amzn2.0.1.noarch 46/78 Cleanup : yum-3.4.3-158.amzn2.0.6.noarch 47/78 Cleanup : amazon-ssm-agent-3.1.1732.0-1.amzn2.x86_64 48/78 Cleanup : ca-certificates-2021.2.50-72.amzn2.0.7.noarch 49/78 Cleanup : 32:bind-utils-9.11.4-26.P2.amzn2.13.1.x86_64 50/78 Cleanup : 32:bind-libs-9.11.4-26.P2.amzn2.13.1.x86_64 51/78 Cleanup : libxml2-python-2.9.1-6.amzn2.5.8.x86_64 52/78 Cleanup : curl-8.0.1-1.amzn2.0.1.x86_64 53/78 Cleanup : libcurl-8.0.1-1.amzn2.0.1.x86_64 54/78 Cleanup : 32:bind-libs-lite-9.11.4-26.P2.amzn2.13.1.x86_64 55/78 Cleanup : python-2.7.18-1.amzn2.0.6.x86_64 56/78 Cleanup : 1:grub2-tools-minimal-2.06-14.amzn2.0.1.x86_64 57/78 Cleanup : 1:grub2-tools-2.06-14.amzn2.0.1.x86_64 58/78 Cleanup : python3-3.7.16-1.amzn2.0.2.x86_64 59/78 Cleanup : python3-libs-3.7.16-1.amzn2.0.2.x86_64 60/78 Cleanup : openssh-clients-7.4p1-22.amzn2.0.2.x86_64 61/78 Cleanup : 2:vim-minimal-9.0.1592-1.amzn2.0.1.x86_64 62/78 Cleanup : openssh-server-7.4p1-22.amzn2.0.2.x86_64 63/78 Cleanup : 2:vim-enhanced-9.0.1592-1.amzn2.0.1.x86_64 64/78 Cleanup : 2:vim-common-9.0.1592-1.amzn2.0.1.x86_64 65/78 Cleanup : 2:vim-data-9.0.1592-1.amzn2.0.1.noarch 66/78 Cleanup : 2:vim-filesystem-9.0.1592-1.amzn2.0.1.noarch 67/78 Cleanup : 1:grub2-common-2.06-14.amzn2.0.1.noarch 68/78 Cleanup : 32:bind-license-9.11.4-26.P2.amzn2.13.1.noarch 69/78 Cleanup : 2:xxd-9.0.1592-1.amzn2.0.1.x86_64 70/78 Cleanup : openssh-7.4p1-22.amzn2.0.2.x86_64 71/78 Cleanup : python-libs-2.7.18-1.amzn2.0.6.x86_64 72/78 Cleanup : libxml2-2.9.1-6.amzn2.5.8.x86_64 73/78 Cleanup : libnghttp2-1.41.0-1.amzn2.x86_64 74/78 Cleanup : libssh2-1.4.3-12.amzn2.2.4.x86_64 75/78 Cleanup : libjpeg-turbo-2.0.90-2.amzn2.0.1.x86_64 76/78 Cleanup : kernel-tools-4.14.320-242.534.amzn2.x86_64 77/78 Cleanup : 32:bind-export-libs-9.11.4-26.P2.amzn2.13.1.x86_64 78/78 Verifying : libjpeg-turbo-2.0.90-2.amzn2.0.6.x86_64 1/78 Verifying : libssh2-1.4.3-12.amzn2.2.6.x86_64 2/78 Verifying : 1:grub2-tools-minimal-2.06-14.amzn2.0.2.x86_64 3/78 Verifying : ca-certificates-2023.2.62-1.amzn2.0.1.noarch 4/78 Verifying : 1:grub2-tools-extra-2.06-14.amzn2.0.2.x86_64 5/78 Verifying : 1:grub2-tools-efi-2.06-14.amzn2.0.2.x86_64 6/78 Verifying : python3-libs-3.7.16-1.amzn2.0.4.x86_64 7/78 Verifying : 2:xxd-9.0.1882-1.amzn2.0.3.x86_64 8/78 Verifying : python3-3.7.16-1.amzn2.0.4.x86_64 9/78 Verifying : libcurl-8.3.0-1.amzn2.0.4.x86_64 10/78 Verifying : python-pillow-2.0.0-23.gitd1c6db8.amzn2.0.8.x86_64 11/78 Verifying : 2:vim-data-9.0.1882-1.amzn2.0.3.noarch 12/78 Verifying : 1:grub2-common-2.06-14.amzn2.0.2.noarch 13/78 Verifying : 2:vim-enhanced-9.0.1882-1.amzn2.0.3.x86_64 14/78 Verifying : libnghttp2-1.41.0-1.amzn2.0.4.x86_64 15/78 Verifying : openssh-server-7.4p1-22.amzn2.0.5.x86_64 16/78 Verifying : amazon-ssm-agent-3.2.1705.0-1.amzn2.x86_64 17/78 Verifying : 32:bind-export-libs-9.11.4-26.P2.amzn2.13.5.x86_64 18/78 Verifying : python-2.7.18-1.amzn2.0.7.x86_64 19/78 Verifying : 32:bind-license-9.11.4-26.P2.amzn2.13.5.noarch 20/78 Verifying : 2:vim-common-9.0.1882-1.amzn2.0.3.x86_64 21/78 Verifying : python-libs-2.7.18-1.amzn2.0.7.x86_64 22/78 Verifying : openssh-7.4p1-22.amzn2.0.5.x86_64 23/78 Verifying : yum-3.4.3-158.amzn2.0.7.noarch 24/78 Verifying : curl-8.3.0-1.amzn2.0.4.x86_64 25/78 Verifying : libxml2-python-2.9.1-6.amzn2.5.13.x86_64 26/78 Verifying : 2:vim-minimal-9.0.1882-1.amzn2.0.3.x86_64 27/78 Verifying : kernel-tools-4.14.327-246.539.amzn2.x86_64 28/78 Verifying : 1:grub2-pc-2.06-14.amzn2.0.2.x86_64 29/78 Verifying : 32:bind-libs-lite-9.11.4-26.P2.amzn2.13.5.x86_64 30/78 Verifying : python-devel-2.7.18-1.amzn2.0.7.x86_64 31/78 Verifying : openssh-clients-7.4p1-22.amzn2.0.5.x86_64 32/78 Verifying : 1:grub2-efi-x64-ec2-2.06-14.amzn2.0.2.x86_64 33/78 Verifying : 32:bind-libs-9.11.4-26.P2.amzn2.13.5.x86_64 34/78 Verifying : 1:grub2-pc-modules-2.06-14.amzn2.0.2.noarch 35/78 Verifying : 2:vim-filesystem-9.0.1882-1.amzn2.0.3.noarch 36/78 Verifying : 1:grub2-tools-2.06-14.amzn2.0.2.x86_64 37/78 Verifying : libxml2-2.9.1-6.amzn2.5.13.x86_64 38/78 Verifying : 1:grub2-2.06-14.amzn2.0.2.x86_64 39/78 Verifying : 32:bind-utils-9.11.4-26.P2.amzn2.13.5.x86_64 40/78 Verifying : 32:bind-license-9.11.4-26.P2.amzn2.13.1.noarch 41/78 Verifying : 32:bind-libs-lite-9.11.4-26.P2.amzn2.13.1.x86_64 42/78 Verifying : python3-3.7.16-1.amzn2.0.2.x86_64 43/78 Verifying : 1:grub2-common-2.06-14.amzn2.0.1.noarch 44/78 Verifying : 2:vim-filesystem-9.0.1592-1.amzn2.0.1.noarch 45/78 Verifying : 1:grub2-pc-2.06-14.amzn2.0.1.x86_64 46/78 Verifying : openssh-clients-7.4p1-22.amzn2.0.2.x86_64 47/78 Verifying : 32:bind-utils-9.11.4-26.P2.amzn2.13.1.x86_64 48/78 Verifying : 32:bind-libs-9.11.4-26.P2.amzn2.13.1.x86_64 49/78 Verifying : python-pillow-2.0.0-23.gitd1c6db8.amzn2.0.7.x86_64 50/78 Verifying : 1:grub2-2.06-14.amzn2.0.1.x86_64 51/78 Verifying : libnghttp2-1.41.0-1.amzn2.x86_64 52/78 Verifying : 1:grub2-tools-2.06-14.amzn2.0.1.x86_64 53/78 Verifying : openssh-server-7.4p1-22.amzn2.0.2.x86_64 54/78 Verifying : libjpeg-turbo-2.0.90-2.amzn2.0.1.x86_64 55/78 Verifying : python-2.7.18-1.amzn2.0.6.x86_64 56/78 Verifying : 2:vim-minimal-9.0.1592-1.amzn2.0.1.x86_64 57/78 Verifying : ca-certificates-2021.2.50-72.amzn2.0.7.noarch 58/78 Verifying : python-devel-2.7.18-1.amzn2.0.6.x86_64 59/78 Verifying : python-libs-2.7.18-1.amzn2.0.6.x86_64 60/78 Verifying : libxml2-python-2.9.1-6.amzn2.5.8.x86_64 61/78 Verifying : amazon-ssm-agent-3.1.1732.0-1.amzn2.x86_64 62/78 Verifying : 2:xxd-9.0.1592-1.amzn2.0.1.x86_64 63/78 Verifying : yum-3.4.3-158.amzn2.0.6.noarch 64/78 Verifying : 2:vim-data-9.0.1592-1.amzn2.0.1.noarch 65/78 Verifying : libcurl-8.0.1-1.amzn2.0.1.x86_64 66/78 Verifying : 2:vim-common-9.0.1592-1.amzn2.0.1.x86_64 67/78 Verifying : 2:vim-enhanced-9.0.1592-1.amzn2.0.1.x86_64 68/78 Verifying : libssh2-1.4.3-12.amzn2.2.4.x86_64 69/78 Verifying : curl-8.0.1-1.amzn2.0.1.x86_64 70/78 Verifying : python3-libs-3.7.16-1.amzn2.0.2.x86_64 71/78 Verifying : kernel-tools-4.14.320-242.534.amzn2.x86_64 72/78 Verifying : 1:grub2-efi-x64-ec2-2.06-14.amzn2.0.1.x86_64 73/78 Verifying : 32:bind-export-libs-9.11.4-26.P2.amzn2.13.1.x86_64 74/78 Verifying : openssh-7.4p1-22.amzn2.0.2.x86_64 75/78 Verifying : 1:grub2-tools-minimal-2.06-14.amzn2.0.1.x86_64 76/78 Verifying : libxml2-2.9.1-6.amzn2.5.8.x86_64 77/78 Verifying : 1:grub2-pc-modules-2.06-14.amzn2.0.1.noarch 78/78

Installed: grub2.x86_64 1:2.06-14.amzn2.0.2 grub2-pc.x86_64 1:2.06-14.amzn2.0.2 grub2-tools.x86_64 1:2.06-14.amzn2.0.2 grub2-tools-efi.x86_64 1:2.06-14.amzn2.0.2 grub2-tools-extra.x86_64 1:2.06-14.amzn2.0.2 grub2-tools-minimal.x86_64 1:2.06-14.amzn2.0.2

Updated: amazon-ssm-agent.x86_64 0:3.2.1705.0-1.amzn2 bind-export-libs.x86_64 32:9.11.4-26.P2.amzn2.13.5 bind-libs.x86_64 32:9.11.4-26.P2.amzn2.13.5 bind-libs-lite.x86_64 32:9.11.4-26.P2.amzn2.13.5 bind-license.noarch 32:9.11.4-26.P2.amzn2.13.5 bind-utils.x86_64 32:9.11.4-26.P2.amzn2.13.5 ca-certificates.noarch 0:2023.2.62-1.amzn2.0.1 curl.x86_64 0:8.3.0-1.amzn2.0.4 grub2-common.noarch 1:2.06-14.amzn2.0.2 grub2-efi-x64-ec2.x86_64 1:2.06-14.amzn2.0.2 grub2-pc-modules.noarch 1:2.06-14.amzn2.0.2 kernel-tools.x86_64 0:4.14.327-246.539.amzn2 libcurl.x86_64 0:8.3.0-1.amzn2.0.4 libjpeg-turbo.x86_64 0:2.0.90-2.amzn2.0.6 libnghttp2.x86_64 0:1.41.0-1.amzn2.0.4 libssh2.x86_64 0:1.4.3-12.amzn2.2.6 libxml2.x86_64 0:2.9.1-6.amzn2.5.13 libxml2-python.x86_64 0:2.9.1-6.amzn2.5.13 openssh.x86_64 0:7.4p1-22.amzn2.0.5 openssh-clients.x86_64 0:7.4p1-22.amzn2.0.5 openssh-server.x86_64 0:7.4p1-22.amzn2.0.5 python.x86_64 0:2.7.18-1.amzn2.0.7 python-devel.x86_64 0:2.7.18-1.amzn2.0.7 python-libs.x86_64 0:2.7.18-1.amzn2.0.7 python-pillow.x86_64 0:2.0.0-23.gitd1c6db8.amzn2.0.8 python3.x86_64 0:3.7.16-1.amzn2.0.4 python3-libs.x86_64 0:3.7.16-1.amzn2.0.4 vim-common.x86_64 2:9.0.1882-1.amzn2.0.3 vim-data.noarch 2:9.0.1882-1.amzn2.0.3 vim-enhanced.x86_64 2:9.0.1882-1.amzn2.0.3 vim-filesystem.noarch 2:9.0.1882-1.amzn2.0.3 vim-minimal.x86_64 2:9.0.1882-1.amzn2.0.3 xxd.x86_64 2:9.0.1882-1.amzn2.0.3 yum.noarch 0:3.4.3-158.amzn2.0.7

Replaced: grub2.x86_64 1:2.06-14.amzn2.0.1 grub2-tools.x86_64 1:2.06-14.amzn2.0.1

Complete! Cloud-init v. 19.3-46.amzn2.0.1 running 'modules:final' at Wed, 15 Nov 2023 12:34:05 +0000. Up 37.17 seconds.

michaelwittig commented 7 months ago

Hm. The logs indicate that your UserData was empty. Keep in mind that the script inside UserData is only executed once when the EC2 instance first starts up. You might need to delete the stack and create a new one too see what you are looking for.

Q-Nimbus commented 7 months ago

Ah ok I hadn't realised this ill try that again in the morning