3. Does it runs everytime when configuring the data?

Be specific about what you ask in your questions sir. The user data scripts run automatically , only once during the first booting time of the EC2 instance.
Пожалуйста, войдите, чтобы спрашивать, отвечать, делиться, ставить лайки и голосовать.