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.
@vivekgowda15763 жыл бұрын
I'm Getting this error Unable to get IAM security credentials from EC2 Instance Metadata Service.
@vivekgowda15763 жыл бұрын
How did you configure aws to visual studio ? how to it could create bucket without configure the AWS Please let me know
@CloudNet876 жыл бұрын
Thanks Daniel. That was awesome..
@AijazKhan4 жыл бұрын
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_nainika4 жыл бұрын
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-pp1sx4 жыл бұрын
I want to deploy a sales shop designed with docnet core len aws with s3 package, can you show me?
@yawnsmusic84185 жыл бұрын
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
@DanielDonbavand5 жыл бұрын
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.
@DanielDonbavand5 жыл бұрын
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
@yawnsmusic84185 жыл бұрын
I uploaded the project in github.com/dewyone/aspnetcore-aws-s3-S3TestWebApi
@irisgroup5 жыл бұрын
Hey I have the same problem whats its reason ? ( I only couldnt understand how it access the Users Credentials file?)
@DanielDonbavand5 жыл бұрын
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.
@victoravr104 жыл бұрын
Great video! very helpful
@KrishnakanthErukulla5 жыл бұрын
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?
@shivakumarravichandran49245 жыл бұрын
Hi Kris, I too have this same question in my mind! Did you get the solution for this?
@logical19766 жыл бұрын
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?
@DanielDonbavand6 жыл бұрын
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
@logical19766 жыл бұрын
Thank you Daniel. I will try this.
@bradday67385 жыл бұрын
Great Video! What Nuget package do you have downloaded that allows you to generate the interface code? Is it JetBrains.ReSharper.SDK?
@DanielDonbavand5 жыл бұрын
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
@steveimpellizzeri86445 жыл бұрын
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?
@steveimpellizzeri86445 жыл бұрын
...also, the response message returned is 500 error: "A socket operation was attempted to an unreachable network"
@cesarbehr2515 жыл бұрын
Hi Daniel, is it possible to add a endpoint address to use compatible S3 storage instead of the AWS S3 service? Thanks.
@DanielDonbavand5 жыл бұрын
Can you explan more what you are trying to do?
@enriquedecigaquiroz71215 жыл бұрын
So useful, thanks a lot!
@abubakrtufail56474 жыл бұрын
I want to create account on aws can you help me?
@pranjalgupta15955 жыл бұрын
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
@DanielDonbavand5 жыл бұрын
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
@pranjalgupta15955 жыл бұрын
@@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 ?
@DanielDonbavand5 жыл бұрын
@@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") });
@GiorgiSukhitashvili5 жыл бұрын
@@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 ?)
@BarrazaIvan5 жыл бұрын
My credentials file exists in the .aws folder, but I get "AmazonClientException: No RegionEndpoint or ServiceURL configured"... Amazon.Runtime.ClientConfig.Validate()
@DanielDonbavand5 жыл бұрын
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
@BarrazaIvan5 жыл бұрын
Thanks Daniel. That worked like a charm. I appreciate it.
@DanielDonbavand5 жыл бұрын
Brilliant!!
@laurapeppiatt76375 жыл бұрын
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.
@DanielDonbavand5 жыл бұрын
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") });
@laurapeppiatt76375 жыл бұрын
@@DanielDonbavand Thank you very. This worked! I added the region to my credentials file but the value "UK (London)" wasn't working..
@laurapeppiatt76375 жыл бұрын
sadly still try to find out why AmazonS3Util.DoesS3BucketExistAsync returns true when I try to create a bucket...
@DanielDonbavand5 жыл бұрын
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.
@sithuwin54124 жыл бұрын
" System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.UriFormatException: Invalid URI: The hostname could not be parsed "
@shijilp5 жыл бұрын
Hi, nice video well explained. In my case, it is working in a local server but not working in deployment. can you help me
@DanielDonbavand5 жыл бұрын
What kind of errors are you seeing?
@shijilp5 жыл бұрын
@@DanielDonbavand I am getting error 500
@DanielDonbavand5 жыл бұрын
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.
@MrAbugaarith4 жыл бұрын
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
@irisgroup5 жыл бұрын
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
@irisgroup5 жыл бұрын
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 =)
@chumberjosh4 жыл бұрын
Im getting this response back { "status": 500, "message": "Unable to get IAM security credentials from EC2 Instance Metadata Service." }
@yadhu666214 жыл бұрын
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.
@nehetetanmay6 жыл бұрын
how to do it with web forms or windows form
@DanielDonbavand6 жыл бұрын
Hi Tanmay, sorry but web form isn't something I have covered.