(Optional) Build CI/CD Pipeline for Admin Application
Mục lục
Create CI/CD Pipeline for Admin Application
Follow the same process outlined in sections 5.3, 5.4, and 5.5 to create a CI/CD pipeline for the admin application, with the following key differences:
Pipeline Configuration:
- Pipeline name:
fcj-admin-pipeline - Project name:
fcj-admin-build - Repository: Use the same forked repository
- Buildspec file:
application/MomentumAdmin/buildspec.yml - ECS Service: Select
fcj-admin-svcfor deployment
Key Differences:
- Buildspec Location: The buildspec file for the admin application is located at
application/MomentumAdmin/buildspec.yml(already provided in the repository) - Permissions: You do not need to add SecretsManagerReadWrite permissions to the CodeBuild role for the admin application
- Required Permission: Only add AmazonEC2ContainerRegistryFullAccess to the CodeBuild service role
- VPC Configuration: Do not configure VPC settings for the CodeBuild project (leave VPC as default)
Testing the Pipeline:
To test the admin pipeline, modify any file in the application/MomentumAdmin/ directory and commit the changes to trigger the pipeline.