Deploy .NET Core to AWS Elastic Beanstalk with RDS Database
Wes Doyle
@wesdoyleAbout
Hi! I'm Wes. I make videos about web development, DevOps, AWS, machine learning, and all aspects of software engineering. My goal is to build a community around the joy of learning and building things. I'm engineering director here: https://www.portalmedia.com/ - Come check us out if you have a software project you'd like to discuss!
Latest Posts
Video Description
Full .NET Core + AWS Beanstalk + RDS PostgreSQL Tutorial | Complete Deployment Course | Hands-on Demo #dotnet #aws #elasticbeanstalk By the end of this .NET Core MVC + AWS Elastic Beanstalk + RDS course, you will understand how to deploy .NET Core MVC applications to the cloud with AWS Elastic Beanstalk. Like videos about web development, DevOps, and machine learning? Please support me on Patreon! ▬▬▬▬▬▬ 👋 Get in Touch! 👋 ▬▬▬▬▬▬ Patreon ► https://bit.ly/pd-patreon Facebook Group ► https://bit.ly/productive-dev-fb My Twitter ► https://bit.ly/wesd-twitter My LinkedIn ► https://bit.ly/wesd-linkedin ▬▬▬▬▬▬ ⏰ T I M E S T A M P S ⏰ ▬▬▬▬▬▬ 0:00 - Intro and Background 1:05 - Prerequisites 1:44 - Project Setup 3:56 - Nuget Packages 4:35 - Finish AppDbContext 7:52 - Create Connection String in appSettings 8:30 - Connecting to the Database locally 9:05 - Running PostgreSQL in Docker 10:23 - Smoke Test 11:14 - Add Notes Controller 12:20 - Create Notes View 12:25 - Create Notes ViewModels and finish Controller 17:26 - Create and Run Migrations locally 18:44 - Querying Database Locally with psql 20:50 - AWS Console - Create Elastic Beanstalk Environment 22:40 - Creating appSettings.Production.json 23:40 - Create .gitignore 24:30 - Inspecting Elastic Beanstalk Environment 25:10 - Setup RDS PostgreSQL Database 27:28 - Publish the App using the dotnet CLI 31:20 - Upload the App Bundle artifact 32:02 - View the deployed app 32:37 - Inspecting Application Logs in AWS Beanstalk 33:31 - Update the DB Host and Publish 35:45 - Bugfix Password Error 38:05 - Run Production Database Migrations 39:30 - Redeploy with Updated Password ▬▬▬▬▬▬ 📚 TOPICS OVERVIEW 📚 ▬▬▬▬▬▬ ☁️ Deploying .NET Core to AWS with ElasticBeanstalk ☁️ ► How to create, build, and package a .NET Core MVC application ► How to connect a production database using RDS ► AWS Elastic Beanstalk ► AWS Security Groups ► AWS RDS with Postgres ► ASP .NET Core MVC ► .NET Core DbContext ► Running PostgreSQL in Docker ► Querying PostgreSQL with psql 📦 NuGet Packages 📦: ► Microsoft.EntityFrameworkCore/3.1.10 ► Microsoft.EntityFrameworkCore.Design/3.1.10 ► NpgSql.EntityFrameworkCore.PostgreSQL/3.1.4 ► NpgSql/4.1.5 👩💻 CLI Commands 👩💻: ► dotnet run ► dotnet ef migrations add initial (change "initial" with migration name) ► dotnet ef database update ► dotnet publish -c Release -o site 🔗 Links: ► GitHub gist for Postgres docker-compose: https://gist.github.com/wesdoyle/5a937974208f7d79f596e4fb49be4aa9
Upgrade Your Everyday
AI-recommended products based on this video

Amazon Echo Show 8 (newest model), With Spatial Audio, Smart Home Hub, and Alexa, Charcoal

Apple AirPods 4 Wireless Earbuds, Bluetooth Headphones, with Active Noise Cancellation, Adaptive Audio, Transparency Mode, Personalized Spatial Audio, USB-C Charging Case, Wireless Charging, H2 Chip

Wireless Earbuds, Bluetooth 5.4 Headphones, True Wireless Stereo Earphones with IPX7 Waterproof, Noise Cancelling Mic, Fast Charging and Comfort Fit Ear Buds for Sports/Workouts - Black

Apple AirPods 4 Wireless Earbuds, Bluetooth Headphones, Personalized Spatial Audio, Sweat and Water Resistant, USB-C Charging Case, H2 Chip, Up to 30 Hours of Battery Life, Effortless Setup for iPhone

Apple AirPods Pro 2 Wireless Earbuds, Active Noise Cancellation, Hearing Aid Feature, Bluetooth Headphones, Transparency, Personalized Spatial Audio, High-Fidelity Sound, H2 Chip, USB-C Charging

Smart Watch for Men/Women, 1.95" AMOLED Fitness Tracker Watches with Bluetooth Calls/Flashlight/100+ Sport Modes Heart Rate/Sleep Monitor Ultra Lightweight Ultrathin Design

Smart Watch for Men Women (Answer/Make Call), 1.96" HD Smartwatch Fitness Activity Tracker, 110+ Sports IP68 Waterproof, Heart Rate/Sleep Monitor/Pedometer/Calories, Fitness Watch for Android iOS
![Apple Watch Series 10 [GPS 46mm case] Smartwatch with Rose Gold Aluminium Case with Light Blush Sport Band - M/L. Fitness Tracker, ECG App, Always-On Retina Display, Water Resistant](https://m.media-amazon.com/images/I/61nNNMI1cFL._AC_UL960_FMwebp_QL65_.jpg)
Apple Watch Series 10 [GPS 46mm case] Smartwatch with Rose Gold Aluminium Case with Light Blush Sport Band - M/L. Fitness Tracker, ECG App, Always-On Retina Display, Water Resistant
![Apple Watch Series 10 [GPS 42mm case] Smartwatch with Jet Black Aluminium Case with Black Sport Band - S/M. Fitness Tracker, ECG App, Always-On Retina Display, Water Resistant](https://m.media-amazon.com/images/I/6105jZyXyPL._AC_UL960_FMwebp_QL65_.jpg)
Apple Watch Series 10 [GPS 42mm case] Smartwatch with Jet Black Aluminium Case with Black Sport Band - S/M. Fitness Tracker, ECG App, Always-On Retina Display, Water Resistant

NOCO Boost GB40: 1000A UltraSafe Jump Starter – 12V Lithium Battery Booster Pack, Portable Jump Box, Power Bank & Jumper Cables - for 6.0L Gas and 3.0L Diesel Engines

UGREEN Nexode Power Bank 20000mAh 130W Portable Charger 72Wh PD Fast Charging 3-Port USB C Battery Pack with TFT Smart Display for MacBook/iPad/iPhone 16/Samsung S24 and More

ANKER 737 Power Bank, 24,000mAh 3-Port Laptop Portable Charger with 140W Fast Charging, Smart Display, for Outdoor Work, Compatible with iPhone 16/15/14 Series, Vision Pro, Samsung, MacBook, and More

VOLTME Portable Charger, Slim 10000mAh 5V/3A Power Bank, USB C in&Out High-Speed Charging Battery Pack, Travel Essentials Dual Output Compatible with iPhone 16 15 14 13 12 Samsung Google iPad etc

Apple AirPods 4 Wireless Earbuds, Bluetooth Headphones, with Active Noise Cancellation, Adaptive Audio, Transparency Mode, Personalized Spatial Audio, USB-C Charging Case, Wireless Charging, H2 Chip

Apple AirPods 4 Wireless Earbuds, Bluetooth Headphones, Personalized Spatial Audio, Sweat and Water Resistant, USB-C Charging Case, H2 Chip, Up to 30 Hours of Battery Life, Effortless Setup for iPhone

Apple AirPods Pro 2 Wireless Earbuds, Active Noise Cancellation, Hearing Aid Feature, Bluetooth Headphones, Transparency, Personalized Spatial Audio, High-Fidelity Sound, H2 Chip, USB-C Charging

Bose QuietComfort Bluetooth Headphones, Wireless Headphones with Active Over Ear Noise Cancelling and Mic, Deep Bass, Up to 24 Hours of Playtime, White Smoke

Barnyard Designs Indoor Herb Garden Planter Set with Tray, Metal Windowsill Plant Pots with Drainage for Outdoor or Indoor Plants, Set/3 (Black)

Eye Contact Web Camera for Desktop Computer – 1080P USB Camera with Microphone & Stand, Center Cam for Laptop or Desktop, Manual Focus, Plug & Play for macOS & Windows(Black)
![PEHAEL 3+3Pack for iPhone 17 Pro Max Privacy Screen Protector with Camera Lens Protector Full Coverage Anti-Spy Tempered Glass Film 9H Hardness Easy Installation Bubble Free [6.9 inch]](https://m.media-amazon.com/images/I/61PnVkv6KKL._AC_UL960_FMwebp_QL65_.jpg)
PEHAEL 3+3Pack for iPhone 17 Pro Max Privacy Screen Protector with Camera Lens Protector Full Coverage Anti-Spy Tempered Glass Film 9H Hardness Easy Installation Bubble Free [6.9 inch]
![Ailun 3 Pack Screen Protector for iPhone 16 Pro Max [6.9 inch] + 3 Pack Camera Lens Protector with Installation Frame,Sensor Protection,Dynamic Island Compatible,Case Friendly Tempered Glass Film](https://m.media-amazon.com/images/I/815keamN-BL._AC_UL960_FMwebp_QL65_.jpg)
Ailun 3 Pack Screen Protector for iPhone 16 Pro Max [6.9 inch] + 3 Pack Camera Lens Protector with Installation Frame,Sensor Protection,Dynamic Island Compatible,Case Friendly Tempered Glass Film
