nexjiho / Devops-repo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Python application test with Github Actions

[code build

DevOps-2022

This is a repo for DevOps

Process for Prototyping

  1. Try idea out in IPython
  2. Make a function
  3. Build a command-line tool.

How to use Boto3 and AWS to Translate

Boto3 Translate Docs

API Languages

response = client.translate_text(
    Text='string',
    TerminologyNames=[
        'string',
    ],
    SourceLanguageCode='string',
    TargetLanguageCode='string',
    Settings={
        'Formality': 'FORMAL'|'INFORMAL',
        'Profanity': 'MASK'
    }
)

Example of text:

text = """Lambda is a compute service that lets you 
    run code without provisioning or managing servers."""

Continuous Delivery with Code Build

version: 0.2

phases:
  #install:
  build:
    commands:
       - aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin 561744971673.dkr.ecr.us-east-1.amazonaws.com
       - docker build -t fastapicd .
       - docker tag fastapicd:latest 561744971673.dkr.ecr.us-east-1.amazonaws.com/fastapicd:latest
       - docker push 561744971673.dkr.ecr.us-east-1.amazonaws.com/fastapicd:latest

About


Languages

Language:Python 82.9%Language:Makefile 8.9%Language:Dockerfile 8.1%