How to Deploy an S3 bucket and Upload Data

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

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

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

    Great video, thanks so much! Really learning lots from your series. You should have more subs for sure!

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

    Thank you for your videos, they are amazing

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

    Thanks for your work!

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

    Great video, thanks you

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

    Very glad to see that you reply every followers.
    Sir, I uploaded data(public directory) on s3 bucket but in my nodejs app I am not able to access images inside it.
    please sir reply me too.

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

      When you say that you can't access images in your bucket, what do you mean?
      Do you mean that if you go into the console and click the url of the image that you get an 'Access denied' page? If so, that is because the image is not public, even though the bucket is. You can select the file in S3 and then 'make public' if you really want it to be public.
      If you don't want everyone to be able to see the images then you could also create an API which gets it for you. You would create the API and take the bucket name and file name as parameters. You'd then create a signed URL for the image and return that. I have a video that uses a 'getSignedUrl' so you could use that bit of the code. ruclips.net/video/rIQM30rz_0c/видео.html

  • @CameronL
    @CameronL 5 лет назад +2

    Can you make a video on using lambda and Google authentication for access to an S3 static website?

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

      Hi Cameron, are you talking about using oAuth to log a user in?

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

      Complete Coding Yes! I have been trying to find a good tutorial on using Google's oauth and lambda to on a click of a menu button to determine if a user should be authorized to see a page. So far I have not found any videos but some hard to follow write ups

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

      Hey @@CameronL,
      From my experience with oAuth, it is more about the setup on Google than your code. You should be able to complete the 'server side' logic using a lambda though.
      Check out this course, www.udemy.com/node-with-react-fullstack-web-development/ which is where I learnt to set up oAuth. You'll just need to set it up with Lambdas.

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

    Thanks for good video!!

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

    thanks for this! also whats with the towels?

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

      Glad you enjoyed it.
      Very budget sound dampening panels. That room was tiny and super echoy.
      I've upgraded with the new room so it looks far nicer and works better too

  • @huythang7468
    @huythang7468 3 года назад +1

    I have an error. This is 'Invalid custom.s3Sync'. how i can resolve this issue

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

      That sounds like the config in the s3sync section of the serverless.yml file isn't right. Check that it has all the correct fields and references a real s3 bucket

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

    I did not add BucketName property to DemoBuckedUpload so bucket name is formed dynamically. Is there a way to pass that name to s3Sync's bucketName?
    Great video btw, thanks a lot.

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

      You can define the s3 bucket in the resources section of the serverless file and then tell s3sync to upload to that bucket

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

    yml file:
    plugins:
    - serverless-s3-sync
    custom:
    s3Sync:
    - bucketName: dummybucket-7676
    localDIR: data
    -----------------------------
    log:
    S3 Sync: Syncing directories and S3 prefixes...
    Exception -----------------------------------------------
    'Invalid custom.s3Sync'
    For debugging logs, run again after setting the "SLS_DEBUG=*" environment variable.

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

    Plz upload videos about setting eslint for sls, vs code extension for sls!!

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

      As all of the code is in javascript, your existing eslint settings should be the same.
      I don't actually use any vs code extensions specifically for serverless. Having had a quick look there are a few. Some add smarter autocomplete, others make accessing logs easier but I've never used any of them.

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

      @@CompleteCoding I see. Thx for the answer!

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

      If you try any of them out and like them, please let me know :)

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

      @@CompleteCoding I use this extension.
      bit.ly/2Y8fgk6
      Its autocompletion is so helpful!
      And I will set eslint for my serverless project later. If I will good eslint configs for serverless then I will share them.

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

      that looks like a nice plugin. I'll try it out.

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

    not uploaded

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

    Did the same steps as in the video but my s3 bucket is created automatically of the name (projectname-dev-serverlessdeploymentbucket). when searched for it , it was because of using npm serverless . what can i do to get my bucketname ??

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

      You can run the command
      sls info -v
      and you should see the bucket output and the name of the bucket

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

    Although I have executed npm install .. command I still get warning as plugin and custom are unrecognized and uploadme file is not uploaded in s3 bucket

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

      can you check in your node_modules folder to see if there is a 'serverless-s3-sync' folder

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

      Same for me I think, I got -
      Serverless: Configuration warning:
      Serverless: at 'provider': unrecognized property 'plugins'
      Serverless: at 'provider': unrecognized property 'custom'
      but I got it working by making sure the indentation in the serverless.yml is exactly the same as the examples provided.

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

      @@graemeatg336 plugins and custom should be on the very left of the yml, not indented inside the provider.