From bf2168b9f1d6963d451b84f4af4cc3735ef6aea0 Mon Sep 17 00:00:00 2001 From: "Anandateertha.dev" Date: Thu, 16 May 2024 16:31:38 +0530 Subject: [PATCH 01/35] Add yml file for cicd pipepline --- auth-config.yml | 8 ++++ auth-secret.yaml | 12 ++++++ authentication-service.yml | 85 ++++++++++++++++++++++++++++++++++++++ cicd-pipeline.yml | 50 ++++++++++++++++++++++ 4 files changed, 155 insertions(+) create mode 100644 auth-config.yml create mode 100644 auth-secret.yaml create mode 100644 authentication-service.yml create mode 100644 cicd-pipeline.yml diff --git a/auth-config.yml b/auth-config.yml new file mode 100644 index 0000000..a43fd0f --- /dev/null +++ b/auth-config.yml @@ -0,0 +1,8 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: auth-config +data: + mysql-url: jdbc:mysql://3.109.155.31:3306/bookmysport + user-avatar-folder-name: UserAvatars + bucket-name: bookmysport.com diff --git a/auth-secret.yaml b/auth-secret.yaml new file mode 100644 index 0000000..9dc3583 --- /dev/null +++ b/auth-secret.yaml @@ -0,0 +1,12 @@ +apiVersion: v1 +kind: Secret +metadata: + name: auth-secret +data: + mysql-user: YW5hbmRh + mysql-password: Ym9va215c3BvcnQ= + auth-username: dm9ydGV4MTY0OUBnbWFpbC5jb20= + auth-password: bG5teSBydHNnIHRtdHYga3h0YQ== + auth-secret-key: U0VDUkVUS0VZU0VDUkVUS0VZU0VDUkVUS0VZU0VDUkVUS0VZU0VDUkVUS0VZU0VDUkVUS0VZU0VDUkVUS0VZ + aws-access-key-id: QUtJQVczTUVBU0NWRlpWR0s0V0Q= + aws-secret-key: ai81NXBtU0F1ZlJJbFdLMmRjai9pelhIdll6eHhNbWh6eWFzVkxkcA== \ No newline at end of file diff --git a/authentication-service.yml b/authentication-service.yml new file mode 100644 index 0000000..feae867 --- /dev/null +++ b/authentication-service.yml @@ -0,0 +1,85 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: authentication-service-deployment + labels: + app: auth +spec: + replicas: 2 + selector: + matchLabels: + app: auth + template: + metadata: + labels: + app: auth + spec: + containers: + - name: auth + image: public.ecr.aws/x6u8x6b2/authentication-service:latest + ports: + - containerPort: 8090 + env: + - name: DATABASE_URL + valueFrom: + configMapKeyRef: + name: auth-config + key: mysql-url + - name: USERNAME + valueFrom: + secretKeyRef: + name: auth-secret + key: mysql-user + - name: PASSWORD + valueFrom: + secretKeyRef: + name: auth-secret + key: mysql-password + - name: ADMIN_USERNAME + valueFrom: + secretKeyRef: + name: auth-secret + key: auth-username + - name: ADMIN_PASSWORD + valueFrom: + secretKeyRef: + name: auth-secret + key: auth-password + - name: SECRET_KEY + valueFrom: + secretKeyRef: + name: auth-secret + key: auth-secret-key + - name: USER_AVATAR_FOLDER_NAME + valueFrom: + configMapKeyRef: + name: auth-config + key: user-avatar-folder-name + - name: BUCKET_NAME + valueFrom: + configMapKeyRef: + name: auth-config + key: bucket-name + - name: AWS_ACCESS_KEY_ID + valueFrom: + secretKeyRef: + name: auth-secret + key: aws-access-key-id + - name: AWS_SECRET_ACCESS_KEY + valueFrom: + secretKeyRef: + name: auth-secret + key: aws-secret-key +--- +apiVersion: v1 +kind: Service +metadata: + name: auth-service +spec: + type: LoadBalancer + selector: + app: auth + ports: + - protocol: TCP + port: 80 + targetPort: 8090 diff --git a/cicd-pipeline.yml b/cicd-pipeline.yml new file mode 100644 index 0000000..140dcbb --- /dev/null +++ b/cicd-pipeline.yml @@ -0,0 +1,50 @@ +version: 0.2 +run-as: root + +phases: + + install: + commands: + - echo Installing app dependencies... + - curl -O https://s3.us-west-2.amazonaws.com/amazon-eks/1.29.3/2024-04-19/bin/linux/amd64/kubectl + - curl -O https://s3.us-west-2.amazonaws.com/amazon-eks/1.29.3/2024-04-19/bin/linux/amd64/kubectl.sha256 + - sha256sum -c kubectl.sha256 + - openssl sha1 -sha256 kubectl + - chmod +x ./kubectl + - mkdir -p $HOME/bin && cp ./kubectl $HOME/bin/kubectl && export PATH=$HOME/bin:$PATH + - echo 'export PATH=$PATH:$HOME/bin' >> ~/.bashrc + - source ~/.bashrc + - echo 'Check kubectl version' + - kubectl version --client + + pre_build: + commands: + - echo Logging in to Amazon EKS... + - aws eks update-kubeconfig --region $AWS_DEFAULT_REGION --name $AWS_CLUSTER_NAME + - echo check config + - kubectl config view --minify + - echo check kubectl access + - kubectl get svc + - echo Logging in to Amazon ECR... + - aws ecr-public get-login-password --region $AWS_DEFAULT_REGION | docker login --username AWS --password-stdin public.ecr.aws/x6u8x6b2 + - REPOSITORY_URI=public.ecr.aws/x6u8x6b2/$IMAGE_REPO_NAME + - docker pull $REPOSITORY_URI:$IMAGE_TAG + + + build: + commands: + - echo Build started on `date` + - echo Building the Docker image... + - docker build --cache-from $REPOSITORY_URI:$IMAGE_TAG -t $IMAGE_REPO_NAME:$IMAGE_TAG . + - docker tag $IMAGE_REPO_NAME:$IMAGE_TAG public.ecr.aws/x6u8x6b2/$IMAGE_REPO_NAME:$IMAGE_TAG + + post_build: + commands: + - echo Build completed on `date` + - echo Pushing the Docker image... + - docker push public.ecr.aws/x6u8x6b2/$IMAGE_REPO_NAME:$IMAGE_TAG + - echo Push the latest image to cluster + - kubectl apply -f auth-config.yml + - kubectl apply -f auth-secret.yml + - kubectl apply -f authentication-service.yml + - kubectl rollout restart -f authentication-service.yml \ No newline at end of file From cd864d1d6d89f15fd9e4a29d69fae856e3fe5767 Mon Sep 17 00:00:00 2001 From: "Anandateertha.dev" Date: Thu, 16 May 2024 16:59:35 +0530 Subject: [PATCH 02/35] Add commands to install aws cli --- auth-config.yml | 2 +- cicd-pipeline.yml | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/auth-config.yml b/auth-config.yml index a43fd0f..5a539f5 100644 --- a/auth-config.yml +++ b/auth-config.yml @@ -3,6 +3,6 @@ kind: ConfigMap metadata: name: auth-config data: - mysql-url: jdbc:mysql://3.109.155.31:3306/bookmysport + mysql-url: jdbc:mysql://15.207.112.155:3306/bookmysport user-avatar-folder-name: UserAvatars bucket-name: bookmysport.com diff --git a/cicd-pipeline.yml b/cicd-pipeline.yml index 140dcbb..4ef0639 100644 --- a/cicd-pipeline.yml +++ b/cicd-pipeline.yml @@ -16,6 +16,10 @@ phases: - source ~/.bashrc - echo 'Check kubectl version' - kubectl version --client + - curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" + - sudo apt install unzip + - unzip awscliv2.zip + - sudo ./aws/install pre_build: commands: From 36fadf68c8fc875ab1691fd33d383253e3ee5679 Mon Sep 17 00:00:00 2001 From: "Anandateertha.dev" Date: Thu, 16 May 2024 17:01:59 +0530 Subject: [PATCH 03/35] Modify apt to apt-get to install unzip --- cicd-pipeline.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cicd-pipeline.yml b/cicd-pipeline.yml index 4ef0639..233253f 100644 --- a/cicd-pipeline.yml +++ b/cicd-pipeline.yml @@ -17,7 +17,7 @@ phases: - echo 'Check kubectl version' - kubectl version --client - curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" - - sudo apt install unzip + - sudo apt-get install unzip - unzip awscliv2.zip - sudo ./aws/install From adad816bb57083af761933d8babdebad633507fb Mon Sep 17 00:00:00 2001 From: "Anandateertha.dev" Date: Thu, 16 May 2024 17:06:12 +0530 Subject: [PATCH 04/35] Remove sudo to install unzip --- cicd-pipeline.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cicd-pipeline.yml b/cicd-pipeline.yml index 233253f..a632826 100644 --- a/cicd-pipeline.yml +++ b/cicd-pipeline.yml @@ -17,7 +17,7 @@ phases: - echo 'Check kubectl version' - kubectl version --client - curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" - - sudo apt-get install unzip + - apt-get install unzip - unzip awscliv2.zip - sudo ./aws/install From e115c9be39e4529401e59f92afad58732aa2960a Mon Sep 17 00:00:00 2001 From: "Anandateertha.dev" Date: Thu, 16 May 2024 17:08:03 +0530 Subject: [PATCH 05/35] Add aws --version --- cicd-pipeline.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cicd-pipeline.yml b/cicd-pipeline.yml index a632826..59d9f34 100644 --- a/cicd-pipeline.yml +++ b/cicd-pipeline.yml @@ -16,6 +16,8 @@ phases: - source ~/.bashrc - echo 'Check kubectl version' - kubectl version --client + - echo "AWS Version Check" + - aws --version - curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" - apt-get install unzip - unzip awscliv2.zip From 47fc1aa0ad9b0a1c046bf4f34e6b7973e422dfd7 Mon Sep 17 00:00:00 2001 From: "Anandateertha.dev" Date: Thu, 16 May 2024 17:10:01 +0530 Subject: [PATCH 06/35] Remove aws install commands --- cicd-pipeline.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/cicd-pipeline.yml b/cicd-pipeline.yml index 59d9f34..8b2e4c9 100644 --- a/cicd-pipeline.yml +++ b/cicd-pipeline.yml @@ -18,10 +18,6 @@ phases: - kubectl version --client - echo "AWS Version Check" - aws --version - - curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" - - apt-get install unzip - - unzip awscliv2.zip - - sudo ./aws/install pre_build: commands: From ca5e5cb73bdd830800748868f472bb99102bb06d Mon Sep 17 00:00:00 2001 From: "Anandateertha.dev" Date: Thu, 16 May 2024 17:17:31 +0530 Subject: [PATCH 07/35] Add success message --- cicd-pipeline.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cicd-pipeline.yml b/cicd-pipeline.yml index 8b2e4c9..77e3968 100644 --- a/cicd-pipeline.yml +++ b/cicd-pipeline.yml @@ -49,4 +49,5 @@ phases: - kubectl apply -f auth-config.yml - kubectl apply -f auth-secret.yml - kubectl apply -f authentication-service.yml - - kubectl rollout restart -f authentication-service.yml \ No newline at end of file + - kubectl rollout restart -f authentication-service.yml + - echo Deployed successfully \ No newline at end of file From f44fa1948f192597c29aca5ca6f7d91c918a346b Mon Sep 17 00:00:00 2001 From: "Anandateertha.dev" Date: Thu, 16 May 2024 17:45:59 +0530 Subject: [PATCH 08/35] ADdd content --- cicd-pipeline.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cicd-pipeline.yml b/cicd-pipeline.yml index 77e3968..82e490a 100644 --- a/cicd-pipeline.yml +++ b/cicd-pipeline.yml @@ -16,7 +16,7 @@ phases: - source ~/.bashrc - echo 'Check kubectl version' - kubectl version --client - - echo "AWS Version Check" + - echo "AWS Version Check successfull" - aws --version pre_build: From 322430423eb68093292cd6d5600d5506d6339006 Mon Sep 17 00:00:00 2001 From: "Anandateertha.dev" Date: Fri, 17 May 2024 10:20:40 +0530 Subject: [PATCH 09/35] Small change --- cicd-pipeline.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cicd-pipeline.yml b/cicd-pipeline.yml index 82e490a..5141912 100644 --- a/cicd-pipeline.yml +++ b/cicd-pipeline.yml @@ -16,7 +16,7 @@ phases: - source ~/.bashrc - echo 'Check kubectl version' - kubectl version --client - - echo "AWS Version Check successfull" + - echo "AWS Version Check successfully" - aws --version pre_build: From 5148a0c37449058380186a76373cfa1e2a56e1ef Mon Sep 17 00:00:00 2001 From: "Anandateertha.dev" Date: Fri, 17 May 2024 10:40:13 +0530 Subject: [PATCH 10/35] Check aws creds --- cicd-pipeline.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cicd-pipeline.yml b/cicd-pipeline.yml index 5141912..b5e7704 100644 --- a/cicd-pipeline.yml +++ b/cicd-pipeline.yml @@ -25,6 +25,8 @@ phases: - aws eks update-kubeconfig --region $AWS_DEFAULT_REGION --name $AWS_CLUSTER_NAME - echo check config - kubectl config view --minify + - echo Checking aws credentials + - cat ~/.aws/credentials - echo check kubectl access - kubectl get svc - echo Logging in to Amazon ECR... From 8873a2f0ff1f12caf2cf57786537d0faf2a10cca Mon Sep 17 00:00:00 2001 From: "Anandateertha.dev" Date: Fri, 17 May 2024 10:47:27 +0530 Subject: [PATCH 11/35] Add aws creds check --- cicd-pipeline.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cicd-pipeline.yml b/cicd-pipeline.yml index b5e7704..c54e6e7 100644 --- a/cicd-pipeline.yml +++ b/cicd-pipeline.yml @@ -26,7 +26,7 @@ phases: - echo check config - kubectl config view --minify - echo Checking aws credentials - - cat ~/.aws/credentials + - aws configure - echo check kubectl access - kubectl get svc - echo Logging in to Amazon ECR... From 9604acc7688e7e9de8ebf4198262919a2cc5bea2 Mon Sep 17 00:00:00 2001 From: "Anandateertha.dev" Date: Fri, 17 May 2024 10:59:18 +0530 Subject: [PATCH 12/35] Add access key and secret key --- cicd-pipeline.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cicd-pipeline.yml b/cicd-pipeline.yml index c54e6e7..3edf574 100644 --- a/cicd-pipeline.yml +++ b/cicd-pipeline.yml @@ -25,8 +25,9 @@ phases: - aws eks update-kubeconfig --region $AWS_DEFAULT_REGION --name $AWS_CLUSTER_NAME - echo check config - kubectl config view --minify - - echo Checking aws credentials - - aws configure + - echo Uploading aws credentials + - aws configure set aws_access_key_id $YOUR_ACCESS_KEY_ID + - aws configure set aws_secret_access_key $YOUR_SECRET_ACCESS_KEY - echo check kubectl access - kubectl get svc - echo Logging in to Amazon ECR... From 027e09694d82eb1e1d83398c70f04557332a6ed7 Mon Sep 17 00:00:00 2001 From: "Anandateertha.dev" Date: Fri, 17 May 2024 11:30:23 +0530 Subject: [PATCH 13/35] changes done --- cicd-pipeline.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cicd-pipeline.yml b/cicd-pipeline.yml index 3edf574..6483c72 100644 --- a/cicd-pipeline.yml +++ b/cicd-pipeline.yml @@ -31,7 +31,7 @@ phases: - echo check kubectl access - kubectl get svc - echo Logging in to Amazon ECR... - - aws ecr-public get-login-password --region $AWS_DEFAULT_REGION | docker login --username AWS --password-stdin public.ecr.aws/x6u8x6b2 + - aws ecr get-login-password --region $AWS_DEFAULT_REGION | docker login --username AWS --password-stdin 471112650922.dkr.ecr.ap-south-1.amazonaws.com - REPOSITORY_URI=public.ecr.aws/x6u8x6b2/$IMAGE_REPO_NAME - docker pull $REPOSITORY_URI:$IMAGE_TAG From 3aedc8e592974fcd3540e2819b989adffea97b74 Mon Sep 17 00:00:00 2001 From: "Anandateertha.dev" Date: Fri, 17 May 2024 11:37:34 +0530 Subject: [PATCH 14/35] Change repo name --- auth-config.yml | 2 +- cicd-pipeline.yml | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/auth-config.yml b/auth-config.yml index 5a539f5..bffdff9 100644 --- a/auth-config.yml +++ b/auth-config.yml @@ -3,6 +3,6 @@ kind: ConfigMap metadata: name: auth-config data: - mysql-url: jdbc:mysql://15.207.112.155:3306/bookmysport + mysql-url: jdbc:mysql://13.201.130.108:3306/bookmysport user-avatar-folder-name: UserAvatars bucket-name: bookmysport.com diff --git a/cicd-pipeline.yml b/cicd-pipeline.yml index 6483c72..3f1b589 100644 --- a/cicd-pipeline.yml +++ b/cicd-pipeline.yml @@ -32,7 +32,7 @@ phases: - kubectl get svc - echo Logging in to Amazon ECR... - aws ecr get-login-password --region $AWS_DEFAULT_REGION | docker login --username AWS --password-stdin 471112650922.dkr.ecr.ap-south-1.amazonaws.com - - REPOSITORY_URI=public.ecr.aws/x6u8x6b2/$IMAGE_REPO_NAME + - REPOSITORY_URI=471112650922.dkr.ecr.ap-south-1.amazonaws.com/auth-private:latest - docker pull $REPOSITORY_URI:$IMAGE_TAG @@ -40,14 +40,14 @@ phases: commands: - echo Build started on `date` - echo Building the Docker image... - - docker build --cache-from $REPOSITORY_URI:$IMAGE_TAG -t $IMAGE_REPO_NAME:$IMAGE_TAG . - - docker tag $IMAGE_REPO_NAME:$IMAGE_TAG public.ecr.aws/x6u8x6b2/$IMAGE_REPO_NAME:$IMAGE_TAG + - docker build --cache-from $REPOSITORY_URI:$IMAGE_TAG -t auth-private:$IMAGE_TAG . + - docker tag auth-private:$IMAGE_TAG 471112650922.dkr.ecr.ap-south-1.amazonaws.com/auth-private:$IMAGE_TAG post_build: commands: - echo Build completed on `date` - echo Pushing the Docker image... - - docker push public.ecr.aws/x6u8x6b2/$IMAGE_REPO_NAME:$IMAGE_TAG + - docker push 471112650922.dkr.ecr.ap-south-1.amazonaws.com/auth-private:latest - echo Push the latest image to cluster - kubectl apply -f auth-config.yml - kubectl apply -f auth-secret.yml From d341499e5c6a5220a86d9973e8fbd8015bc30bde Mon Sep 17 00:00:00 2001 From: "Anandateertha.dev" Date: Fri, 17 May 2024 11:39:26 +0530 Subject: [PATCH 15/35] Changes to repo --- cicd-pipeline.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cicd-pipeline.yml b/cicd-pipeline.yml index 3f1b589..c58c5bd 100644 --- a/cicd-pipeline.yml +++ b/cicd-pipeline.yml @@ -32,7 +32,7 @@ phases: - kubectl get svc - echo Logging in to Amazon ECR... - aws ecr get-login-password --region $AWS_DEFAULT_REGION | docker login --username AWS --password-stdin 471112650922.dkr.ecr.ap-south-1.amazonaws.com - - REPOSITORY_URI=471112650922.dkr.ecr.ap-south-1.amazonaws.com/auth-private:latest + - REPOSITORY_URI=471112650922.dkr.ecr.ap-south-1.amazonaws.com/auth-private - docker pull $REPOSITORY_URI:$IMAGE_TAG From 71df0581a585149945ced291c75e6615c28a7a35 Mon Sep 17 00:00:00 2001 From: "Anandateertha.dev" Date: Fri, 17 May 2024 11:47:53 +0530 Subject: [PATCH 16/35] Change yaml to yml --- auth-secret.yaml => auth-secret.yml | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename auth-secret.yaml => auth-secret.yml (100%) diff --git a/auth-secret.yaml b/auth-secret.yml similarity index 100% rename from auth-secret.yaml rename to auth-secret.yml From eae6c137b00640f577c4647e8cb4d98dad7a4899 Mon Sep 17 00:00:00 2001 From: "Anandateertha.dev" Date: Fri, 17 May 2024 11:54:26 +0530 Subject: [PATCH 17/35] Add service file --- auth-service.yml | 12 ++++++++++++ authentication-service.yml | 14 +------------- cicd-pipeline.yml | 1 + 3 files changed, 14 insertions(+), 13 deletions(-) create mode 100644 auth-service.yml diff --git a/auth-service.yml b/auth-service.yml new file mode 100644 index 0000000..96dfbb4 --- /dev/null +++ b/auth-service.yml @@ -0,0 +1,12 @@ +apiVersion: v1 +kind: Service +metadata: + name: auth-service +spec: + type: LoadBalancer + selector: + app: auth + ports: + - protocol: TCP + port: 80 + targetPort: 8090 \ No newline at end of file diff --git a/authentication-service.yml b/authentication-service.yml index feae867..f4cac11 100644 --- a/authentication-service.yml +++ b/authentication-service.yml @@ -70,16 +70,4 @@ spec: secretKeyRef: name: auth-secret key: aws-secret-key ---- -apiVersion: v1 -kind: Service -metadata: - name: auth-service -spec: - type: LoadBalancer - selector: - app: auth - ports: - - protocol: TCP - port: 80 - targetPort: 8090 + diff --git a/cicd-pipeline.yml b/cicd-pipeline.yml index c58c5bd..850bb56 100644 --- a/cicd-pipeline.yml +++ b/cicd-pipeline.yml @@ -52,5 +52,6 @@ phases: - kubectl apply -f auth-config.yml - kubectl apply -f auth-secret.yml - kubectl apply -f authentication-service.yml + - lubectl apply -f auth-service.yml - kubectl rollout restart -f authentication-service.yml - echo Deployed successfully \ No newline at end of file From ad746f5588a708d32d52d330b1a1f95d3b1ad60f Mon Sep 17 00:00:00 2001 From: "Anandateertha.dev" Date: Fri, 17 May 2024 11:58:41 +0530 Subject: [PATCH 18/35] Fixed bugs --- cicd-pipeline.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cicd-pipeline.yml b/cicd-pipeline.yml index 850bb56..3ab35cc 100644 --- a/cicd-pipeline.yml +++ b/cicd-pipeline.yml @@ -52,6 +52,6 @@ phases: - kubectl apply -f auth-config.yml - kubectl apply -f auth-secret.yml - kubectl apply -f authentication-service.yml - - lubectl apply -f auth-service.yml + - kubectl apply -f auth-service.yml - kubectl rollout restart -f authentication-service.yml - echo Deployed successfully \ No newline at end of file From 34fc958065217557037fe73788b51991bc1fba62 Mon Sep 17 00:00:00 2001 From: "Anandateertha.dev" Date: Fri, 17 May 2024 12:12:51 +0530 Subject: [PATCH 19/35] Change the otp message from 5 min to 2 min --- .../authentication_service/UserServices/UserService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/bookmysport/authentication_service/UserServices/UserService.java b/src/main/java/com/bookmysport/authentication_service/UserServices/UserService.java index d60cec3..b60659b 100644 --- a/src/main/java/com/bookmysport/authentication_service/UserServices/UserService.java +++ b/src/main/java/com/bookmysport/authentication_service/UserServices/UserService.java @@ -327,7 +327,7 @@ public ResponseEntity sendingEmailService(String email, String role) { String response = emailService.sendSimpleMail(email, "Your OTP for resetting your password is " + Integer.toString(otp) - + ". It is valid only for 5 minutes.", + + ". It is valid only for 2 minutes.", "OTP for Resetting your password"); responseMessage.setSuccess(true); responseMessage.setMessage(response); From cd576d17c7e1240d7cdd7458261fdcbe5be625bd Mon Sep 17 00:00:00 2001 From: "Anandateertha.dev" Date: Fri, 17 May 2024 12:23:03 +0530 Subject: [PATCH 20/35] Change 5 min to 2 min --- .../authentication_service/UserServices/UserService.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/bookmysport/authentication_service/UserServices/UserService.java b/src/main/java/com/bookmysport/authentication_service/UserServices/UserService.java index b60659b..e7d6aa4 100644 --- a/src/main/java/com/bookmysport/authentication_service/UserServices/UserService.java +++ b/src/main/java/com/bookmysport/authentication_service/UserServices/UserService.java @@ -73,7 +73,7 @@ public ResponseEntity generateOTPforTwoFAService(UserModel userModel) { String response = emailService.sendSimpleMail(userModel.getEmail(), "Your OTP for Two-Factor Authentication is " + otpForTwoFA - + " . It is valid only for 5 minutes.", + + " . It is valid only for 2 minutes.", "OTP for Two-Factor Authentication"); otpRepo.save(otp); responseMessage.setSuccess(true); @@ -105,7 +105,7 @@ public ResponseEntity generateOTPforTwoFAServiceProviderService(ServiceP String response = emailService.sendSimpleMail(serviceProviderModel.getEmail(), "Your OTP for Two-Factor Authentication is " + otpForTwoFA - + " . It is valid only for 5 minutes.", + + " . It is valid only for 2 minutes.", "OTP for Two-Factor Authentication"); responseMessage.setSuccess(true); responseMessage.setMessage(response); @@ -304,7 +304,7 @@ public ResponseEntity sendingEmailService(String email, String role) { String response = emailService.sendSimpleMail(email, "Your OTP for resetting your password is " + Integer.toString(otp) - + ". It is valid only for 5 minutes.", + + ". It is valid only for 2 minutes.", "OTP for Resetting your password"); responseMessage.setSuccess(true); responseMessage.setMessage(response); From 33c8b922c0c01e33e82bdf55f07f3a3600be81ec Mon Sep 17 00:00:00 2001 From: "Anandateertha.dev" Date: Fri, 17 May 2024 12:37:18 +0530 Subject: [PATCH 21/35] Change the repo name in deployment file --- authentication-service.yml | 2 +- .../authentication_service/UserServices/UserService.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/authentication-service.yml b/authentication-service.yml index f4cac11..7856dfe 100644 --- a/authentication-service.yml +++ b/authentication-service.yml @@ -16,7 +16,7 @@ spec: spec: containers: - name: auth - image: public.ecr.aws/x6u8x6b2/authentication-service:latest + image: 471112650922.dkr.ecr.ap-south-1.amazonaws.com/auth-private:latest ports: - containerPort: 8090 env: diff --git a/src/main/java/com/bookmysport/authentication_service/UserServices/UserService.java b/src/main/java/com/bookmysport/authentication_service/UserServices/UserService.java index e7d6aa4..38b4200 100644 --- a/src/main/java/com/bookmysport/authentication_service/UserServices/UserService.java +++ b/src/main/java/com/bookmysport/authentication_service/UserServices/UserService.java @@ -74,7 +74,7 @@ public ResponseEntity generateOTPforTwoFAService(UserModel userModel) { String response = emailService.sendSimpleMail(userModel.getEmail(), "Your OTP for Two-Factor Authentication is " + otpForTwoFA + " . It is valid only for 2 minutes.", - "OTP for Two-Factor Authentication"); + "OTP for Two-Factor Authentication valid for 2 minutes"); otpRepo.save(otp); responseMessage.setSuccess(true); responseMessage.setMessage(response); From c41ad09eceb40c97b66856f8d76bdf251f9209e6 Mon Sep 17 00:00:00 2001 From: "Anandateertha.dev" Date: Fri, 17 May 2024 12:45:37 +0530 Subject: [PATCH 22/35] Modify somethin' --- .../authentication_service/UserServices/UserService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/bookmysport/authentication_service/UserServices/UserService.java b/src/main/java/com/bookmysport/authentication_service/UserServices/UserService.java index 38b4200..27185b3 100644 --- a/src/main/java/com/bookmysport/authentication_service/UserServices/UserService.java +++ b/src/main/java/com/bookmysport/authentication_service/UserServices/UserService.java @@ -106,7 +106,7 @@ public ResponseEntity generateOTPforTwoFAServiceProviderService(ServiceP String response = emailService.sendSimpleMail(serviceProviderModel.getEmail(), "Your OTP for Two-Factor Authentication is " + otpForTwoFA + " . It is valid only for 2 minutes.", - "OTP for Two-Factor Authentication"); + "OTP for Two-Factor Authentication and valid for 2 minutes"); responseMessage.setSuccess(true); responseMessage.setMessage(response); otpRepo.save(otp); From c18f1bade4fef6221f38832b4898b6bd23ff6388 Mon Sep 17 00:00:00 2001 From: "Anandateertha.dev" Date: Fri, 17 May 2024 14:20:04 +0530 Subject: [PATCH 23/35] Changes done by adding variables --- auth-service.yml | 2 +- authentication-service.yml | 4 ++-- cicd-pipeline.yml | 10 +++++----- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/auth-service.yml b/auth-service.yml index 96dfbb4..90b67ec 100644 --- a/auth-service.yml +++ b/auth-service.yml @@ -9,4 +9,4 @@ spec: ports: - protocol: TCP port: 80 - targetPort: 8090 \ No newline at end of file + targetPort: $PORT \ No newline at end of file diff --git a/authentication-service.yml b/authentication-service.yml index 7856dfe..f43a830 100644 --- a/authentication-service.yml +++ b/authentication-service.yml @@ -16,9 +16,9 @@ spec: spec: containers: - name: auth - image: 471112650922.dkr.ecr.ap-south-1.amazonaws.com/auth-private:latest + image: $ACCOUNT_ID.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com/$IMAGE_REPO_NAME:$IMAGE_TAG ports: - - containerPort: 8090 + - containerPort: $PORT env: - name: DATABASE_URL valueFrom: diff --git a/cicd-pipeline.yml b/cicd-pipeline.yml index 3ab35cc..d2b366d 100644 --- a/cicd-pipeline.yml +++ b/cicd-pipeline.yml @@ -31,8 +31,8 @@ phases: - echo check kubectl access - kubectl get svc - echo Logging in to Amazon ECR... - - aws ecr get-login-password --region $AWS_DEFAULT_REGION | docker login --username AWS --password-stdin 471112650922.dkr.ecr.ap-south-1.amazonaws.com - - REPOSITORY_URI=471112650922.dkr.ecr.ap-south-1.amazonaws.com/auth-private + - aws ecr get-login-password --region $AWS_DEFAULT_REGION | docker login --username AWS --password-stdin $ACCOUNT_ID.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com + - REPOSITORY_URI=$ACCOUNT_ID.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com/$IMAGE_REPO_NAME - docker pull $REPOSITORY_URI:$IMAGE_TAG @@ -40,14 +40,14 @@ phases: commands: - echo Build started on `date` - echo Building the Docker image... - - docker build --cache-from $REPOSITORY_URI:$IMAGE_TAG -t auth-private:$IMAGE_TAG . - - docker tag auth-private:$IMAGE_TAG 471112650922.dkr.ecr.ap-south-1.amazonaws.com/auth-private:$IMAGE_TAG + - docker build --cache-from $REPOSITORY_URI:$IMAGE_TAG -t $IMAGE_REPO_NAME:$IMAGE_TAG . + - docker tag auth-private:$IMAGE_TAG $ACCOUNT_ID.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com/$IMAGE_REPO_NAME:$IMAGE_TAG post_build: commands: - echo Build completed on `date` - echo Pushing the Docker image... - - docker push 471112650922.dkr.ecr.ap-south-1.amazonaws.com/auth-private:latest + - docker push $ACCOUNT_ID.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com/$IMAGE_REPO_NAME:$IMAGE_TAG - echo Push the latest image to cluster - kubectl apply -f auth-config.yml - kubectl apply -f auth-secret.yml From 3e96443aae1e688b1be53c8dad45ea3216246ac7 Mon Sep 17 00:00:00 2001 From: "Anandateertha.dev" Date: Fri, 17 May 2024 14:25:08 +0530 Subject: [PATCH 24/35] Add fixes --- auth-config.yml | 2 +- cicd-pipeline.yml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/auth-config.yml b/auth-config.yml index bffdff9..fc91501 100644 --- a/auth-config.yml +++ b/auth-config.yml @@ -3,6 +3,6 @@ kind: ConfigMap metadata: name: auth-config data: - mysql-url: jdbc:mysql://13.201.130.108:3306/bookmysport + mysql-url: jdbc:mysql://3.111.40.72:3306/bookmysport user-avatar-folder-name: UserAvatars bucket-name: bookmysport.com diff --git a/cicd-pipeline.yml b/cicd-pipeline.yml index d2b366d..a39ccea 100644 --- a/cicd-pipeline.yml +++ b/cicd-pipeline.yml @@ -21,13 +21,13 @@ phases: pre_build: commands: + - echo Uploading aws credentials + - aws configure set aws_access_key_id $YOUR_ACCESS_KEY_ID + - aws configure set aws_secret_access_key $YOUR_SECRET_ACCESS_KEY - echo Logging in to Amazon EKS... - aws eks update-kubeconfig --region $AWS_DEFAULT_REGION --name $AWS_CLUSTER_NAME - echo check config - kubectl config view --minify - - echo Uploading aws credentials - - aws configure set aws_access_key_id $YOUR_ACCESS_KEY_ID - - aws configure set aws_secret_access_key $YOUR_SECRET_ACCESS_KEY - echo check kubectl access - kubectl get svc - echo Logging in to Amazon ECR... From bdfcc8009f77fbb6d36cfba54bd93c44c1e7a915 Mon Sep 17 00:00:00 2001 From: "Anandateertha.dev" Date: Mon, 20 May 2024 14:38:26 +0530 Subject: [PATCH 25/35] Change --- auth-config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth-config.yml b/auth-config.yml index fc91501..87aa441 100644 --- a/auth-config.yml +++ b/auth-config.yml @@ -3,6 +3,6 @@ kind: ConfigMap metadata: name: auth-config data: - mysql-url: jdbc:mysql://3.111.40.72:3306/bookmysport + mysql-url: jdbc:mysql://3.109.123.14:3306/bookmysport user-avatar-folder-name: UserAvatars bucket-name: bookmysport.com From aaac87768e8356237fe5c5b4c15bdb7e9e9bd7df Mon Sep 17 00:00:00 2001 From: "Anandateertha.dev" Date: Mon, 20 May 2024 14:43:24 +0530 Subject: [PATCH 26/35] Update port number --- auth-service.yml | 2 +- authentication-service.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/auth-service.yml b/auth-service.yml index 90b67ec..96dfbb4 100644 --- a/auth-service.yml +++ b/auth-service.yml @@ -9,4 +9,4 @@ spec: ports: - protocol: TCP port: 80 - targetPort: $PORT \ No newline at end of file + targetPort: 8090 \ No newline at end of file diff --git a/authentication-service.yml b/authentication-service.yml index f43a830..02e229e 100644 --- a/authentication-service.yml +++ b/authentication-service.yml @@ -18,7 +18,7 @@ spec: - name: auth image: $ACCOUNT_ID.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com/$IMAGE_REPO_NAME:$IMAGE_TAG ports: - - containerPort: $PORT + - containerPort: 8090 env: - name: DATABASE_URL valueFrom: From e010cf6c233495fa197ef37bcbebbc0087581170 Mon Sep 17 00:00:00 2001 From: "Anandateertha.dev" Date: Mon, 20 May 2024 15:08:23 +0530 Subject: [PATCH 27/35] Change repo name --- authentication-service.yml | 2 +- cicd-pipeline.yml | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/authentication-service.yml b/authentication-service.yml index 02e229e..7856dfe 100644 --- a/authentication-service.yml +++ b/authentication-service.yml @@ -16,7 +16,7 @@ spec: spec: containers: - name: auth - image: $ACCOUNT_ID.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com/$IMAGE_REPO_NAME:$IMAGE_TAG + image: 471112650922.dkr.ecr.ap-south-1.amazonaws.com/auth-private:latest ports: - containerPort: 8090 env: diff --git a/cicd-pipeline.yml b/cicd-pipeline.yml index a39ccea..0b72ae4 100644 --- a/cicd-pipeline.yml +++ b/cicd-pipeline.yml @@ -54,4 +54,6 @@ phases: - kubectl apply -f authentication-service.yml - kubectl apply -f auth-service.yml - kubectl rollout restart -f authentication-service.yml - - echo Deployed successfully \ No newline at end of file + - echo Deployed successfully + - echo Checking kubectl status + - kubectl get all \ No newline at end of file From 1c996017d929c4e582bb254a5050b0f2621e13df Mon Sep 17 00:00:00 2001 From: "Anandateertha.dev" Date: Wed, 22 May 2024 14:21:25 +0530 Subject: [PATCH 28/35] Add env variable for database url --- auth-config.yml | 2 +- cicd-pipeline.yml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/auth-config.yml b/auth-config.yml index 87aa441..98b2f6f 100644 --- a/auth-config.yml +++ b/auth-config.yml @@ -3,6 +3,6 @@ kind: ConfigMap metadata: name: auth-config data: - mysql-url: jdbc:mysql://3.109.123.14:3306/bookmysport + mysql-url: ${MYSQL_URL} user-avatar-folder-name: UserAvatars bucket-name: bookmysport.com diff --git a/cicd-pipeline.yml b/cicd-pipeline.yml index 0b72ae4..4cd742c 100644 --- a/cicd-pipeline.yml +++ b/cicd-pipeline.yml @@ -49,6 +49,8 @@ phases: - echo Pushing the Docker image... - docker push $ACCOUNT_ID.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com/$IMAGE_REPO_NAME:$IMAGE_TAG - echo Push the latest image to cluster + - echo Setting up the database url + - sed -i 's|${MYSQL_URL}|jdbc:mysql://$DATABASE_IP:3306/$DATABASE_NAME|g' auth-config.yml - kubectl apply -f auth-config.yml - kubectl apply -f auth-secret.yml - kubectl apply -f authentication-service.yml From bac817652ba62ce445bf00a180565cc62d201b3f Mon Sep 17 00:00:00 2001 From: "Anandateertha.dev" Date: Wed, 22 May 2024 14:26:23 +0530 Subject: [PATCH 29/35] Add port to env --- auth-service.yml | 2 +- cicd-pipeline.yml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/auth-service.yml b/auth-service.yml index 96dfbb4..5b98f89 100644 --- a/auth-service.yml +++ b/auth-service.yml @@ -9,4 +9,4 @@ spec: ports: - protocol: TCP port: 80 - targetPort: 8090 \ No newline at end of file + targetPort: ${PORT} \ No newline at end of file diff --git a/cicd-pipeline.yml b/cicd-pipeline.yml index 4cd742c..5abed01 100644 --- a/cicd-pipeline.yml +++ b/cicd-pipeline.yml @@ -51,6 +51,8 @@ phases: - echo Push the latest image to cluster - echo Setting up the database url - sed -i 's|${MYSQL_URL}|jdbc:mysql://$DATABASE_IP:3306/$DATABASE_NAME|g' auth-config.yml + - echo Setting up the PORT + - sed -i 's|${PORT}|$PORT|g' auth-service.yml - kubectl apply -f auth-config.yml - kubectl apply -f auth-secret.yml - kubectl apply -f authentication-service.yml From 7d997da9898a94a54f91c6d355a2c1157ef4d843 Mon Sep 17 00:00:00 2001 From: "Anandateertha.dev" Date: Wed, 22 May 2024 14:43:10 +0530 Subject: [PATCH 30/35] Add image repo name in env --- cicd-pipeline.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cicd-pipeline.yml b/cicd-pipeline.yml index 5abed01..6dfd7d5 100644 --- a/cicd-pipeline.yml +++ b/cicd-pipeline.yml @@ -41,7 +41,7 @@ phases: - echo Build started on `date` - echo Building the Docker image... - docker build --cache-from $REPOSITORY_URI:$IMAGE_TAG -t $IMAGE_REPO_NAME:$IMAGE_TAG . - - docker tag auth-private:$IMAGE_TAG $ACCOUNT_ID.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com/$IMAGE_REPO_NAME:$IMAGE_TAG + - docker tag $IMAGE_REPO_NAME:$IMAGE_TAG $ACCOUNT_ID.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com/$IMAGE_REPO_NAME:$IMAGE_TAG post_build: commands: From 082adf6544e5424d2ce96a6559bed1c3e80b6763 Mon Sep 17 00:00:00 2001 From: "Anandateertha.dev" Date: Wed, 22 May 2024 14:59:17 +0530 Subject: [PATCH 31/35] Add port number --- auth-service.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth-service.yml b/auth-service.yml index 5b98f89..96dfbb4 100644 --- a/auth-service.yml +++ b/auth-service.yml @@ -9,4 +9,4 @@ spec: ports: - protocol: TCP port: 80 - targetPort: ${PORT} \ No newline at end of file + targetPort: 8090 \ No newline at end of file From b2fedfae06dccabed0610804bc84a1c4add209e6 Mon Sep 17 00:00:00 2001 From: "Anandateertha.dev" Date: Wed, 22 May 2024 15:08:36 +0530 Subject: [PATCH 32/35] Add image url --- .env.example | 1 + authentication-service.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.env.example b/.env.example index 5f9c6b4..d0934a3 100644 --- a/.env.example +++ b/.env.example @@ -8,3 +8,4 @@ USER_AVATAR_FOLDER_NAME= BUCKET_NAME= AWS_ACCESS_KEY_ID= AWS_SECRET_ACCESS_KEY= +FRONTEND_URL= \ No newline at end of file diff --git a/authentication-service.yml b/authentication-service.yml index 7856dfe..b079d1d 100644 --- a/authentication-service.yml +++ b/authentication-service.yml @@ -16,7 +16,7 @@ spec: spec: containers: - name: auth - image: 471112650922.dkr.ecr.ap-south-1.amazonaws.com/auth-private:latest + image: 471112650922.dkr.ecr.ap-south-1.amazonaws.com/authentication-service:latest ports: - containerPort: 8090 env: From 5dec7a5d044fa40a47ccb7ad1d0cc07ff2efa9f4 Mon Sep 17 00:00:00 2001 From: "Anandateertha.dev" Date: Wed, 22 May 2024 15:19:29 +0530 Subject: [PATCH 33/35] Add url for database --- auth-config.yml | 2 +- cicd-pipeline.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/auth-config.yml b/auth-config.yml index 98b2f6f..34dc5eb 100644 --- a/auth-config.yml +++ b/auth-config.yml @@ -3,6 +3,6 @@ kind: ConfigMap metadata: name: auth-config data: - mysql-url: ${MYSQL_URL} + mysql-url: jdbc:mysql://13.233.137.1:3306/bookmysport user-avatar-folder-name: UserAvatars bucket-name: bookmysport.com diff --git a/cicd-pipeline.yml b/cicd-pipeline.yml index 6dfd7d5..ca017b9 100644 --- a/cicd-pipeline.yml +++ b/cicd-pipeline.yml @@ -50,7 +50,7 @@ phases: - docker push $ACCOUNT_ID.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com/$IMAGE_REPO_NAME:$IMAGE_TAG - echo Push the latest image to cluster - echo Setting up the database url - - sed -i 's|${MYSQL_URL}|jdbc:mysql://$DATABASE_IP:3306/$DATABASE_NAME|g' auth-config.yml + - sed -i 's|${MYSQL_URL}|http://$DATABASE_IP:3306/$DATABASE_NAME|g' auth-config.yml - echo Setting up the PORT - sed -i 's|${PORT}|$PORT|g' auth-service.yml - kubectl apply -f auth-config.yml From 1a18b6b0f5333a60eb281c982cd781bd14fa912e Mon Sep 17 00:00:00 2001 From: "Anandateertha.dev" Date: Wed, 22 May 2024 15:38:49 +0530 Subject: [PATCH 34/35] Add frontnd url --- auth-config.yml | 1 + authentication-service.yml | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/auth-config.yml b/auth-config.yml index 34dc5eb..21e62a7 100644 --- a/auth-config.yml +++ b/auth-config.yml @@ -6,3 +6,4 @@ data: mysql-url: jdbc:mysql://13.233.137.1:3306/bookmysport user-avatar-folder-name: UserAvatars bucket-name: bookmysport.com + front-end-url: https://main.deykszmd4gftl.amplifyapp.com/ diff --git a/authentication-service.yml b/authentication-service.yml index b079d1d..44c187f 100644 --- a/authentication-service.yml +++ b/authentication-service.yml @@ -60,6 +60,11 @@ spec: configMapKeyRef: name: auth-config key: bucket-name + - name: FRONTEND_URL + valueFrom: + configMapKeyRef: + name: auth-config + key: front-end-url - name: AWS_ACCESS_KEY_ID valueFrom: secretKeyRef: From a09924f42e527c8db0092a96e4b247a875fbba1f Mon Sep 17 00:00:00 2001 From: "Anandateertha.dev" Date: Wed, 22 May 2024 16:48:32 +0530 Subject: [PATCH 35/35] Change frontend url --- auth-config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth-config.yml b/auth-config.yml index 21e62a7..36ec5fc 100644 --- a/auth-config.yml +++ b/auth-config.yml @@ -6,4 +6,4 @@ data: mysql-url: jdbc:mysql://13.233.137.1:3306/bookmysport user-avatar-folder-name: UserAvatars bucket-name: bookmysport.com - front-end-url: https://main.deykszmd4gftl.amplifyapp.com/ + front-end-url: http://13.233.137.1:5173