Transfer Family Cost Optimizer
What this skill does
Translates an AWS Transfer Family server's runtime posture into a
concrete cost-optimization recommendation with a dollar-denominated
savings estimate. The verdict is the highest-leverage action across
eight dimensions — endpoint type, idle server detection, protocol
selection, concurrency right-sizing, session duration, managed workflow
cost, CloudWatch Logs volume, and custom identity provider cost —
applied in priority order. Always pairs the recommendation with exact
CLI commands.
Quick navigation
| Section |
What it covers |
When to jump here |
| Quick start |
Five headline rules and the cost formula |
First read |
| Mindset |
Why endpoint type and idle detection are the top levers |
Understanding the approach |
| Quick reference — verdict thresholds |
Decision matrix at a glance |
Classifying a server |
| Pre-flight data gate |
Server config, CloudWatch metrics, Cost Explorer |
Before any recommendation |
| Step 0 non-obvious behaviours |
Endpoint pricing, idle charging, workflow scaling |
Edge cases |
| Step 1 Endpoint type |
PUBLIC vs VPC vs VPC_ENDPOINT |
The headline savings dimension |
| Step 2 Idle server detection |
Per-hour charge on idle servers |
Sporadic-usage servers |
| Step 3 Protocol selection |
SFTP vs FTPS vs FTP |
Protocol cost implications |
| Step 4 Concurrency right-sizing |
Concurrency limit vs server count |
Multi-server deployments |
| Step 5 Session duration analysis |
Long sessions tie up slots |
Session-heavy workloads |
| Step 6 Managed workflow cost |
Step Functions per-file scaling |
Workflow-enabled servers |
| Step 7 CloudWatch Logs volume |
SFTP logging cost |
High-volume servers |
| Step 8 Custom identity provider |
Lambda per-auth cost |
Custom IdP deployments |
| Step 9 Impact estimation |
The cost formula and worked math |
Every recommendation |
| Output format |
VERDICT block + worked examples |
Emitting the result |
| Anti-Patterns — NEVER |
Common misclassifications |
Self-check before emit |
| Pre-flight safety checks |
CONFIRM gate, protocol verification |
Before any apply CLI |
Quick start
- Endpoint type is the #1 lever. PUBLIC endpoint is the cheapest
— no VPC, no NAT Gateway, no VPC_ENDPOINT hourly surcharge. VPC and
VPC_ENDPOINT add per-hour cost plus NAT Gateway data processing for
outbound traffic. Migrate to PUBLIC wherever the network topology
permits.
- Cost formula (memorise this):
monthly_transfer_cost = (server_hourly_rate × 730 hours) + (GB_transferred × per_GB_rate) + (workflow_executions × step_rate) + (CloudWatch_Logs_GB × logs_rate) + (Lambda_IdP_invocations × lambda_rate)
- Idle servers still charge per hour. A Transfer server with zero
sessions still incurs the full per-hour rate (~$0.30/hour = ~$219/month
per server, PUBLIC). Detect and stop servers with near-zero
ConcurrentSessions.
- Managed workflow cost scales with file count, not file size. A
Step Functions managed workflow charges per execution (per file). 1M
small files cost the same workflow fee as 1M large files — the
per-file overhead dominates for high-volume small-file workloads.
- CloudWatch Logs can dominate cost. SFTP logging to CloudWatch
generates one log event per file transfer. At high file volumes,
the CloudWatch Logs ingest cost can exceed the Transfer server cost.
Mindset
per-hour dominance, endpoint+NAT compounding, invisible workflow cost, silent log multiplier — moved verbatim.
Full detail: Advanced patterns.
Quick reference — verdict thresholds
| Observation (14-30 day window) |
Verdict |
Recommendation |
| EndpointType = VPC or VPC_ENDPOINT AND public internet access is acceptable for the use case |
FURTHER_OPTIMIZATION_AVAILABLE (endpoint) |
Step 1 — migrate to PUBLIC |
| ConcurrentSessions avg < 0.1 AND server runs 24/7 |
FURTHER_OPTIMIZATION_AVAILABLE (idle) |
Step 2 — stop the server, use on-demand |
| Multiple servers AND combined ConcurrentSessions < single-server concurrency limit |
FURTHER_OPTIMIZATION_AVAILABLE (server count) |
Step 4 — consolidate onto fewer servers |
| Managed workflow enabled AND file count > 100,000/month AND workflow is multi-step |
FURTHER_OPTIMIZATION_AVAILABLE (workflow) |
Step 6 — simplify workflow or batch files |
| CloudWatch Logs volume > 100 GB/month from Transfer logging |
FURTHER_OPTIMIZATION_AVAILABLE (logging) |
Step 7 — reduce log verbosity or archive |
| Custom IdP Lambda invocations > 50,000/month AND auth caching not configured |
FURTHER_OPTIMIZATION_AVAILABLE (IdP) |
Step 8 — enable auth caching or batch |
| ConcurrentSessions sustained > 90% of configured concurrency |
FURTHER_OPTIMIZATION_AVAILABLE (concurrency) |
Step 4 — increase concurrency or add server |
| Average session duration > 30 min AND sessions are file-transfer-only |
FURTHER_OPTIMIZATION_AVAILABLE (session) |
Step 5 — investigate idle session hold |
| All dimensions verified AND PUBLIC + no idle + no workflow waste + logs controlled |
OPTIMIZED |
None — continue monitoring |
| Cost Explorer Transfer line items absent or window < 14 days |
NEED_MORE_INFO |
Pull 14-30 day Cost Explorer data, re-evaluate |
Pre-flight: data gate (run before any optimization decision)
Optimization decisions are only as good as the underlying data. Pull
these metrics before any recommendation. Full CLI sequences are in
references/transfer-pricing-and-endpoint-types.md.
server config, CloudWatch metrics, user activity, workflows, logs volume, Cost Explorer, IdP Lambda, Step Functions — moved verbatim.
Full detail: Diagnostic commands.
Data-quality short-circuits
ResourceNotFound, absent metrics/line items, short window, OFFLINE, IAM deny — moved verbatim.
Full detail: Diagnostic commands.
Process — Optimization logic (apply in order)
Step 0: Non-obvious behaviours that change the recommendation
PUBLIC vs NAT, idle charging, per-GB fee, workflow file-count scaling, log multiplier, FTP availability, IdP per-auth, per-server concurrency, sticky sessions, host-key rotation — moved verbatim.
Full detail: Advanced patterns.
Step 1: Endpoint type — PUBLIC vs VPC vs VPC_ENDPOINT
The endpoint type is the primary cost lever because it determines both
the per-hour rate and whether NAT Gateway data-processing fees apply.
per-hour rates, NAT Gateway per-GB, VPC endpoint fees — moved verbatim.
Full detail: Pricing and endpoint types.
Decision tree:
Does the use case require private/VPC-internal access?
├── NO (clients connect from the public internet)
│ └── Use PUBLIC. It is the cheapest and avoids NAT Gateway cost.
├── YES — internal-only (no public internet access needed)
│ └── Use VPC_ENDPOINT. No internet gateway required.
└── YES — private connectivity with outbound internet needs
└── Use VPC. Accept the NAT Gateway cost as a network requirement.
vpc_monthly vs public_monthly formula, 500 GB worked example — moved verbatim.
Full detail: Worked examples.
Step 2: Idle server detection
Idle servers charge per hour regardless of usage. Detecting and
stopping them is the second lever.
Idle detection threshold:
| ConcurrentSessions (14-30 day avg) |
Verdict |
| 0 (never used) |
Server may be orphaned. Verify with the owning team before deleting. |
| < 0.1 (near-zero) |
Idle. Consider deleting if the use case has moved to alternatives. |
| 0.1 – 1 |
Low-usage. Evaluate whether the per-hour cost justifies the usage. |
| > 1 |
Active. Proceed to other dimensions. |
delete, migrate to serverless, keep-but-document — moved verbatim.
Full detail: Advanced patterns.
Step 3: Protocol selection (SFTP vs FTPS vs FTP)
Protocol selection rarely affects per-hour cost directly, but affects
session duration and retry patterns.
SFTP baseline, FTPS TLS overhead, FTP VPC-only — moved verbatim.
Full detail: Advanced patterns.
Step 4: Concurrency right-sizing vs server count
Concurrency limit is per-server. Spawning multiple servers to handle
more sessions is a cost decision vs increasing the concurrency limit
on a single server.
Decision gate:
| Observed ConcurrentSessions |
Configured concurrency |
Recommendation |
| avg < 50% of configured |
High |
Reduce configured concurrency to ~p99 + 20% headroom |
| avg > 90% of configured |
Low |
Increase concurrency limit OR add a server |
| Multiple servers, each < 30% utilized |
Over-provisioned |
Consolidate onto fewer servers |
N vs M servers formula, 3-to-1 worked example — moved verbatim.
Full detail: Worked examples.
Step 5: User session duration analysis
idle hold timeout, business-hours stop, connect-without-transfer audit — moved verbatim.
Full detail: Advanced patterns.
Step 6: Managed workflow cost (Step Functions)
Managed workflows run Step Functions state machines on file upload/
download events. Cost scales with file count, not file size.
Workflow cost formula:
workflow_monthly_cost = files_per_month × steps_per_workflow × $0.025/1000
2M-file $250/month example, workflow optimization signals — moved verbatim.
Full detail: Worked examples.
Step 7: CloudWatch Logs volume
SFTP logging generates one log event per file transfer. At high file
volumes, the CloudWatch Logs ingest cost can exceed the server cost.
Logging cost formula:
logs_monthly_cost = log_GB_per_month × $0.50/GB (ingest)
+ log_GB_per_month × $0.03/GB (storage, first 5 GB free)
verbosity reduction, retention, log level, S3+Athena export — moved verbatim.
Full detail: Advanced patterns.
Step 8: Custom identity provider Lambda cost
Custom identity providers (API_GATEWAY type) invoke a Lambda function
on every SFTP authentication. At high session-start rates, the Lambda
- API Gateway cost compounds.
IdP cost formula:
idp_monthly_cost = sessions_started_per_month × (lambda_per_invocation + apigw_per_request)
auth caching, Lambda URL vs API Gateway, provisioned concurrency, session reuse — moved verbatim.
Full detail: Advanced patterns.
Step 9: Impact estimation
current vs projected monthly cost formulas, savings, assumptions — moved verbatim.
Full detail: Pricing and endpoint types.
Step 10: Final verdict
- Any dimension recommends a change → FURTHER_OPTIMIZATION_AVAILABLE.
- All dimensions verified AND PUBLIC endpoint + no idle servers +
no workflow waste + logs controlled → OPTIMIZED.
- Change applied and verified this session → OPTIMIZED (post-state).
- Data insufficient (metrics absent, window < 14 days) →
NEED_MORE_INFO.
Never emit FURTHER_OPTIMIZATION_AVAILABLE without first discharging
every NEED_MORE_INFO/BLOCKED gate.
Output format
TARGET: <server-id>
VERDICT: OPTIMIZED | FURTHER_OPTIMIZATION_AVAILABLE
REASON: <1-2 sentences naming the recommendation and the supporting data>
RECOMMENDATION:
Current: <endpoint type>, <concurrency>, <servers>, <workflow>, <logs volume>
Proposed: <endpoint type>, <concurrency>, <servers>, <workflow>, <logs volume>
Dimensions changed: <endpoint | idle | protocol | concurrency | session | workflow | logs | idp>
Dimensions checked: <list ALL eight, each ✓ (no finding) or → (finding)>
Confidence: <HIGH/MEDIUM/LOW> — <one-line rationale>
ESTIMATED_SAVINGS:
Current monthly: $<amount>
server hourly: <N_servers × $0.30 × 730>
data transfer: <GB × $0.04/GB>
workflow: <executions × steps × $0.025/1000>
CloudWatch Logs: <GB × $0.50>
Lambda IdP: <invocations × per-invocation>
NAT Gateway: <GB × $0.045> [if VPC]
Projected monthly: $<amount>
Monthly saving: $<amount> ← MUST equal Current − Projected, 2 decimals
Annual saving: $<amount> ← MUST equal Monthly × 12
Assumptions: <list (server count, GB transferred, pricing region, etc.)>
MIGRATION_STEPS:
1. <specific action with CLI command>
2. <verification step>
CONFIRM: Before executing any state-changing CLI, emit and await operator
approval: "CONFIRM: About to <action> on <server-id> in <region>.
Proceed? (yes/no)"
Full worked examples (endpoint migration, idle server deletion,
workflow simplification, log reduction, already-optimized,
NEED_MORE_INFO, and end-to-end walkthrough) are in
references/worked-examples.md.
STRICT output contract
The rules below are hard constraints. Violating any one produces a
misclassification or an arithmetic contradiction that breaks downstream
FinOps automation. Self-check EVERY emitted block against these rules
before returning the response.
Required output structure
Every response MUST be a single block using these literal labels, in this
order. Do NOT substitute markdown headings, camelCase, or bold variants.
TARGET: <server-id>
VERDICT: OPTIMIZED | FURTHER_OPTIMIZATION_AVAILABLE
REASON: <1-2 sentences naming the recommendation and the supporting data>
RECOMMENDATION:
Current: <endpoint type>, <concurrency>, <servers>, <workflow>, <logs volume>
Proposed: <endpoint type>, <concurrency>, <servers>, <workflow>, <logs volume>
Dimensions changed: <endpoint | idle | protocol | concurrency | session | workflow | logs | idp>
Dimensions checked: <list ALL eight, each ✓ (no finding) or → (finding)>
Confidence: <HIGH/MEDIUM/LOW> — <one-line rationale>
ESTIMATED_SAVINGS:
Current monthly: $<amount> ← MUST show all cost subtotals
Projected monthly: $<amount>
Monthly saving: $<amount> ← MUST equal Current − Projected, 2 decimals
Annual saving: $<amount> ← MUST equal Monthly × 12
MIGRATION_STEPS:
1. <specific action with CLI command>
2. <verification step>
CONFIRM: <confirmation prompt text>
FORBIDDEN output patterns
NEVER emit VERDICT: FURTHER_OPTIMIZATION_AVAILABLE with
Monthly saving: $0.00. If every dimension nets zero cost delta,
the verdict MUST be OPTIMIZED.
NEVER show savings math that does not balance.
Current monthly − Projected monthly MUST equal Monthly saving,
rounded to 2 decimal places.
NEVER emit scratch lines ("WAIT — recompute", "Hmm, let me redo",
"corrected:") in the output. Finalize the math before emitting.
NEVER recommend an endpoint type change without citing the network
topology constraint. The REASON MUST name the current endpoint
type, the target endpoint type, and why the migration is safe (or
blocked).
NEVER omit a dimension from the RECOMMENDATION block. The
Dimensions checked line MUST list all eight dimensions, each marked
✓ (no finding) or → (finding).
NEVER present a cost-neutral reconfiguration as "cost savings."
Surface the concurrency/latency improvement explicitly and set
Monthly saving: $0.00 with verdict OPTIMIZED (or
FURTHER_OPTIMIZATION_AVAILABLE ONLY if a different dimension has
positive saving).
NEVER round intermediate formula steps differently from the final
figure. Compute at full precision, round only the displayed result.
Perfect example output — FURTHER_OPTIMIZATION_AVAILABLE with verified math
Every field below is internally consistent. Copy this shape exactly.
TARGET: s-1234abcdef5678901
VERDICT: FURTHER_OPTIMIZATION_AVAILABLE
REASON: VPC endpoint server with outbound traffic via NAT Gateway
averages 0.5 concurrent sessions (near-idle) and processes 1,500 GB/month
outbound ($67.50/month NAT data processing alone). ConcurrentSessions
peak is 3, well under the configured concurrency of 10. Managed
workflow (5-step) runs on 2,000,000 files/month, generating $250/month
in Step Functions charges. CloudWatch Logs volume is 300 GB/month
($150/month in ingest). Migrating to PUBLIC eliminates NAT overhead;
consolidating concurrency and simplifying the workflow reduce the
remaining spend.
RECOMMENDATION:
Current: VPC, concurrency 10, 1 server, 5-step workflow, 300 GB logs/month
Proposed: PUBLIC, concurrency 5, 1 server, 3-step workflow, 50 GB logs/month
Dimensions changed: endpoint (Step 1) + workflow (Step 6) + logs (Step 7)
Dimensions checked: endpoint → (VPC to PUBLIC) idle ✓ (avg 0.5 is low but not zero)
protocol ✓ (SFTP) concurrency → (10 to 5) session ✓ (no idle hold)
workflow → (5-step to 3-step) logs → (300 GB to 50 GB) idp ✓ (no custom IdP)
Confidence: HIGH — server config cited; Cost Explorer cross-check agrees;
PUBLIC migration safe (clients connect from public internet).
ESTIMATED_SAVINGS:
Current monthly: $819.50
server hourly: 1 × $0.30 × 730 = $219.00
data transfer: 1,500 GB × $0.04 = $60.00
workflow: 2,000,000 × 5 × $0.000025 = $250.00
CloudWatch Logs: 300 GB × $0.50 = $150.00
NAT Gateway: 1,500 GB × $0.045 = $67.50
Lambda IdP: $0.00 (service-managed)
VPC endpoint: $73.00
Projected monthly: $422.00
server hourly: 1 × $0.30 × 730 = $219.00
data transfer: 1,500 GB × $0.04 = $60.00
workflow: 2,000,000 × 3 × $0.000025 = $150.00
CloudWatch Logs: 50 GB × $0.50 = $25.00
NAT Gateway: $0.00 (PUBLIC, no NAT)
Lambda IdP: $0.00
VPC endpoint: $0.00 (PUBLIC)
Monthly saving: $397.50
($819.50 − $422.00 = $397.50 ✓)
Annual saving: $4,770.00
MIGRATION_STEPS:
1. Verify all clients can connect over the public internet:
aws transfer describe-server --server-id s-1234abcdef5678901 | \
jq '.EndpointType, .Protocols'
2. Create a new PUBLIC server with the same configuration:
aws transfer create-server --endpoint-type PUBLIC --protocols SFTP \
--identity-provider-type SERVICE_MANAGED --region us-east-1
3. Migrate users to the new server:
aws transfer create-user --server-id <new-id> --user-name <user> \
--ssh-public-key-body <key>
4. Simplify the managed workflow from 5 steps to 3:
aws transfer create-workflow --steps <simplified-steps-json>
5. Reduce CloudWatch Logs verbosity (log only authentication + errors):
aws transfer update-server --server-id <new-id> \
--logging-role arn:aws:iam::<acct>:role/TransferLogging
6. Delete the old VPC server once migration is confirmed:
aws transfer delete-server --server-id s-1234abcdef5678901
7. Monitor Cost Explorer (Service=Transfer) for 7 days post-change:
aws ce get-cost-and-usage --filter '{"Dimensions":{"Key":"SERVICE","Values":["Transfer"]}}'
CONFIRM: About to migrate s-1234abcdef5678901 from VPC to PUBLIC endpoint,
simplify workflow from 5 steps to 3, and reduce log volume from 300 GB
to 50 GB. Monthly saving $397.50 (48.5% reduction). Proceed? (yes/no)
Self-check before emit:
Verdict semantics
| Verdict |
When to emit |
FURTHER_OPTIMIZATION_AVAILABLE |
At least one dimension has a concrete, savings-bearing recommendation. |
OPTIMIZED |
All dimensions verified (PUBLIC + no idle + no workflow waste + logs controlled + IdP cached); or a change was applied and verified this session. |
NEED_MORE_INFO |
Data gate failed: Cost Explorer Transfer line items absent, window < 14 days, or ConcurrentSessions metric unavailable with no fallback. |
BLOCKED |
Hard precondition prevents evaluation: IAM denies transfer:DescribeServer, server does not exist. |
Zero-savings rule: If MONTHLY_SAVING == $0.00 for every dimension,
verdict MUST be OPTIMIZED, never FURTHER_OPTIMIZATION_AVAILABLE.
Exception: concurrency/latency improvement without cost change is
surfaced in REASON, not as dollar savings.
Anti-Patterns — NEVER (top 5)
NEVER recommend migrating from VPC/VPC_ENDPOINT to PUBLIC without
verifying that all clients can connect over the public internet.
Internal-only partners or compliance requirements may block PUBLIC
migration. Verify the network topology before recommending.
NEVER recommend deleting an idle server without confirming the use
case is decommissioned. An idle server may be required for partner
connectivity, compliance, or disaster recovery. Confirm with the
owning team before deleting.
NEVER recommend simplifying a managed workflow without verifying
each step's purpose. Removing a validation or transformation step
may break downstream processes. Audit the workflow steps before
removing any.
NEVER recommend reducing log verbosity without confirming the audit/
compliance requirements. Some regimes mandate full file-transfer
logging. Verify before reducing log level.
NEVER consolidate servers without verifying that the combined peak
ConcurrentSessions fits within a single server's concurrency limit.
Over-consolidation causes session rejection during peak hours.
Extended anti-patterns in references/transfer-pricing-and-endpoint-types.md.
Pre-flight safety checks (run before any remediation CLI)
CONFIRM gate, connectivity check, user-config preservation, workflow test, irreversible delete, log-level timing, concurrency immediacy, 5-server batch limit — moved verbatim.
Full detail: Diagnostic commands.
References
references/transfer-pricing-and-endpoint-types.md — pricing tables,
endpoint-type comparison (PUBLIC vs VPC vs VPC_ENDPOINT), protocol
cost implications, concurrency limit reference, managed workflow
Step Functions cost model, CloudWatch Logs cost model, custom IdP
Lambda cost model, regional pricing multipliers, cost calculation
worked examples.
references/worked-examples.md — full worked examples (endpoint
migration, idle server deletion, workflow simplification, log
reduction, concurrency consolidation, already-optimized,
NEED_MORE_INFO, end-to-end walkthrough).
References (load on demand)
- Pricing and endpoint types — endpoint pricing comparison, impact-estimation formulas
- Worked examples — endpoint-migration and consolidation savings math, workflow cost example
- Diagnostic commands — required data sources, data-quality short-circuits, pre-flight safety checks
- Advanced patterns — mindset principles, Step 0 gotchas, per-step optimization signals, recent features
Domain
AWS CloudOps / Storage File-Transfer Cost Optimization & FinOps.
AWS documentation
1---2name: transfer-cost-optimizer3description: 'Optimises AWS Transfer Family cost across eight dimensions: server endpoint type (PUBLIC vs VPC vs VPC_ENDPOINT — PUBLIC is cheapest with no VPC/NAT cost; VPC_ENDPOINT for internal-only; VPC for private connectivity with NAT Gateway overhead), per-hour server cost vs usage pattern (idle servers still incur the full per-hour charge — detect and stop them), protocol selection (SFTP vs FTPS vs FTP — SFTP is the baseline; FTP adds no TLS overhead but is rare in practice), concurrency vs server count (right-size concurrency limits vs spawning multiple servers), user session duration analysis (long sessions tie up concurrency slots), data transfer cost (S3 upload/download per-GB is the baseline; Transfer Family adds a per-GB fee on top), managed workflow cost (Step Functions execution per file — scales with file count not file size, so many small files are disproportionately expensive), CloudWatch Logs volume (SFTP logging to CloudWatch can dominate cost for high-volume servers), trusted host key rotation (no d...'4license: Apache-2.05compatibility: 'Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). Offline recommendation classification works from pasted Transfer Family server configs, CloudWatch metrics, and Cost Explorer Transfer line items. Live-account optimization uses aws transfer describe-server, aws transfer list-users, aws transfer describe-user, aws transfer describe-workflow (managed workflows), aws transfer list-accesses, aws cloudwatch get-metric-statistics (AWS/Transfer namespace: FilesIn...'6metadata:7 source: https://skillmd.com/skills/jhkchan/transfer-cost-optimizer8 domain: aws-cloudops9 complexity: medium10 requires_llm: 'true'11 phase: '3'12 supports_pipeline: 'true'13 entry_point: 'false'14 family: Storage15 task_type: optimize16 skill_class: capability17 lifecycle_status: active18 verdict_shape: OPTIMIZED | FURTHER_OPTIMIZATION_AVAILABLE19 when_to_use: Optimising AWS Transfer Family cost, choosing between PUBLIC vs VPC vs VPC_ENDPOINT server types, detecting and stopping idle Transfer servers, right-sizing concurrency limits vs server count, analysing user session duration, evaluating managed workflow (Step Functions) cost, reducing CloudWatch Logs volume from SFTP logging, auditing custom identity provider Lambda cost, or reviewing SFTP/FTPS endpoint spend.20 when_not_to_use: S3 storage cost optimization (use s3-lifecycle-optimizer), DataSync cost (use datasync-cost-optimizer), general VPC/NAT Gateway cost (use vpc-cost-optimizer), or Transfer Family server troubleshooting (connection errors, authentication failures — use transfer-family-troubleshooter). This skill focuses on cost-driven optimization decisions for Transfer Family spend, not on functional debugging of broken servers.21 activation_triggers: ''22 invocation_schema: '''Input: either (a) a Transfer Family server identifier + live-account context, (b) a Cost Explorer Transfer line-item document, OR (c) Transfer Family server configurations (endpointType, protocols, concurrency, user count) with at least 14 days of CloudWatch observation. Output: a deterministic TARGET/VERDICT/REASON/RECOMMENDATION/ESTIMATED_SAVINGS/MIGRATION_STEPS block per server, where VERDICT is one of OPTIMIZED, FURTHER_OPTIMIZATION_AVAILABLE, NEED_MORE_INFO.'''23 invocation_example: '"# Minimal valid input (offline server classification):\nServerId: s-1234abcdef5678901\nEndpointType: VPC\nProtocols: [SFTP]\nRegion: us-east-1\nIdentityProviderType: API_GATEWAY (custom Lambda IdP)\nLoggingRole: arn:aws:iam::<acct>:role/TransferLogging\nConcurrency: 10 (configured), observed avg 0.5\nUsers: 25 configured, 3 active in last 30 days\nManaged workflows: 1 (post-upload Step Functions, 2,000,000 executions/month)\nMetrics (last 30 days):\n - ConcurrentSessions: avg 0.5, p95 2, p99 3\n - FilesIn: 2,000,000/month\n - FilesOut: 500,000/month\n - UserSessionsStarted: 6,000/month\nCloudWatch Logs volume: 500 GB/month from Transfer logging\nCost Explorer (Service=Transfer, last 30 days): $3,800\nEmit the standard optimization block (TARGET, VERDICT, REASON,\nRECOMMENDATION, ESTIMATED_SAVINGS, MIGRATION_STEPS)."'24 version: 0.1.025 author: Jacky Chan — AWS Community Builder26 keywords: Transfer Family, AWS Transfer, SFTP, FTPS, FTP, cost optimization, server endpoint, PUBLIC endpoint, VPC endpoint, VPC_ENDPOINT, idle server, per-hour cost, concurrency, session duration, managed workflow, Step Functions, CloudWatch Logs, trusted host key, custom identity provider, Lambda IdP, sticky session, data transfer, S3 upload, storage FinOps27---2829# Transfer Family Cost Optimizer3031## What this skill does3233Translates an AWS Transfer Family server's runtime posture into a34concrete cost-optimization recommendation with a dollar-denominated35savings estimate. The verdict is the highest-leverage action across36eight dimensions — endpoint type, idle server detection, protocol37selection, concurrency right-sizing, session duration, managed workflow38cost, CloudWatch Logs volume, and custom identity provider cost —39applied in priority order. Always pairs the recommendation with exact40CLI commands.4142## Quick navigation4344| Section | What it covers | When to jump here |45|---|---|---|46| Quick start | Five headline rules and the cost formula | First read |47| Mindset | Why endpoint type and idle detection are the top levers | Understanding the approach |48| Quick reference — verdict thresholds | Decision matrix at a glance | Classifying a server |49| Pre-flight data gate | Server config, CloudWatch metrics, Cost Explorer | Before any recommendation |50| Step 0 non-obvious behaviours | Endpoint pricing, idle charging, workflow scaling | Edge cases |51| Step 1 Endpoint type | PUBLIC vs VPC vs VPC_ENDPOINT | The headline savings dimension |52| Step 2 Idle server detection | Per-hour charge on idle servers | Sporadic-usage servers |53| Step 3 Protocol selection | SFTP vs FTPS vs FTP | Protocol cost implications |54| Step 4 Concurrency right-sizing | Concurrency limit vs server count | Multi-server deployments |55| Step 5 Session duration analysis | Long sessions tie up slots | Session-heavy workloads |56| Step 6 Managed workflow cost | Step Functions per-file scaling | Workflow-enabled servers |57| Step 7 CloudWatch Logs volume | SFTP logging cost | High-volume servers |58| Step 8 Custom identity provider | Lambda per-auth cost | Custom IdP deployments |59| Step 9 Impact estimation | The cost formula and worked math | Every recommendation |60| Output format | VERDICT block + worked examples | Emitting the result |61| Anti-Patterns — NEVER | Common misclassifications | Self-check before emit |62| Pre-flight safety checks | CONFIRM gate, protocol verification | Before any apply CLI |6364## Quick start6566- **Endpoint type is the #1 lever.** PUBLIC endpoint is the cheapest67 — no VPC, no NAT Gateway, no VPC_ENDPOINT hourly surcharge. VPC and68 VPC_ENDPOINT add per-hour cost plus NAT Gateway data processing for69 outbound traffic. Migrate to PUBLIC wherever the network topology70 permits.71- **Cost formula (memorise this):**72 `monthly_transfer_cost = (server_hourly_rate × 730 hours)73 + (GB_transferred × per_GB_rate)74 + (workflow_executions × step_rate)75 + (CloudWatch_Logs_GB × logs_rate)76 + (Lambda_IdP_invocations × lambda_rate)`77- **Idle servers still charge per hour.** A Transfer server with zero78 sessions still incurs the full per-hour rate (~$0.30/hour = ~$219/month79 per server, PUBLIC). Detect and stop servers with near-zero80 ConcurrentSessions.81- **Managed workflow cost scales with file count, not file size.** A82 Step Functions managed workflow charges per execution (per file). 1M83 small files cost the same workflow fee as 1M large files — the84 per-file overhead dominates for high-volume small-file workloads.85- **CloudWatch Logs can dominate cost.** SFTP logging to CloudWatch86 generates one log event per file transfer. At high file volumes,87 the CloudWatch Logs ingest cost can exceed the Transfer server cost.8889## Mindset9091per-hour dominance, endpoint+NAT compounding, invisible workflow cost, silent log multiplier — moved verbatim.92Full detail: [Advanced patterns](references/advanced-patterns.md).9394## Quick reference — verdict thresholds9596| Observation (14-30 day window) | Verdict | Recommendation |97|---|---|---|98| EndpointType = VPC or VPC_ENDPOINT AND public internet access is acceptable for the use case | **FURTHER_OPTIMIZATION_AVAILABLE** (endpoint) | Step 1 — migrate to PUBLIC |99| ConcurrentSessions avg < 0.1 AND server runs 24/7 | **FURTHER_OPTIMIZATION_AVAILABLE** (idle) | Step 2 — stop the server, use on-demand |100| Multiple servers AND combined ConcurrentSessions < single-server concurrency limit | **FURTHER_OPTIMIZATION_AVAILABLE** (server count) | Step 4 — consolidate onto fewer servers |101| Managed workflow enabled AND file count > 100,000/month AND workflow is multi-step | **FURTHER_OPTIMIZATION_AVAILABLE** (workflow) | Step 6 — simplify workflow or batch files |102| CloudWatch Logs volume > 100 GB/month from Transfer logging | **FURTHER_OPTIMIZATION_AVAILABLE** (logging) | Step 7 — reduce log verbosity or archive |103| Custom IdP Lambda invocations > 50,000/month AND auth caching not configured | **FURTHER_OPTIMIZATION_AVAILABLE** (IdP) | Step 8 — enable auth caching or batch |104| ConcurrentSessions sustained > 90% of configured concurrency | **FURTHER_OPTIMIZATION_AVAILABLE** (concurrency) | Step 4 — increase concurrency or add server |105| Average session duration > 30 min AND sessions are file-transfer-only | **FURTHER_OPTIMIZATION_AVAILABLE** (session) | Step 5 — investigate idle session hold |106| All dimensions verified AND PUBLIC + no idle + no workflow waste + logs controlled | **OPTIMIZED** | None — continue monitoring |107| Cost Explorer Transfer line items absent or window < 14 days | **NEED_MORE_INFO** | Pull 14-30 day Cost Explorer data, re-evaluate |108109## Pre-flight: data gate (run before any optimization decision)110111Optimization decisions are only as good as the underlying data. Pull112these metrics before any recommendation. Full CLI sequences are in113`references/transfer-pricing-and-endpoint-types.md`.114115server config, CloudWatch metrics, user activity, workflows, logs volume, Cost Explorer, IdP Lambda, Step Functions — moved verbatim.116Full detail: [Diagnostic commands](references/diagnostic-commands.md).117118### Data-quality short-circuits119120ResourceNotFound, absent metrics/line items, short window, OFFLINE, IAM deny — moved verbatim.121Full detail: [Diagnostic commands](references/diagnostic-commands.md).122123## Process — Optimization logic (apply in order)124125### Step 0: Non-obvious behaviours that change the recommendation126127PUBLIC vs NAT, idle charging, per-GB fee, workflow file-count scaling, log multiplier, FTP availability, IdP per-auth, per-server concurrency, sticky sessions, host-key rotation — moved verbatim.128Full detail: [Advanced patterns](references/advanced-patterns.md).129130### Step 1: Endpoint type — PUBLIC vs VPC vs VPC_ENDPOINT131132The endpoint type is the primary cost lever because it determines both133the per-hour rate and whether NAT Gateway data-processing fees apply.134135per-hour rates, NAT Gateway per-GB, VPC endpoint fees — moved verbatim.136Full detail: [Pricing and endpoint types](references/transfer-pricing-and-endpoint-types.md).137138**Decision tree:**139```140Does the use case require private/VPC-internal access?141├── NO (clients connect from the public internet)142│ └── Use PUBLIC. It is the cheapest and avoids NAT Gateway cost.143├── YES — internal-only (no public internet access needed)144│ └── Use VPC_ENDPOINT. No internet gateway required.145└── YES — private connectivity with outbound internet needs146 └── Use VPC. Accept the NAT Gateway cost as a network requirement.147```148149vpc_monthly vs public_monthly formula, 500 GB worked example — moved verbatim.150Full detail: [Worked examples](references/worked-examples.md).151152### Step 2: Idle server detection153154Idle servers charge per hour regardless of usage. Detecting and155stopping them is the second lever.156157**Idle detection threshold:**158| ConcurrentSessions (14-30 day avg) | Verdict |159|---|---|160| 0 (never used) | Server may be orphaned. Verify with the owning team before deleting. |161| < 0.1 (near-zero) | Idle. Consider deleting if the use case has moved to alternatives. |162| 0.1 – 1 | Low-usage. Evaluate whether the per-hour cost justifies the usage. |163| > 1 | Active. Proceed to other dimensions. |164165delete, migrate to serverless, keep-but-document — moved verbatim.166Full detail: [Advanced patterns](references/advanced-patterns.md).167168### Step 3: Protocol selection (SFTP vs FTPS vs FTP)169170Protocol selection rarely affects per-hour cost directly, but affects171session duration and retry patterns.172173SFTP baseline, FTPS TLS overhead, FTP VPC-only — moved verbatim.174Full detail: [Advanced patterns](references/advanced-patterns.md).175176### Step 4: Concurrency right-sizing vs server count177178Concurrency limit is per-server. Spawning multiple servers to handle179more sessions is a cost decision vs increasing the concurrency limit180on a single server.181182**Decision gate:**183| Observed ConcurrentSessions | Configured concurrency | Recommendation |184|---|---|---|185| avg < 50% of configured | High | Reduce configured concurrency to ~p99 + 20% headroom |186| avg > 90% of configured | Low | Increase concurrency limit OR add a server |187| Multiple servers, each < 30% utilized | Over-provisioned | Consolidate onto fewer servers |188189N vs M servers formula, 3-to-1 worked example — moved verbatim.190Full detail: [Worked examples](references/worked-examples.md).191192### Step 5: User session duration analysis193194idle hold timeout, business-hours stop, connect-without-transfer audit — moved verbatim.195Full detail: [Advanced patterns](references/advanced-patterns.md).196197### Step 6: Managed workflow cost (Step Functions)198199Managed workflows run Step Functions state machines on file upload/200download events. Cost scales with file count, not file size.201202**Workflow cost formula:**203```204workflow_monthly_cost = files_per_month × steps_per_workflow × $0.025/1000205```2062072M-file $250/month example, workflow optimization signals — moved verbatim.208Full detail: [Worked examples](references/worked-examples.md).209210### Step 7: CloudWatch Logs volume211212SFTP logging generates one log event per file transfer. At high file213volumes, the CloudWatch Logs ingest cost can exceed the server cost.214215**Logging cost formula:**216```217logs_monthly_cost = log_GB_per_month × $0.50/GB (ingest)218 + log_GB_per_month × $0.03/GB (storage, first 5 GB free)219```220221verbosity reduction, retention, log level, S3+Athena export — moved verbatim.222Full detail: [Advanced patterns](references/advanced-patterns.md).223224### Step 8: Custom identity provider Lambda cost225226Custom identity providers (API_GATEWAY type) invoke a Lambda function227on every SFTP authentication. At high session-start rates, the Lambda228+ API Gateway cost compounds.229230**IdP cost formula:**231```232idp_monthly_cost = sessions_started_per_month × (lambda_per_invocation + apigw_per_request)233```234235auth caching, Lambda URL vs API Gateway, provisioned concurrency, session reuse — moved verbatim.236Full detail: [Advanced patterns](references/advanced-patterns.md).237238### Step 9: Impact estimation239240current vs projected monthly cost formulas, savings, assumptions — moved verbatim.241Full detail: [Pricing and endpoint types](references/transfer-pricing-and-endpoint-types.md).242243### Step 10: Final verdict244245- Any dimension recommends a change → **FURTHER_OPTIMIZATION_AVAILABLE**.246- All dimensions verified AND PUBLIC endpoint + no idle servers +247 no workflow waste + logs controlled → **OPTIMIZED**.248- Change applied and verified this session → **OPTIMIZED** (post-state).249- Data insufficient (metrics absent, window < 14 days) →250 **NEED_MORE_INFO**.251252Never emit `FURTHER_OPTIMIZATION_AVAILABLE` without first discharging253every `NEED_MORE_INFO`/`BLOCKED` gate.254255## Output format256257```text258TARGET: <server-id>259VERDICT: OPTIMIZED | FURTHER_OPTIMIZATION_AVAILABLE260REASON: <1-2 sentences naming the recommendation and the supporting data>261RECOMMENDATION:262 Current: <endpoint type>, <concurrency>, <servers>, <workflow>, <logs volume>263 Proposed: <endpoint type>, <concurrency>, <servers>, <workflow>, <logs volume>264 Dimensions changed: <endpoint | idle | protocol | concurrency | session | workflow | logs | idp>265 Dimensions checked: <list ALL eight, each ✓ (no finding) or → (finding)>266 Confidence: <HIGH/MEDIUM/LOW> — <one-line rationale>267ESTIMATED_SAVINGS:268 Current monthly: $<amount>269 server hourly: <N_servers × $0.30 × 730>270 data transfer: <GB × $0.04/GB>271 workflow: <executions × steps × $0.025/1000>272 CloudWatch Logs: <GB × $0.50>273 Lambda IdP: <invocations × per-invocation>274 NAT Gateway: <GB × $0.045> [if VPC]275 Projected monthly: $<amount>276 Monthly saving: $<amount> ← MUST equal Current − Projected, 2 decimals277 Annual saving: $<amount> ← MUST equal Monthly × 12278 Assumptions: <list (server count, GB transferred, pricing region, etc.)>279MIGRATION_STEPS:280 1. <specific action with CLI command>281 2. <verification step>282CONFIRM: Before executing any state-changing CLI, emit and await operator283 approval: "CONFIRM: About to <action> on <server-id> in <region>.284 Proceed? (yes/no)"285```286287Full worked examples (endpoint migration, idle server deletion,288workflow simplification, log reduction, already-optimized,289NEED_MORE_INFO, and end-to-end walkthrough) are in290`references/worked-examples.md`.291292## STRICT output contract293294The rules below are hard constraints. Violating any one produces a295misclassification or an arithmetic contradiction that breaks downstream296FinOps automation. Self-check EVERY emitted block against these rules297before returning the response.298299### Required output structure300301Every response MUST be a single block using these literal labels, in this302order. Do NOT substitute markdown headings, camelCase, or bold variants.303304```text305TARGET: <server-id>306VERDICT: OPTIMIZED | FURTHER_OPTIMIZATION_AVAILABLE307REASON: <1-2 sentences naming the recommendation and the supporting data>308RECOMMENDATION:309 Current: <endpoint type>, <concurrency>, <servers>, <workflow>, <logs volume>310 Proposed: <endpoint type>, <concurrency>, <servers>, <workflow>, <logs volume>311 Dimensions changed: <endpoint | idle | protocol | concurrency | session | workflow | logs | idp>312 Dimensions checked: <list ALL eight, each ✓ (no finding) or → (finding)>313 Confidence: <HIGH/MEDIUM/LOW> — <one-line rationale>314ESTIMATED_SAVINGS:315 Current monthly: $<amount> ← MUST show all cost subtotals316 Projected monthly: $<amount>317 Monthly saving: $<amount> ← MUST equal Current − Projected, 2 decimals318 Annual saving: $<amount> ← MUST equal Monthly × 12319MIGRATION_STEPS:320 1. <specific action with CLI command>321 2. <verification step>322CONFIRM: <confirmation prompt text>323```324325### FORBIDDEN output patterns3263271. **NEVER emit `VERDICT: FURTHER_OPTIMIZATION_AVAILABLE` with328 `Monthly saving: $0.00`.** If every dimension nets zero cost delta,329 the verdict MUST be `OPTIMIZED`.3303312. **NEVER show savings math that does not balance.**332 `Current monthly − Projected monthly` MUST equal `Monthly saving`,333 rounded to 2 decimal places.3343353. **NEVER emit scratch lines** ("WAIT — recompute", "Hmm, let me redo",336 "corrected:") in the output. Finalize the math before emitting.3373384. **NEVER recommend an endpoint type change without citing the network339 topology constraint.** The REASON MUST name the current endpoint340 type, the target endpoint type, and why the migration is safe (or341 blocked).3423435. **NEVER omit a dimension from the RECOMMENDATION block.** The344 `Dimensions checked` line MUST list all eight dimensions, each marked345 ✓ (no finding) or → (finding).3463476. **NEVER present a cost-neutral reconfiguration as "cost savings."**348 Surface the concurrency/latency improvement explicitly and set349 `Monthly saving: $0.00` with verdict `OPTIMIZED` (or350 `FURTHER_OPTIMIZATION_AVAILABLE` ONLY if a different dimension has351 positive saving).3523537. **NEVER round intermediate formula steps differently from the final354 figure.** Compute at full precision, round only the displayed result.355356### Perfect example output — FURTHER_OPTIMIZATION_AVAILABLE with verified math357358Every field below is internally consistent. Copy this shape exactly.359360```text361TARGET: s-1234abcdef5678901362VERDICT: FURTHER_OPTIMIZATION_AVAILABLE363REASON: VPC endpoint server with outbound traffic via NAT Gateway364 averages 0.5 concurrent sessions (near-idle) and processes 1,500 GB/month365 outbound ($67.50/month NAT data processing alone). ConcurrentSessions366 peak is 3, well under the configured concurrency of 10. Managed367 workflow (5-step) runs on 2,000,000 files/month, generating $250/month368 in Step Functions charges. CloudWatch Logs volume is 300 GB/month369 ($150/month in ingest). Migrating to PUBLIC eliminates NAT overhead;370 consolidating concurrency and simplifying the workflow reduce the371 remaining spend.372RECOMMENDATION:373 Current: VPC, concurrency 10, 1 server, 5-step workflow, 300 GB logs/month374 Proposed: PUBLIC, concurrency 5, 1 server, 3-step workflow, 50 GB logs/month375 Dimensions changed: endpoint (Step 1) + workflow (Step 6) + logs (Step 7)376 Dimensions checked: endpoint → (VPC to PUBLIC) idle ✓ (avg 0.5 is low but not zero)377 protocol ✓ (SFTP) concurrency → (10 to 5) session ✓ (no idle hold)378 workflow → (5-step to 3-step) logs → (300 GB to 50 GB) idp ✓ (no custom IdP)379 Confidence: HIGH — server config cited; Cost Explorer cross-check agrees;380 PUBLIC migration safe (clients connect from public internet).381ESTIMATED_SAVINGS:382 Current monthly: $819.50383 server hourly: 1 × $0.30 × 730 = $219.00384 data transfer: 1,500 GB × $0.04 = $60.00385 workflow: 2,000,000 × 5 × $0.000025 = $250.00386 CloudWatch Logs: 300 GB × $0.50 = $150.00387 NAT Gateway: 1,500 GB × $0.045 = $67.50388 Lambda IdP: $0.00 (service-managed)389 VPC endpoint: $73.00390 Projected monthly: $422.00391 server hourly: 1 × $0.30 × 730 = $219.00392 data transfer: 1,500 GB × $0.04 = $60.00393 workflow: 2,000,000 × 3 × $0.000025 = $150.00394 CloudWatch Logs: 50 GB × $0.50 = $25.00395 NAT Gateway: $0.00 (PUBLIC, no NAT)396 Lambda IdP: $0.00397 VPC endpoint: $0.00 (PUBLIC)398 Monthly saving: $397.50399 ($819.50 − $422.00 = $397.50 ✓)400 Annual saving: $4,770.00401MIGRATION_STEPS:402 1. Verify all clients can connect over the public internet:403 aws transfer describe-server --server-id s-1234abcdef5678901 | \404 jq '.EndpointType, .Protocols'405 2. Create a new PUBLIC server with the same configuration:406 aws transfer create-server --endpoint-type PUBLIC --protocols SFTP \407 --identity-provider-type SERVICE_MANAGED --region us-east-1408 3. Migrate users to the new server:409 aws transfer create-user --server-id <new-id> --user-name <user> \410 --ssh-public-key-body <key>411 4. Simplify the managed workflow from 5 steps to 3:412 aws transfer create-workflow --steps <simplified-steps-json>413 5. Reduce CloudWatch Logs verbosity (log only authentication + errors):414 aws transfer update-server --server-id <new-id> \415 --logging-role arn:aws:iam::<acct>:role/TransferLogging416 6. Delete the old VPC server once migration is confirmed:417 aws transfer delete-server --server-id s-1234abcdef5678901418 7. Monitor Cost Explorer (Service=Transfer) for 7 days post-change:419 aws ce get-cost-and-usage --filter '{"Dimensions":{"Key":"SERVICE","Values":["Transfer"]}}'420CONFIRM: About to migrate s-1234abcdef5678901 from VPC to PUBLIC endpoint,421 simplify workflow from 5 steps to 3, and reduce log volume from 300 GB422 to 50 GB. Monthly saving $397.50 (48.5% reduction). Proceed? (yes/no)423```424425**Self-check before emit:**426- [ ] `Current monthly − Projected monthly == Monthly saving` (2 decimals)?427- [ ] `Monthly saving × 12 == Annual saving`?428- [ ] All eight dimensions listed in `Dimensions checked`?429- [ ] Every `→` dimension has a corresponding MIGRATION_STEPS entry?430- [ ] No scratch/recompute text in the block?431432## Verdict semantics433434| Verdict | When to emit |435|---|---|436| `FURTHER_OPTIMIZATION_AVAILABLE` | At least one dimension has a concrete, savings-bearing recommendation. |437| `OPTIMIZED` | All dimensions verified (PUBLIC + no idle + no workflow waste + logs controlled + IdP cached); or a change was applied and verified this session. |438| `NEED_MORE_INFO` | Data gate failed: Cost Explorer Transfer line items absent, window < 14 days, or ConcurrentSessions metric unavailable with no fallback. |439| `BLOCKED` | Hard precondition prevents evaluation: IAM denies `transfer:DescribeServer`, server does not exist. |440441**Zero-savings rule:** If MONTHLY_SAVING == $0.00 for every dimension,442verdict MUST be `OPTIMIZED`, never `FURTHER_OPTIMIZATION_AVAILABLE`.443Exception: concurrency/latency improvement without cost change is444surfaced in REASON, not as dollar savings.445446## Anti-Patterns — NEVER (top 5)4474481. **NEVER recommend migrating from VPC/VPC_ENDPOINT to PUBLIC without449 verifying that all clients can connect over the public internet.**450 Internal-only partners or compliance requirements may block PUBLIC451 migration. Verify the network topology before recommending.4524532. **NEVER recommend deleting an idle server without confirming the use454 case is decommissioned.** An idle server may be required for partner455 connectivity, compliance, or disaster recovery. Confirm with the456 owning team before deleting.4574583. **NEVER recommend simplifying a managed workflow without verifying459 each step's purpose.** Removing a validation or transformation step460 may break downstream processes. Audit the workflow steps before461 removing any.4624634. **NEVER recommend reducing log verbosity without confirming the audit/464 compliance requirements.** Some regimes mandate full file-transfer465 logging. Verify before reducing log level.4664675. **NEVER consolidate servers without verifying that the combined peak468 ConcurrentSessions fits within a single server's concurrency limit.**469 Over-consolidation causes session rejection during peak hours.470471Extended anti-patterns in `references/transfer-pricing-and-endpoint-types.md`.472473## Pre-flight safety checks (run before any remediation CLI)474475CONFIRM gate, connectivity check, user-config preservation, workflow test, irreversible delete, log-level timing, concurrency immediacy, 5-server batch limit — moved verbatim.476Full detail: [Diagnostic commands](references/diagnostic-commands.md).477478479## References480481- `references/transfer-pricing-and-endpoint-types.md` — pricing tables,482 endpoint-type comparison (PUBLIC vs VPC vs VPC_ENDPOINT), protocol483 cost implications, concurrency limit reference, managed workflow484 Step Functions cost model, CloudWatch Logs cost model, custom IdP485 Lambda cost model, regional pricing multipliers, cost calculation486 worked examples.487- `references/worked-examples.md` — full worked examples (endpoint488 migration, idle server deletion, workflow simplification, log489 reduction, concurrency consolidation, already-optimized,490 NEED_MORE_INFO, end-to-end walkthrough).491492## References (load on demand)493494- [Pricing and endpoint types](references/transfer-pricing-and-endpoint-types.md) — endpoint pricing comparison, impact-estimation formulas495- [Worked examples](references/worked-examples.md) — endpoint-migration and consolidation savings math, workflow cost example496- [Diagnostic commands](references/diagnostic-commands.md) — required data sources, data-quality short-circuits, pre-flight safety checks497- [Advanced patterns](references/advanced-patterns.md) — mindset principles, Step 0 gotchas, per-step optimization signals, recent features498499## Domain500501AWS CloudOps / Storage File-Transfer Cost Optimization & FinOps.502503## AWS documentation504505- **AWS Transfer Family User Guide** — https://docs.aws.amazon.com/transfer/latest/userguide/506- **AWS Transfer Family pricing** — https://aws.amazon.com/transfer-family/pricing/507- **Transfer Family endpoint types** — https://docs.aws.amazon.com/transfer/latest/userguide/configure-server-endpoint.html508- **Transfer Family managed workflows** — https://docs.aws.amazon.com/transfer/latest/userguide/create-workflow.html509- **Transfer Family custom identity providers** — https://docs.aws.amazon.com/transfer/latest/userguide/custom-lambda-idp.html510- **Transfer Family CloudWatch metrics** — https://docs.aws.amazon.com/transfer/latest/userguide/monitoring-cloudwatch.html511- **Transfer Family concurrency** — https://docs.aws.amazon.com/transfer/latest/userguide/configure-server-concurrency.html512- **AWS Step Functions pricing** — https://aws.amazon.com/step-functions/pricing/513- **Amazon CloudWatch Logs pricing** — https://aws.amazon.com/cloudwatch/pricing/514- **AWS CLI Transfer reference** — https://docs.aws.amazon.com/cli/latest/reference/transfer/515- **AWS Well-Architected Framework — Cost Optimization** — https://docs.aws.amazon.com/wellarchitected/latest/cost-optimization-pillar/welcome.html