Access AWS from Asp.Net Core 2

Today when you start developing an application in any framework, including Asp.Net Core 2, Amazon Web Services (AWS) is an inevitable choice for a lot of reasons, like, multiple database technologies (relational and NoSQL), serverless options (AWS Lambda), CI/CD options (like ElasticBeanstalk & Containers) and many many more services of any type for any problem.

To connect to AWS from Asp.Net Core 2 application we need to create IAM user that has programmatic access to the platform.
After logging to AWS console using root user, we can go to Service -> Security, Identity & Compliance -> IAM -> Users – Add User.

Adding a user is a 4 steps process where we have to define type of access and permissions for services and actions that is allowed to perform.

First step: write user name or names if you want to more than one in same step

Continue reading “Access AWS from Asp.Net Core 2”

AutoMapper in Asp.Net Core 2

Automapper Logo

There are countless situations in an Asp.Net Core application when you need to map objects by each other in terms of creating new instances by getting values from an existing instance that’s quite similar or completed different in rare cases.

What is AutoMapper?

AutoMapper is a simple little library built to solve a deceptively complex problem – getting rid of code that mapped one object to another. This type of code is rather dreary and boring to write, so why not invent a tool to do it for us?

Continue reading “AutoMapper in Asp.Net Core 2”