Skip to content

Kv-062-DevOps/DB_Service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Backend service: Helm chart, Terraform for creating AWS DynamoDB, Docker for ECR, Workflow for GitHub Actions.


    1. Create own DynamoDB if you want (you can edit file for 'region' parameter). If you want to use existed - ask owner of DB for credentials and go to step 3. terraform init terraform plan -out=filepath terraform apply
    1. Create IAM role for all access to DB.(You can add such feature to your terraform).
    1. Start Kubernetes cluster.
    1. Create own ECR or use existed. Manual to use existed 'https://github.com/Kv-062-DevOps/k8s-deploy/blob/master/ecr.md'. For own use dynamodb_web branch.
    1. Let's deploy. Happy helming!
    • At first, let's check if all is correct. Default only is tag=latest helm install --dry-run --debug --set secretFile=ImagePullSecretCredFile --set registry=ecrAddress --ser tag=registryTag --set Region="dynamodb-region" --set secret_key="dynamodb-secret-key" --set access_key="dynamodb-access-key" helm-chart-specific-name ./helm-chart-dir
  • secretFile - by default = awsecr-cred.
  • registry - by default = 074368059797.dkr.ecr.eu-central-1.amazonaws.com/back.
  • tag - by default = latest.
  • region - by default = "local".
  • secret and acess key - by default = "anything" helm install --set secretFile=ImagePullSecretCredFile --set registry=ecrAddress --ser tag=registryTag --set Region="dynamodb-region" --set secret_key="dynamodb-secret-key" --set access_key="dynamodb-access-key" helm-chart-specific-name ./helm-chart-dir
    1. Check for working. kubectl get all && kubectl port-forward service/back-srv 8083:8083
    1. Go to browser and enter "http://127.0.0.1:8083/list".

About

Python Flask & DynamoDB

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published