Terraform + Serverless deployment orchestrator
Project description
TFS Deploy
Terraform + Serverless deployment orchestrator for FaaS services.
Installation
pip install tfs-deploy
Usage
Deploy a service
# Deploy with default settings (dev stage, us-west-1 region)
tfs deploy
# Deploy to specific stage and region
tfs deploy --stage prod --region cn-beijing
# Skip certain steps
tfs deploy --skip-terraform --skip-tests
# Auto-approve Terraform changes
tfs deploy --auto-approve
Destroy infrastructure
tfs destroy --stage dev
Initialize a new project
tfs init
Project Structure
TFS Deploy expects the following structure:
my-service/
├── main.tf # Terraform infrastructure
├── s.yaml # Serverless configuration
├── .env # Environment variables
├── scripts/ # Deployment scripts
├── src/ # Source code
└── tests/
├── unit/ # Unit tests
└── integration/ # Integration tests
Environment Variables
STAGE- Deployment stage (dev, beta, prod)REGION- Cloud regionPROFILE- Cloud provider CLI profileTF_VAR_*- Terraform variables
How It Works
- Terraform: Applies infrastructure changes and exports outputs to
.env.terraform - s deploy: Runs
s deployfor function deployment - Integration Tests: Runs pytest on the deployed service
Example s.yaml
edition: 3.0.0
name: my-service
access: default
resources:
my-function:
component: fc3
props:
region: ${vars.region}
functionName: my-function-${vars.stage}
# ...
License
MIT
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tfs_deploy-0.1.2.tar.gz
(5.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tfs_deploy-0.1.2.tar.gz.
File metadata
- Download URL: tfs_deploy-0.1.2.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Deepin","version":"25","id":"crimson","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
61d37dd92685a626c926da22d399f5b100cf6e4a7c6d139e1a97375381a3f3ca
|
|
| MD5 |
afd6f2c9b0833ed1099be09beefe9a57
|
|
| BLAKE2b-256 |
1c66a2aaa608dd52ea70ac40ddc022f35dbad9ad4c8c131f639b03cf3a5913ac
|
File details
Details for the file tfs_deploy-0.1.2-py3-none-any.whl.
File metadata
- Download URL: tfs_deploy-0.1.2-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Deepin","version":"25","id":"crimson","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b4ca6aa78f1e4768c898e0dc2c2bd330e15164546b8eb97db79bd1e9d3fe138c
|
|
| MD5 |
755069ea60352b71a9ce5a7ff16079cd
|
|
| BLAKE2b-256 |
f46e6014867c3a40a014183a789a6d3cc452d6b39615b9668aba0045bae9445a
|