Amazon EC2 User Data Tutorial

Поделиться
HTML-код
  • Опубликовано: 18 янв 2025

Комментарии • 45

  • @StephaneMaarek
    @StephaneMaarek  5 лет назад

    If you want to learn more, check out my AWS Certified Solutions Architect Associate 2020 course : links.datacumulus.com/aws-certified-sa-associate-coupon or my AWS Certified Developer Associate 2020 course : links.datacumulus.com/aws-certified-dev-coupon

    • @sandeepsahu3328
      @sandeepsahu3328 2 года назад

      hi sir i have the scripts saved in s3 bucket, the original and modified scripts are present Basically the script will install the groundrunner and create some folder once the ec2 instance is terminated , as on the back Auto scaling is configured , after the termination the scripts are not getting executed automatically, i have to manually run it ,
      whenever the new instance is created by asg these scripts are supposed to be run from user data itself which is not getting executed , can u please help regarding this

  • @tomyanth
    @tomyanth Год назад

    1:58 Select the advance details
    2:11 Copy your user data text to the box to ask ec2 to initialize the instance for you

  • @Quantum-Thoughts-2024
    @Quantum-Thoughts-2024 4 месяца назад

    the following line 2:10
    #!/bin/bash
    is very important.
    I wasted a lot of time just because i did not use this line and the user data did not run.

  • @mcclarymccony839
    @mcclarymccony839 2 года назад +3

    how and where do i get the script ?

  • @jayaprasadpk5920
    @jayaprasadpk5920 2 года назад +3

    how did he got the coding script??

  • @dharsann6515
    @dharsann6515 6 месяцев назад

    The instance should be configured in the public subnet right? And if the commands are deprecated will I be able to see the output.

  • @sandeepsahu3328
    @sandeepsahu3328 2 года назад

    User data is not executing after the instance reboot..may i know what can be the issue

  • @mandarkulkarni7675
    @mandarkulkarni7675 2 года назад

    What options do I have if my instance is in a private subnet (with no internet access) ? Does AMI come with pre installed softwares ?

  • @stephonhenry-rerrie3997
    @stephonhenry-rerrie3997 2 года назад

    can you run export commands in there as well? i want to have a set of environment variables created at launch for my api keys

  • @RCAReaction
    @RCAReaction 2 года назад

    How do you get information about those user data

  • @andresgaitanherrera3972
    @andresgaitanherrera3972 3 года назад

    Hi, how can I run npm commands with user data? example yarn start (Not working)
    #!/bin/bash
    cd /a/folder/name &&
    mkdir createfolder &&
    yarn start:myapi:enviroment

  • @linkedomata3343
    @linkedomata3343 4 года назад

    Hi Stephane , Is it possible to start application by executing powershell script from User Data section for Windows EC2 ? , For Example start-process notepad.exe . Will this work ?

  • @harshalchoudhari3767
    @harshalchoudhari3767 2 года назад

    Can we mount efs using user data

  • @IIrandhandleII
    @IIrandhandleII 3 года назад

    I think userdata is not instantiated at boot but instance initialization rather.

  • @nasiralimurad4677
    @nasiralimurad4677 Год назад

    where doi get this script

  • @ttillman01
    @ttillman01 3 года назад

    Can you bootstrap an install of like Java 11 and Tomcat 9.0 in your EC2 instance? I kind of need a "real world" example. Thank you.

    • @danielpanario9372
      @danielpanario9372 3 года назад

      yes, you can code that within cloud formation by using commands. find example below.
      02-install_tools:
      command: C:/cfn/files/tools/npp.7.5.6.installer.x64.exe /S
      waitAfterCompletion: 5
      03-InitializeDisks:
      command: powershell C:/cfn/files/Disks/InitializeDisks.ps1
      waitAfterCompletion: 5

  • @swathivilasini22
    @swathivilasini22 4 года назад +2

    So where so I get that user data program from???????

    • @henriikomebonny8438
      @henriikomebonny8438 3 года назад

      This is the same question i am having. please can someone help us. Thanks

    • @saikrishna2918
      @saikrishna2918 3 года назад +10

      #!/bin/bash
      #install httpd(Linux2 version)
      yum update -y
      yum install -y httpd.x86_64
      systemctl start httpd.service
      systemctl enable httpd.service
      echo "Hello world from $(hostname -f)" > /var/www/html/index.html

    • @abdul6423
      @abdul6423 2 года назад

      @@ReviewswBryz any luck?

    • @abdul6423
      @abdul6423 2 года назад

      any luck?????

    • @abdul6423
      @abdul6423 2 года назад

      @@henriikomebonny8438 any luck?

  • @armandopadilla7932
    @armandopadilla7932 4 года назад

    I already created the ec2 instance and I followed each step howeber the server seems no reached by the browser... What is wrong? Any clue?

    • @arunjohn2995
      @arunjohn2995 4 года назад +1

      same with me did u get this sorted?

    • @arunjohn2995
      @arunjohn2995 4 года назад

      Actually I solved it, we need to open https also in the sec group not just HTTP

    • @edmoremusvibe8480
      @edmoremusvibe8480 4 года назад +2

      Thanks a lot

    • @saikrishna2918
      @saikrishna2918 3 года назад

      try instead of https on browser

    • @RowanGontier
      @RowanGontier 2 года назад

      @@edmoremusvibe8480 In the browser, make sure http is the prefix. I also found that by doing SSH into the instance, and going to folder: /var/www/html/index.html, you can verify that the content is correct.

  • @vaibhav432
    @vaibhav432 Год назад

    useful

  • @mklee786
    @mklee786 4 года назад

    Hi, Can you just temme a way to install "boot2docker" iso via userdata. Since, I would lyk to setup "boot2docker" Iso in my AWS EC2 instance.

  • @denisariollekounasedeu6285
    @denisariollekounasedeu6285 3 месяца назад

    No body sees how you have the scripts