Resource Connections
Resource connections allow you to link different resources together within a project environment. For example:- Connect an application to a server (instance) - the application will be installed on the server
- Connect a server to a database - security groups and networking will be configured to allow access
Create Resource Connection
POST /api/:projectSlug/:environmentSlug/resource-connections- Create a connection between two resources
instance- EC2 instances/serversapplication- Application filesdatabase- RDS databasesterminal- Terminal resourcesfirewall- Firewall/security group resourcesstorage_bucket- S3 storage bucketsbucket_explorer- Bucket explorer resourcesstatic_website- Static website resources
application→instance(Applications can only connect to instances)terminal→instance(Terminals connect to instances via SSH)bucket_explorer→storage_bucketorstatic_website(Bucket explorers connect to storage)instance→firewall(Instances protected by firewalls)
List Resource Connections
GET /api/:projectSlug/:environmentSlug/resource-connections- List all connections in a project environment
sourceResourceType- Filter by source resource typesourceResourceId- Filter by source resource IDtargetResourceType- Filter by target resource typetargetResourceId- Filter by target resource IDstatus- Filter by connection status (pending,connecting,connected,failed,disconnected)
Get Connection Details
GET /api/:projectSlug/:environmentSlug/resource-connections/:connectionId- Get details of a specific connection
Update Connection
PATCH /api/:projectSlug/:environmentSlug/resource-connections/:connectionId- Update connection status or details
pending- Connection created but not yet processedconnecting- Connection is being establishedconnected- Connection is active and configuredfailed- Connection failed to establishdisconnected- Connection was disconnected
Delete Connection
DELETE /api/:projectSlug/:environmentSlug/resource-connections/:connectionId- Delete a resource connection (soft delete)
Get Resource Connections
GET /api/:projectSlug/:environmentSlug/resources/:resourceType/:resourceId/connections- Get all connections for a specific resource (both as source and target)