Gerardo Crot Rojas
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # Resumen levantar instancia AWS EC2 ### IIC2173 - 2022-2 Las instancias son los servidores donde se hostearan nuestras páginas, son computadores por si mismo que deben ser pedidos y configurados. Por lo mismo, hay muchos tipos dependiendo de las necesidades de cada cliente y se pueden perder si es su primera vez. Por lo mismo, este resumen está hecho para levantar su primera instancia asegurando una correcta configuración para aprovechar el *free tier* (Capa gratuita) que provee AWS dentro del primer año de uso de la cuenta. --- ## 1. Crear una cuenta en AWS El primer paso es crear una cuenta en AWS. Para esto pueden hacerlo desde la misma [página de AWS](https://aws.amazon.com/es/console/) iniciando sesión en la consola apretando en el botón naranjo de la esquina superior derecha y siguiendo los pasos para crear un usuario raíz. ![Página principal AWS](https://i.imgur.com/xS0ihFi.jpg) ![Inicio de sesión en AWS](https://i.imgur.com/YvJkFiO.jpg) *Nota: Deberán ingresar una tarjeta de crédito, les recomendamos usar la tarjeta MACH por ser prepago.* ## 2. Conociendo la consola para lanzar una instancia EC2 Una vez creado su usuario, pueden acceder a la consola de AWS. El dashboard principal tiene una barra de búsqueda, un listado de lo visitado recientemente, y arriba a la derecha (a la izquierda de su usuario) tienen la opción de cambiar de región. Siempre asegurence de usar una misma región. ![Consola AWS](https://i.imgur.com/TGkgmHT.jpg) Para ver sus instancias EC2, en la barra de búsqueda deben poner EC2 y hacer click. Les enviará a una página con un dashboard de sus instancias. ![Buscar EC2](https://i.imgur.com/R0aSE6h.jpg) ![Dashboard EC2](https://i.imgur.com/w802S5v.jpg) Si ven la barra lateral izquierda debería aparecerles una sección de **instancias**, y si apretan en el botón instancias (no en la pestaña), verán sus instancias en ejecución de esa región. ![Listado de instancias EC2](https://i.imgur.com/vDajME4.jpg) Si seleccinan una instancia y luego hacen click en el estado de la instancia (la pestaña), podrán configurarla para terminarla, detenerla o iniciarla si estaba detenida. ![Estado Instancia](https://i.imgur.com/fLlQYlW.jpg) ## 3. Lanzar una instancia EC2 Para lanzar una instancia deben apretar el botón naranja en la esquina superior derecha y seguir los pasos que les dice. * Lo primero es agregar un nombre con el que puedan distinguir su instancia en el listado de EC2. ![Lanzar instancia - nombre](https://i.imgur.com/DiDGEai.jpg) * Después deben elegir el sistema operativo, donde les recomendamos Ubuntu con la version 18 o 20 siempre y cuando al lado diga que es válido para su uso en la capa gratuita de AWS. ![Lanzar instancia - SSOO](https://i.imgur.com/Knlrl11.jpg) * El tipo de instancia debe ser t2.micro (apta para la capa gratuita). ![Lanzar instancia - tipo de instancia](https://i.imgur.com/3XY4CR9.jpg) * Para su instancia deben crear un par de llaves para conectarse mediante `ssh` o `putty` (para windows este último), ponganle un nombre y se les descargará un archivo que deben guardar y nunca borrar (a menos que terminen su instancia). ![Lanzar instancia - crear llave](https://i.imgur.com/nIj7Qry.jpg) ![Lanzar instancia - crear llave 2](https://i.imgur.com/zZry09y.jpg) * La configuración de red les permitirá conectarse por ssh y poder ver sus páginas en el navegador mediante HTTP y HTTPs. Por lo mismo, deben clikear todas. ![Lanzar instancia - conexiones](https://i.imgur.com/Zl3Cmyy.jpg) * Finalmente el almacenamiento tienen hasta 30 GB en la capa gratuita, pueden usar los 30 o menos. ![Lanzar instancia - almacenamiento](https://i.imgur.com/paq0PaL.jpg) Ya con esto pueden ver el resumen de su instancia y debería de salir todo lo que pusieron y si es apta para la capa gratuita. Si está todo en orden, lancen la instancia con el botón naranjo. Verán sus instancias en la pestaña con el listado de instancias en EC2. ![Listado de instancias 2](https://i.imgur.com/6vwwMsM.jpg) ## 4. Conectarse mediante SSH Para conectarse a su instancia deben usar `Putty` en Windows nativo o (y recomendablemente) `SSH` en otro sistema operativo (incluye distros de Linux, MacOS, WSL2 en Windows, etc), en esta guía veremos `SSH`. Para esto deben ubicar su archivo `.pem` que descargaron recién en la terminal de su pc y deben seguir los siguientes pasos: * En su listado de instancias EC2 seleccionen la que acaban de crear, apreten en la pestaña de acciones arriba a la derecha, y hagan click en 'conectar'. ![EC2 - connect label](https://i.imgur.com/Zs8L2XX.jpg) * Luego deben seguir los pasos que indica la página, cambiando los permisos de su archivo `.pem`, y luego conectandose mediante ssh con el comando de más abajo, debería verse algo como esto: <center><tt>ssh -i "<pem_file>" ubuntu@<ec2_instance_dns></tt></center> Si se logran conectar en su consola deberían ver un mensaje de inicio como este: ![Console EC2 connection](https://i.imgur.com/kTzdknu.jpg) ¡Felicidades! Ya se conectaron a su instancia y pueden empezar a trabajar en ella.

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully