https://github.com/noahgift/devops-2022
This is a repo for DevOps
https://github.com/noahgift/devops-2022
Last synced: 3 months ago
JSON representation
This is a repo for DevOps
- Host: GitHub
- URL: https://github.com/noahgift/devops-2022
- Owner: noahgift
- Created: 2022-08-09T12:39:24.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-08-09T15:40:33.000Z (about 3 years ago)
- Last Synced: 2025-06-23T12:44:42.653Z (4 months ago)
- Language: Python
- Size: 12.7 KB
- Stars: 6
- Watchers: 2
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://github.com/noahgift/DevOps-2022/actions/workflows/main.yml)
[
# 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](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/translate.html#Translate.Client.translate_text)
[API Languages](https://docs.aws.amazon.com/translate/latest/dg/API_ListLanguages.html)
```
response = client.translate_text(
Text='string',
TerminologyNames=[
'string',
],
SourceLanguageCode='string',
TargetLanguageCode='string',
Settings={
'Formality': 'FORMAL'|'INFORMAL',
'Profanity': 'MASK'
}
)
```Example of text:
```python
text = """Lambda is a compute service that lets you
run code without provisioning or managing servers."""
```### Continuous Delivery with Code Build
```
version: 0.2phases:
#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
```