From the course: Complete Guide to AWS Software Deployment
Unlock the full course today
Join today to access over 24,400 courses taught by industry experts.
Add AWS CodeBuild support to an app - Amazon Web Services (AWS) Tutorial
From the course: Complete Guide to AWS Software Deployment
Add AWS CodeBuild support to an app
- [Instructor] All right, let's look at adding CodeBuild to this project. Over here in the app root, I've got a buildspec.yml file. And you can see what's going on here. We've got an environment section where we define a few key value pairs for environment variables. And here under phases, we define some things that happen at various lifecycle hooks. So for install, we've got an echo command to show users what's going on. And we do a few rails commands, bundle install and rake db:migrate to get the database in place, preliminary steps. And then under build, we do what we actually are here to do, which is to run our automated test. So we've got two echo commands here that give some context to anybody reading the logs, then we run rspec. Rspec is a common way of running automated tests in rails. And so this would kick off our test and fail if anything went wrong. Course, before it fails out, we've got this finally section. So this part will run even if there are errors in the rspec. And…
Contents
-
-
-
-
-
-
-
(Locked)
AWS CodeDeploy key concepts3m 29s
-
(Locked)
AWS CodeDeploy: AppSpec and lifecycle events3m 10s
-
(Locked)
AWS CodeDeploy: IAM setup3m 14s
-
(Locked)
AWS CodeDeploy: Instance preparation5m 10s
-
(Locked)
AWS CodeDeploy: Auto Scaling group8m 38s
-
(Locked)
AWS CodeDeploy: App creation1m 53s
-
(Locked)
Install and configure the AWS CLI5m 21s
-
(Locked)
AWS CodeDeploy: Adding database and security groups4m 40s
-
(Locked)
AWS CodeDeploy: Managing secrets with Secrets Manager6m 51s
-
(Locked)
AWS CodeDeploy: AppSpec and deployment13m 8s
-
(Locked)
AWS CodeDeploy: Add a load balancer9m 9s
-
(Locked)
Troubleshoot AWS CodeDeploy deployments3m 28s
-
(Locked)
Understanding AWS CodeBuild4m 43s
-
(Locked)
Add AWS CodeBuild support to an app4m 37s
-
(Locked)
Integrate AWS CodeBuild into CodePipeline10m 5s
-
(Locked)
AWS CodePipeline challenge: Add an approval stage1m 28s
-
(Locked)
AWS CodePipeline challenge solution: Add an approval stage7m 33s
-
(Locked)
AWS CodeDeploy teardown5m 43s
-
(Locked)
-
-
-