.NET Core 2.0 - AWS Tutorial - Creating an S3 Bucket

  Рет қаралды 23,377

Daniel Donbavand

Daniel Donbavand

Күн бұрын

Пікірлер: 56
@manassesvitorino7834
@manassesvitorino7834 3 жыл бұрын
Thanks Daniel. Wonderful explanation.
@deepakparmar901
@deepakparmar901 4 жыл бұрын
Hello sir, I'm trying to do but i have some problem when i pass url in postman that time it's show me could not get any response. And where we have to add aws credentials in project for accessing.
@vivekgowda1576
@vivekgowda1576 3 жыл бұрын
I'm Getting this error Unable to get IAM security credentials from EC2 Instance Metadata Service.
@vivekgowda1576
@vivekgowda1576 3 жыл бұрын
How did you configure aws to visual studio ? how to it could create bucket without configure the AWS Please let me know
@CloudNet87
@CloudNet87 6 жыл бұрын
Thanks Daniel. That was awesome..
@AijazKhan
@AijazKhan 4 жыл бұрын
Hi Daniel, I followed your code exactly as is, but I get this error in my startup file. 'IServiceCollection' does not contain a definition for 'AddAWSService' and no accessible extension method 'AddAWSService' accepting a first argument of type 'IServiceCollection' could be found (are you missing a using directive or an assembly reference?' Could you please help me out? Thanks.
@sri_nainika
@sri_nainika 4 жыл бұрын
Thank you for the video Daniel with clear steps.and i have one doubt, How to fetch files details from the S3 buckets folders, I am facing "Provided Token is malformed or Otherwise Invalid"...Is this due security permissions? Please help
@LongPham-pp1sx
@LongPham-pp1sx 4 жыл бұрын
I want to deploy a sales shop designed with docnet core len aws with s3 package, can you show me?
@yawnsmusic8418
@yawnsmusic8418 5 жыл бұрын
Daniel when my program (your program) run the code line "if (await AmazonS3Util.DoesS3BucketExistAsync(client, bucketName) == false)", I get the following result "{ "status": 500, "message": "The operation was canceled." }" I verified the bucketName given as an argument does not exists in AWS S3. (I made the bucket manually in S3 and then deleted it) I think My AWS's S3 somehow prevents from creating bucket... But I am not sure, (I am new to S3 and relatively new to asp.net core). Or just bug? Any suggestions would be very helpful to me
@DanielDonbavand
@DanielDonbavand 5 жыл бұрын
Hey Yawn, so you have a github account you can push your code to? Will make it easier for me to see what's going on.
@DanielDonbavand
@DanielDonbavand 5 жыл бұрын
I also have a pluralsight course on Amazon s3 that goes into a look more detail that you might find useful app.pluralsight.com/library/courses/aws-dotnet-core-using-s3/table-of-contents
@yawnsmusic8418
@yawnsmusic8418 5 жыл бұрын
I uploaded the project in github.com/dewyone/aspnetcore-aws-s3-S3TestWebApi
@irisgroup
@irisgroup 5 жыл бұрын
Hey I have the same problem whats its reason ? ( I only couldnt understand how it access the Users Credentials file?)
@DanielDonbavand
@DanielDonbavand 5 жыл бұрын
Hi @@irisgroup my best guess would be your credentials are set correctly. If you put a try catch around that doesbucketexist then debug the application the inner expectation should provide more detail.
@victoravr10
@victoravr10 4 жыл бұрын
Great video! very helpful
@KrishnakanthErukulla
@KrishnakanthErukulla 5 жыл бұрын
Thanks Daniel, this was neat.. Can you please suggest us the steps to be taken to host this API on a server? Do we have to copy the credentials file to that server or there is another way?
@shivakumarravichandran4924
@shivakumarravichandran4924 5 жыл бұрын
Hi Kris, I too have this same question in my mind! Did you get the solution for this?
@logical1976
@logical1976 6 жыл бұрын
Hi Daniel nice video. Thank you. I have one question. How do we get credentials file. Do we need to type it or download from amazon s3?
@DanielDonbavand
@DanielDonbavand 6 жыл бұрын
Hi Suneel, thanks for watching. If you download the aws cli it should setup the .aws dir for you. Then you can edit the credentials file. This link might help explain it a bit more docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html
@logical1976
@logical1976 6 жыл бұрын
Thank you Daniel. I will try this.
@bradday6738
@bradday6738 5 жыл бұрын
Great Video! What Nuget package do you have downloaded that allows you to generate the interface code? Is it JetBrains.ReSharper.SDK?
@DanielDonbavand
@DanielDonbavand 5 жыл бұрын
Hi Brad, Indeed, I'm using ReSharper you can download ReSharper from here www.jetbrains.com/resharper/download/?gclid=EAIaIQobChMI7vuwyY-v3wIVleNkCh36wQQHEAAYASABEgJykfD_BwE&gclsrc=aw.ds
@steveimpellizzeri8644
@steveimpellizzeri8644 5 жыл бұрын
I have my credentials file in the .aws folder, it has key, secret key and region, but I get the error "Failed to retrieve credentials from EC2 Instance Metadata Service" from {Amazon.Runtime.DefaultInstanceProfileAWSCredentials} when debugging. Am I missing something?
@steveimpellizzeri8644
@steveimpellizzeri8644 5 жыл бұрын
...also, the response message returned is 500 error: "A socket operation was attempted to an unreachable network"
@cesarbehr251
@cesarbehr251 5 жыл бұрын
Hi Daniel, is it possible to add a endpoint address to use compatible S3 storage instead of the AWS S3 service? Thanks.
@DanielDonbavand
@DanielDonbavand 5 жыл бұрын
Can you explan more what you are trying to do?
@enriquedecigaquiroz7121
@enriquedecigaquiroz7121 5 жыл бұрын
So useful, thanks a lot!
@abubakrtufail5647
@abubakrtufail5647 4 жыл бұрын
I want to create account on aws can you help me?
@pranjalgupta1595
@pranjalgupta1595 5 жыл бұрын
Hi Daniel, I Followed your approach but I am getting the Exception as - AmazonClientException: No RegionEndpoint or ServiceURL configured. Can you please hep me out with this? How to set up the Region while Instantiating the Client
@DanielDonbavand
@DanielDonbavand 5 жыл бұрын
Hi Pranjal, it sounds like you haven't add region to the credentials file. Have a look at 7:38 in the video, you will see that I have set region to us-east-1
@pranjalgupta1595
@pranjalgupta1595 5 жыл бұрын
@@DanielDonbavand I saw that, but how client is gonna pick that up from the project and where to add that in the project for the client to use it? And How to use it ?
@DanielDonbavand
@DanielDonbavand 5 жыл бұрын
@@pranjalgupta1595 when registering our IAmazonS3 client using the services.AddAWSService it looks for the credentials and region in multiple places, one of those places is the credential file. If this isn't working for you, another way would be to use the following code inside the startup file under ConfigureServices method services.AddDefaultAWSOptions( new AWSOptions { Region = RegionEndpoint.GetBySystemName("us-east-1") });
@GiorgiSukhitashvili
@GiorgiSukhitashvili 5 жыл бұрын
@@DanielDonbavand What other places does it check for credentials? Is there way to override this configuration in the service layer? (e.g. for different envts i have credentials stored in different places) can i just setup a client when i'm ready to use it ?)
@BarrazaIvan
@BarrazaIvan 5 жыл бұрын
My credentials file exists in the .aws folder, but I get "AmazonClientException: No RegionEndpoint or ServiceURL configured"... Amazon.Runtime.ClientConfig.Validate()
@DanielDonbavand
@DanielDonbavand 5 жыл бұрын
Hi Ivan, try adding the following to the startup.cs file under ConfigureServices method services.AddDefaultAWSOptions( new AWSOptions { Region = RegionEndpoint.GetBySystemName("us-east-1") }); Make sure you change "us-east-1" to your desired region
@BarrazaIvan
@BarrazaIvan 5 жыл бұрын
Thanks Daniel. That worked like a charm. I appreciate it.
@DanielDonbavand
@DanielDonbavand 5 жыл бұрын
Brilliant!!
@laurapeppiatt7637
@laurapeppiatt7637 5 жыл бұрын
Good video. Unfortunately cant find why I get 500 error. Is region important? I set it to false in app and dont have it in credentials.. Thank you for your generosity.
@DanielDonbavand
@DanielDonbavand 5 жыл бұрын
Hi Laura, yip region is important. Either set it in your credentials file or you can add the following to the startup.cs class under ConfigureServices method services.AddDefaultAWSOptions( new AWSOptions { Region = RegionEndpoint.GetBySystemName("us-east-1") });
@laurapeppiatt7637
@laurapeppiatt7637 5 жыл бұрын
@@DanielDonbavand Thank you very. This worked! I added the region to my credentials file but the value "UK (London)" wasn't working..
@laurapeppiatt7637
@laurapeppiatt7637 5 жыл бұрын
sadly still try to find out why AmazonS3Util.DoesS3BucketExistAsync returns true when I try to create a bucket...
@DanielDonbavand
@DanielDonbavand 5 жыл бұрын
Because S3 allows your bucket to be used as a URL that can be accessed publicly, the bucket name that you choose must be globally unique. If some other account has already created a bucket with the name that you chose, you must use another name.
@sithuwin5412
@sithuwin5412 4 жыл бұрын
" System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.UriFormatException: Invalid URI: The hostname could not be parsed "
@shijilp
@shijilp 5 жыл бұрын
Hi, nice video well explained. In my case, it is working in a local server but not working in deployment. can you help me
@DanielDonbavand
@DanielDonbavand 5 жыл бұрын
What kind of errors are you seeing?
@shijilp
@shijilp 5 жыл бұрын
@@DanielDonbavand I am getting error 500
@DanielDonbavand
@DanielDonbavand 5 жыл бұрын
Hi everyone, I'm building an AWS S3 course, I'm keen to hear what you are using AWS S3 for, to help give me some real world examples.
@MrAbugaarith
@MrAbugaarith 4 жыл бұрын
great work...what about programmatically accessing S3 buckets across AZs and have like a job run to pick up and drop files, which eventually could be ingested by MS SQL db. All in C# .net core
@irisgroup
@irisgroup 5 жыл бұрын
Hi Daniel; Great tutorials thanks but I ve got Amazon.Runtime.AmazonServiceException: Unable to get IAM security credentials from EC2 Instance Metadata Service. Ive checked my Credentials file it exists and there was no region I ve added it toConfigure services services.AddDefaultAWSOptions(new AWSOptions { Region = RegionEndpoint.GetBySystemName("eu-west-1") }); however I still get error. Do you have any idea or solution =) Thanks
@irisgroup
@irisgroup 5 жыл бұрын
I solved it I have 2 users defined in my credentials file after I deleted one from aws it still remains in that file . I removed it and changed remained ones name to [Default] problem solved =)
@chumberjosh
@chumberjosh 4 жыл бұрын
Im getting this response back { "status": 500, "message": "Unable to get IAM security credentials from EC2 Instance Metadata Service." }
@yadhu66621
@yadhu66621 4 жыл бұрын
Does your credentials file use a named profile? If yes, change it to [default]. I had the same error you've stated above and changing it to [default] fixed it.
@nehetetanmay
@nehetetanmay 6 жыл бұрын
how to do it with web forms or windows form
@DanielDonbavand
@DanielDonbavand 6 жыл бұрын
Hi Tanmay, sorry but web form isn't something I have covered.
@diogofrancisco3923
@diogofrancisco3923 4 жыл бұрын
Aula muito ruim, perda de tempo assistir !
.NET Core 2.0 - AWS Tutorial - Adding a File to an S3 Bucket
11:31
Daniel Donbavand
Рет қаралды 29 М.
Create a Serverless .NET Core 2.1 Web API with AWS Lambda
17:57
Daniel Donbavand
Рет қаралды 71 М.
Кто круче, как думаешь?
00:44
МЯТНАЯ ФАНТА
Рет қаралды 3,1 МЛН
Which team will win? Team Joy or Team Gumball?! 🤔
00:29
BigSchool
Рет қаралды 15 МЛН
Car Bubble vs Lamborghini
00:33
Stokes Twins
Рет қаралды 40 МЛН
When u fight over the armrest
00:41
Adam W
Рет қаралды 24 МЛН
.NET Core 2.0 - AWS Tutorial - Creating a DynamoDB Table
23:30
Daniel Donbavand
Рет қаралды 17 М.
Clean Architecture with ASP.NET Core 8 | .NET Conf 2023
29:17
.NET Core 2.0 - AWS Tutorial - Getting an Object from an S3 Bucket
10:31
Daniel Donbavand
Рет қаралды 16 М.
.Net 6 WebAPI - Upload files to AWS S3  - Step by Step
1:03:50
Mohamad Lawand
Рет қаралды 15 М.
ASP.NET Core 2.1: Building a Simple Web API
15:27
Daniel Donbavand
Рет қаралды 164 М.
The Big Headless CMS Lie (James Mikrut)
18:14
Vercel
Рет қаралды 67 М.
.NET Core 2.0 - AWS Tutorial - Getting Items from a DynamoDB Table
18:43
Testing in .NET is About to Change
12:54
Nick Chapsas
Рет қаралды 80 М.
Кто круче, как думаешь?
00:44
МЯТНАЯ ФАНТА
Рет қаралды 3,1 МЛН