Basic Linking
Link resources in your infrastructure code:sst.config.ts
src/lambda.py
Linking Secrets
Secrets work the same way:sst.config.ts
Automatic Permissions
Linking automatically grants IAM permissions:Multiple Resources
Link as many resources as needed:Linking to API Routes
Link resources to API Gateway routes:src/get_users.py
Linking to Queue Subscribers
src/process.py
Best Practices
Link Only What You Need
Use Type Hints
Organize Imports
Related
Resource Access
Learn more about the Resource API
Python Functions
Deploy Python Lambda functions