2 Respuestas
- Más nuevo
- Más votos
- Más comentarios
1
I think you need to do sudo yum install mysql -y
so that the yum
utility doesn't try and prompt the user.
0
removed "sudo" from the script as User Data scripts are run as root user as per this answer:
https://stackoverflow.com/questions/67740072/user-data-not-running-command-in-mysql
https://stackoverflow.com/questions/41603517/installing-mysql-client-on-ec2-via-cloudformation
also noticed that ec2 add #!/bin/bash
on top of the script even if it already exists
my final script :
yum -y update
# adding MYSQL client to connect to RDS(MYSQL) instance.
yum -y install mysql
respondido hace 2 años
Contenido relevante
- OFICIAL DE AWSActualizada hace un año
- ¿Cómo puedo hacer una llamada al SDK de AWS desde un proyecto de CDK mediante la interfaz AWSdkCall?OFICIAL DE AWSActualizada hace 10 meses
- OFICIAL DE AWSActualizada hace un año