* Coding Phase: Pseudo Code / Flow Chart / Algorithm
Step-by-Step Script to Set Up CodeBuild
# 1. Create a CodeBuild project
aws codebuild create-project \
--name MyDemoBuildProject \
--source type=CODECOMMIT,location=https://git-
codecommit.<region>.amazonaws.com/v1/repos/MyDemoRepo \
--artifacts type=NO_ARTIFACTS \
--environment
type=LINUX_CONTAINER,image=aws/codebuild/standard:5.0,computeType=BUILD_GENERAL1_SMALL \
--service-role arn:aws:iam::<account-id>:role/CodeBuildServiceRole \
--description "My demo CodeBuild project"
Sample buildspec.yml File
Place this file in the root directory of your repository:
version: 0.2
phases:
install:
commands:
- echo Installing dependencies
build:
commands:
- echo Building the project
- mvn clean install
artifacts:
files:
- target/*.jar
Testing Phase: Compilation of Code (error detection)
Implementation Phase: Final Output (no error)
1. Push your code to a source repository (GitHub, CodeCommit, etc.).
2. Create a buildspec.yml file with build instructions.
3. (Optional) Create an S3 bucket for storing build artifacts.
4. Go to AWS CodeBuild and create a new project.
5. Configure the source, environment, and IAM role.
6. Specify buildspec.yml or inline commands.
7. Start the build or connect it to AWS CodePipeline for automation.
Rubrics
Concept 10
Planning and Execution/ 10
Practical Simulation/ Programming
Result and Interpretation 10
Record of Applied and Action Learning 10
Viva 10
Total 50
Signature of the Student:
Signature of the Faculty: