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.
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
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
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.
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
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
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.
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.
@@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.
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 ??
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
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.
Great video, thanks so much! Really learning lots from your series. You should have more subs for sure!
Thanks! That means a lot.
Thank you for your videos, they are amazing
Thanks, I'm really glad you like them
Thanks for your work!
Glad you found it useful
Great video, thanks you
Glad you liked it!
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.
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
Can you make a video on using lambda and Google authentication for access to an S3 static website?
Hi Cameron, are you talking about using oAuth to log a user in?
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
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.
Thanks for good video!!
Glad you liked it!
thanks for this! also whats with the towels?
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
I have an error. This is 'Invalid custom.s3Sync'. how i can resolve this issue
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
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.
You can define the s3 bucket in the resources section of the serverless file and then tell s3sync to upload to that bucket
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.
localDir not localDIR
Plz upload videos about setting eslint for sls, vs code extension for sls!!
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.
@@CompleteCoding I see. Thx for the answer!
If you try any of them out and like them, please let me know :)
@@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.
that looks like a nice plugin. I'll try it out.
not uploaded
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 ??
You can run the command
sls info -v
and you should see the bucket output and the name of the bucket
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
can you check in your node_modules folder to see if there is a 'serverless-s3-sync' folder
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.
@@graemeatg336 plugins and custom should be on the very left of the yml, not indented inside the provider.