https://github.com/kulpree/codechallenge
https://github.com/kulpree/codechallenge
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/kulpree/codechallenge
- Owner: kulpree
- License: apache-2.0
- Created: 2019-08-29T20:20:46.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T09:13:40.000Z (almost 3 years ago)
- Last Synced: 2023-03-07T10:11:43.900Z (almost 3 years ago)
- Language: Java
- Size: 2.68 MB
- Stars: 0
- Watchers: 1
- Forks: 2
- Open Issues: 23
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CodeChallenge
## Build Status
[](https://sonarcloud.io/dashboard?id=kusingh6_CodeChallenge)
Prime Frontend: 
Prime Backend: 
This repo will deploy sample code challenge project to multiple environments to AWS, Azure and openshift through the different CI Platforms as AWS CodePipeline, Azure pipeline (Azure DevOps) and Jenkins pipeline.
We will be using this Github repository as our input source code repository.
## AWS Infrastructure & Deployment
## Step 1:
In the [deployment/aws](deployment/aws/) directory there are multiple YAML (*CloudFormation Templates*) & JSON (*CloudFormation Configuration*) files.
**[vpc-stack.yml](deployment/aws/vpc-stack.yml):** is the CloudFormation template to create the base VPC, Subnets, NAT Gateways, etc which will be used.
**[vpc-params.json](deployment/aws/vpc-params.json):** is the parameters file which contains the parameter values for the CFN template. Update the
*ApprovalEmail* values to provide the appropriate email address.
## Step 2:
As a prerequisites, you need to create ECR repositories and you can create repositories based on your requirement [ecr.yamll](deployment/aws/ecr.yaml) cloudFormation template.
Go to `deployment/aws` directory and execute the following AWS CLI command to create CloudFormation stack.
```bash
cd deployment/aws
aws cloudformation create-stack --stack-name ecr-{yourRepositoryName}-stack --template-body file://ecr.yaml --parameters ParameterKey=repositoryName,ParameterValue=ecr-primefrontend --profile kulpreet-aot --region us-west-2
aws cloudformation create-stack --stack-name ecr-primefrontend-stack --template-body file://ecr.yaml --parameters ParameterKey=repositoryName,ParameterValue=ecr-primefrontend --capabilities CAPABILITY_NAMED_IAM --profile kulpreet-aot --region us-west-2
```