how can I place a key in a AWS RHEL instacne with "user data"
is it possible to create a "here" script and have it execute on AWS instance "user data"?
mkdir -p /home/ec2-user/.ssh
cat <<EOF > /home/ec2-user/.ssh/docker
-----BEGIN RSA PRIVATE KEY-----
-----END RSA PRIVATE KEY-----
I want to be able to pass a key to an instance upon boot, I have used just this above and it does not seem to do anything at all , I can not find any errors , how can I find out logging from this user data ?