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.5.tar.gz
(5.9 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.5.tar.gz.
File metadata
- Download URL: tfs_deploy-0.1.5.tar.gz
- Upload date:
- Size: 5.9 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 |
57be23401a8c8cbbf7235d5987282788e240638c773fc91056ff0634e79b2038
|
|
| MD5 |
473fdddd2a71f23bdef96c83a91c61da
|
|
| BLAKE2b-256 |
8356fa4f556f8aed467ffe099d1d6a5461b882fa40c0a2ae4bd3793b08547884
|
File details
Details for the file tfs_deploy-0.1.5-py3-none-any.whl.
File metadata
- Download URL: tfs_deploy-0.1.5-py3-none-any.whl
- Upload date:
- Size: 6.7 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 |
cf5554485b2ea39e6939d4816e38c8f1cc67a673b6c22c72ae61e7b6bd214bbf
|
|
| MD5 |
d554f6952f4b60237db7378bfe45f61c
|
|
| BLAKE2b-256 |
d40d8a12ca5ab94f83a215a3c0bc92e5415a0392b48e12c0ce5e2917f30945b3
|