AGENT SKILL

transfer-family-deployer

Provisions AWS Transfer Family servers with secure defaults — SFTP, FTPS, and FTP protocols, server endpoint types (public vs VPC vs VPC_ENDPOINT), identity providers (Service Managed, API Gateway Lambda custom IdP, AWS Directory Service), S3 storage backend with scoped-down IAM roles and session policies, EFS-backed users, CloudWatch logging, security groups for VPC endpoints, AS2 app-level B2B messaging, managed workflows (copy, delete, tag), tags, and structured logging. Runs pre-checks (S3 bucket policy, IAM role session policy scope, ACM cert for FTPS, API Gateway invocation permissions for custom IdP, VPC subnet/security group reachability, Directory Service user population), emits create-server and create-user CLIs behind a CONFIRM gate, and verifies via describe-server. Emits READY_TO_DEPLOY | PREREQUISITES_MISSING. Use when creating SFTP/FTPS servers, configuring custom IdPs, or setting up managed workflows.

License 许可
Apache-2.0
最近更新
2026-09-24
Stars
★ 4
Forks
0

01 前言 Front Matter

name
transfer-family-deployer
license
Apache-2.0
metadata
{ "tags": "transfer-family, sftp, ftps, storage, file-transfer, deploy, vpc, as2", "phase": "1", "author": "Jacky Chan — AWS Community Builder", "domain": "aws-cloudops", "family": "Storage", "version": "0.1.0", "keywords": "Transfer Family, AWS Transfer, SFTP, FTPS, FTP, AS2, file transfer, service managed, custom IdP, API Gateway, Lambda IdP, Directory Service, Managed Microsoft AD, S3 backend, EFS backend, session policy, IAM role, VPC endpoint, security group, managed workflows, CloudWatch logging, structured logging", "task_type": "deploy", "complexity": "high", "entry_point": "false", "skill_class": "capability", "when_to_use": "Creating an AWS Transfer Family server (SFTP, FTPS, FTP, AS2), configuring an identity provider (Service Managed, API Gateway Lambda custom IdP, AWS Directory Service), scoping IAM roles for per-user S3 access, deploying a VPC-attached server with security groups, enabling structured CloudWatch logging, or setting up managed workflows for inbound/outbound file processing.", "dependencies": "aws-orchestrator", "requires_llm": "true", "verdict_shape": "READY_TO_DEPLOY | PREREQUISITES_MISSING", "lifecycle_status": "active", "invocation_schema": "Input: either (a) a Transfer Family deployment intent (create, update) with target server name, protocols (SFTP/FTPS/FTP/AS2), endpoint type (public/VPC/VPC_ENDPOINT), identity provider config, storage backend (S3 bucket or EFS), IAM role and session policy, logging config, security groups, and tags; OR (b) a server-id for live-account update or validation. Output: deterministic SERVER/VERDICT/PRE_CHECKS/STEPS/POST_VERIFY block per operation, where VERDICT is one of READY_TO_DEPLOY, PREREQUISITES_MISSING.", "supports_pipeline": "true", "activation_triggers": "create Transfer Family server, provision SFTP server, deploy FTPS server, Transfer Family custom IdP, API Gateway Lambda identity, Directory Service SFTP, Managed Microsoft AD SFTP, session policy S3, scoped-down IAM role, VPC endpoint Transfer Family, security group SFTP, EFS-backed users, Transfer Family managed workflow, AS2 app-level messaging, Transfer Family structured logging, create-server transfer, create-user transfer, Transfer Family tags" }
description
Provisions AWS Transfer Family servers with secure defaults — SFTP, FTPS, and FTP protocols, server endpoint types (public vs VPC vs VPC_ENDPOINT), identity providers (Service Managed, API Gateway Lambda custom IdP, AWS Directory Service), S3 storage backend with scoped-down IAM roles and session policies, EFS-backed users, CloudWatch logging, security groups for VPC endpoints, AS2 app-level B2B messaging, managed workflows (copy, delete, tag), tags, and structured logging. Runs pre-checks (S3 bucket policy, IAM role session policy scope, ACM cert for FTPS, API Gateway invocation permissions for custom IdP, VPC subnet/security group reachability, Directory Service user population), emits create-server and create-user CLIs behind a CONFIRM gate, and verifies via describe-server. Emits READY_TO_DEPLOY | PREREQUISITES_MISSING. Use when creating SFTP/FTPS servers, configuring custom IdPs, or setting up managed workflows.
compatibility
Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). No AWS CLI required for offline plan classification. Live-account operations use aws transfer create-server, create-user, update-server, describe-server, create-access, create-workflow (AWS CLI v2, SSO or key-based credentials).

02 资源文件 20

03 SKILL.md 正文

Transfer Family Deployer

What this skill does

Provisions AWS Transfer Family servers with secure storage defaults — scoped-down IAM roles with session policies that confine each user to their home directory, Service Managed or custom API Gateway Lambda identity providers, FTPS / SFTP preferred over plain FTP, VPC-attached endpoints for private connectivity, CloudWatch structured logging, and managed workflows for inbound file processing. Runs deterministic pre-checks before any state-changing CLI (does the S3 bucket exist and does its policy allow the role? does the IAM role trust transfer.amazonaws.com? does the ACM cert cover the FTPS endpoint? does the API Gateway invocation role exist for the custom IdP? does the VPC security group allow inbound on the protocol port?), emits the exact create-server and create-user CLIs behind a CONFIRM gate, and verifies the server via describe-server. Every server plan surfaces the plain-FTP block, the unscoped-IAM-role warning, the public-endpoint caveat, and the managed-workflow trigger ordering.

Quick navigation

Section What it covers When to read it
Quick reference Verdict thresholds + pre-check priority order + protocol matrix Before any operation
Mindset Why session policies matter; Transfer Family silent failures; protocol trade-offs Understanding the deployment model
Pre-flight Server metadata gate — S3 bucket, IAM trust, ACM cert, VPC SG, IdP Before executing any CLI
Process Per-operation planning: create server, add user, configure workflow When choosing which operation
Common patterns Service Managed SFTP / custom IdP SFTP / FTPS VPC / AS2 boilerplate Boilerplate lookup
STRICT output contract Required SERVER/VERDICT/PRE_CHECKS/STEPS/POST_VERIFY block Formatting the response
NEVER (top 5) Hard rules that prevent insecure patterns Review before deploy
Expert heuristic Choosing identity provider and endpoint type IdP/endpoint strategy

Quick reference — verdict thresholds

Verdict Trigger condition Action
PREREQUISITES_MISSING Any pre-check failed (S3 bucket missing, IAM role not trusting transfer.amazonaws.com, ACM cert in wrong region or pending for FTPS, API Gateway invocation role missing for custom IdP, VPC security group missing or wrong port, Directory Service not reachable, FTP requested on public endpoint, AS2 profile missing partner cert) List failures, do NOT execute
READY_TO_DEPLOY All pre-checks passed; awaiting CONFIRM gate Emit exact CLI sequence with full server config, wait for operator yes

Priority order for pre-checks (apply in this sequence, all must pass for READY_TO_DEPLOY):

  1. Protocol validity — at least one of SFTP, FTPS, FTP, AS2 set. For FTP only, endpoint MUST be VPC or VPC_ENDPOINT (never PUBLIC).
  2. Endpoint type — PUBLIC (internet-facing, service-managed networking) or VPC/VPC_ENDPOINT (private, your networking).
  3. Identity provider — ServiceManaged, API_GATEWAY (custom Lambda IdP), or AWS_DIRECTORY_SERVICE. For API_GATEWAY: invocation role exists, the API endpoint is reachable, and the Lambda returns the expected JSON shape.
  4. S3 backend — bucket exists in the same region; bucket policy grants the IAM role s3:ListBucket, s3:GetObject, s3:PutObject on the user's home prefix.
  5. IAM execution role — trust policy allows transfer.amazonaws.com with sts:AssumeRole and (recommended) a SourceArn / SourceAccount condition locking the role to this server.
  6. Session policy scope — every create-user call includes a Policy (session policy) that scopes the user to their home prefix. Unscoped users can read/write the entire bucket.
  7. Logging — LoggingRole ARN provided; role has logs:CreateLogStream, logs:CreateLogGroup, logs:PutLogEvents on the CloudWatch log group resource.
  8. FTPS ACM cert — for FTPS protocol, ACM cert ARN in the same region, status ISSUED, cert subject matches the FTPS hostname.
  9. VPC endpoint config — for VPC_ENDPOINT: VPC ID, subnet IDs, and security group IDs all exist; the security group inbound rule covers the protocol port (22/SFTP, 21/FTP, 990/FTPS, 5082/AS2).
  10. Directory Service — for AWS_DIRECTORY_SERVICE: the directory ID resolves via ds:describe-directories; the directory is in the same VPC as the server; the Transfer service has been granted access.
  11. AS2 profiles — for AS2: local profile (with private key in Secrets Manager) and partner profile (with partner cert) both exist.
  12. Managed workflow — for workflows: every step's Lambda/function ARN resolves; the workflow execution role trusts transfer.amazonaws.com and the workflow is referenced via OnPartialUpload / OnUpload.
  13. IAM permissions — the operator principal holds transfer:CreateServer and iam:PassRole.

Transfer Family service limits (2026) moved verbatim to references/advanced-patterns.md.

Mindset

One-line takeaway: the IAM role on a Transfer Family user is the whole security boundary. A user with s3:* on the role and no session policy can read and write the entire bucket — every other user's files, system objects, bucket-level operations. The role defines maximum scope; the session policy (--policy on create-user) defines the user's effective scope. Three Transfer Family realities drive this:

  • Session policies are scoped-down IAM at runtime. The effective permissions are the intersection of the IAM role policy AND the session policy. If the IAM role has s3:GetObject on * but the session policy has s3:GetObject on home/bob/*, the user can only read home/bob/*. Without a session policy, the user inherits the full IAM role scope.

  • Custom IdP responses silently fail. A custom IdP API Gateway / Lambda that returns malformed JSON (missing Role, HomeDirectory, or Policy fields) causes Transfer Family to reject the auth with a generic "authentication failed" — no diagnostic about which field was wrong. Pre-flight testing of the IdP response shape is non-negotiable.

  • Plain FTP is unencrypted on the wire. Username, password, and file contents are sent in cleartext. Transfer Family enforces this by requiring VPC/VPC_ENDPOINT for plain FTP — but a misconfigured public endpoint with FTP enabled is the worst-case silent regression. The skill blocks FTP-on-PUBLIC at the pre-check gate.

Pre-flight: server metadata gate

Run before classification. Misclassifying these produces wrong plans.

Pagination: list-servers returns at most 1000 servers per page. Use --next-token to drain.

Live-account pre-flight (skip if offline plan audit): The 12-command live-account pre-flight listing moved verbatim to references/diagnostic-commands.md.

Malformed input: if the server spec is missing required fields (Protocols, endpoint type, identity provider type, or storage backend), emit VERDICT: PREREQUISITES_MISSING with REASON: Server spec missing required field — Protocols, EndpointType, IdentityProviderType, or storage backend. Cannot plan. and REMEDIATION: Provide the full server config per https://docs.aws.amazon.com/transfer/latest/userguide/create-server-cli.html.

Attribute Effect on operation
FTP on PUBLIC endpoint Cleartext credentials on the internet. PREREQUISITES_MISSING — blocked.
IAM role without session policy on user User can read entire bucket. Flag in NOTES; require session policy.
S3 bucket in different region Latency and cross-region data transfer costs. PREREQUISITES_MISSING.
IAM role not trusting transfer.amazonaws.com Server cannot assume role for the user. PREREQUISITES_MISSING.
ACM cert pending for FTPS FTPS handshake fails at runtime. PREREQUISITES_MISSING.
VPC security group missing inbound on port 22 SFTP connections time out silently. PREREQUISITES_MISSING.
Custom IdP API Gateway not deployed to stage Auth calls return 403/404. PREREQUISITES_MISSING.
AS2 partner cert not uploaded AS2 messages cannot be encrypted. PREREQUISITES_MISSING.
Directory Service not in same VPC as server Auth requests time out. PREREQUISITES_MISSING.

Process — operation planning (apply in order)

Step 0: Expert knowledge — non-obvious Transfer Family behaviors

All 15 non-obvious Transfer Family behaviors moved verbatim to references/advanced-patterns.md.

Step 1: Pre-check gate — PREREQUISITES_MISSING if any check fails

Run ALL of the following pre-checks. If ANY fails, the verdict is PREREQUISITES_MISSING with the failed checks enumerated in PRE_CHECKS. Do NOT execute.

For ALL operations:

  1. At least one of SFTP, FTPS, FTP, AS2 in Protocols.
  2. EndpointType is one of PUBLIC, VPC, VPC_ENDPOINT.
  3. IdentityProviderType is SERVICE_MANAGED, API_GATEWAY, or AWS_DIRECTORY_SERVICE.
  4. Storage backend is provided (S3 bucket name or EFS file system ID).
  5. LoggingRole ARN provided and resolves via iam:get-role.
  6. Logging role has CloudWatch Logs permissions on the log group.
  7. The operator principal holds transfer:CreateServer and iam:PassRole.

For FTP protocol: 8. EndpointType is VPC or VPC_ENDPOINT (FTP on PUBLIC is BLOCKED). 9. VPC security group inbound rule on port 21.

For SFTP protocol: 10. If PUBLIC: NOTE that VPC is recommended for partner B2B. 11. If VPC/VPC_ENDPOINT: security group inbound rule on port 22.

For FTPS protocol: 12. Certificate ARN provided. 13. ACM cert is in the same region as the server. 14. describe-certificate returns status ISSUED. 15. Cert subject/alt names cover the FTPS hostname. 16. If VPC: security group inbound rule on port 990 (and 21 for implicit FTPS control channel).

For AS2 protocol: 17. EndpointType is VPC or VPC_ENDPOINT. 18. Local profile exists (describe-profile). 19. Partner profile exists with partner cert. 20. Security group inbound rule on port 5082.

For S3 backend: 21. Bucket exists in the same region. 22. Bucket policy or IAM role grants s3:ListBucket, s3:GetObject, s3:PutObject on the intended prefix. 23. Bucket versioning status known (recommend Suspended or Enabled for audit). 24. IAM execution role trusts transfer.amazonaws.com. 25. Recommended: trust policy has aws:SourceAccount or aws:SourceArn condition locking to this account/server.

For EFS backend: 26. EFS file system ID resolves. 27. EFS access point configured (optional but recommended). 28. IAM role has elasticfilesystem:ClientMount, elasticfilesystem:ClientWrite.

For API_GATEWAY custom IdP: 29. InvocationRole ARN resolves via iam:get-role. 30. Invocation role trusts transfer.amazonaws.com and has apigateway:Invoke on the REST API. 31. Url is HTTPS, REST API deployed to a stage. 32. Pre-flight test: POST a sample username/password to the API and verify the response shape (Role, HomeDirectory, optional Policy).

For AWS_DIRECTORY_SERVICE: 33. Directory ID resolves via ds:describe-directories. 34. Directory status is ACTIVE. 35. Directory is in the same region and VPC.

For managed workflow reference: 36. Workflow ID resolves via transfer:list-workflows. 37. Workflow status is ACTIVE. 38. Workflow steps' Lambda/function ARNs all resolve. 39. Workflow execution role trusts transfer.amazonaws.com and has lambda:InvokeFunction on each step's Lambda.

For VPC/VPC_ENDPOINT: 40. VPC ID, subnet IDs, security group IDs all resolve via ec2:describe-*. 41. Security group inbound rules match the protocol ports. 42. (VPC_ENDPOINT only) the endpoint service name resolves.

Step 2: READY_TO_DEPLOY — emit deployment plan

If all pre-checks pass, emit VERDICT: READY_TO_DEPLOY with the exact CLI sequence and the CONFIRM gate. The plan includes:

  • The exact aws transfer create-server CLI with the full config (Protocols, EndpointType, IdentityProviderType, LoggingRole, Certificate for FTPS, VPC/subnet/SG for VPC, tags).
  • The follow-up create-user CLIs for each Service Managed user with their SSH public key, IAM role, HomeDirectory, and session Policy.
  • The follow-up create-access CLI for S3 bucket access mapping (when the user's IAM role is the access entry).
  • The follow-up create-workflow CLI (if managed workflow configured).
  • The CONFIRM gate prompt.

Step 3: Execute behind CONFIRM gate

  • MANDATORY CONFIRMATION GATE. Before any state-changing CLI (create-server, update-server, delete-server), emit: CONFIRM: About to <operation> Transfer Family server <id-or-name> in account <account> region <region>. This will <consequence>. Proceed? (yes/no). Do NOT execute until the operator confirms.
  • Snapshot the current server config before modification: aws transfer describe-server --server-id <id> --output json > /tmp/server-<id>-backup-$(date +%s).json.
  • Execute the CLI with the full server config.

Step 4: Post-verification

After the operation finishes, run post-verification:

  1. describe-server --server-id <id> returns State: ONLINE and the expected config (Protocols, IdentityProviderType, EndpointType).
  2. For PUBLIC servers: DNS resolution of s-<id>.server.transfer.<region>.amazonaws.com succeeds.
  3. For VPC/VPC_ENDPOINT: the ENI or VPC endpoint is in the expected subnet.
  4. For Service Managed users: describe-user --server-id <id> --user-name <user> returns the user with the SSH key, role, and home directory.
  5. For custom IdP: trigger a sample auth via the API Gateway and confirm the Lambda returns the expected JSON shape.
  6. For managed workflows: trigger a sample upload to the OnUpload-mapped directory and confirm the workflow executes.

Common server patterns (boilerplate)

All four boilerplate CLI sequences (Service Managed SFTP/S3, custom IdP via API Gateway, Directory Service/FTPS/AS2 short forms, managed workflow OnUpload) moved verbatim to references/worked-examples.md.

STRICT output contract

Required output structure

Every response MUST begin with this block — no preamble, no conversational opening:

SERVER: <description-or-name>
VERDICT: READY_TO_DEPLOY | PREREQUISITES_MISSING
TARGET: <description-or-name> (server-id: <id> for updates)
PRE_CHECKS:
  - [PASS] <check description>
  - [FAIL] <check description> — <reason>
STEPS:
  1. CONFIRM: About to <operation> server <name> in account <account> region <region>. This will <consequence>. Proceed? (yes/no)
  2. <exact CLI command — no placeholders>
POST_VERIFY:
  - [PASS] <verification description>
  - [FAIL] <verification description> — <reason>
PROTOCOLS: SFTP | FTPS | FTP | AS2 (combinations)
ENDPOINT: PUBLIC | VPC | VPC_ENDPOINT
IDP: ServiceManaged | APIGateway | DirectoryService
STORAGE: S3 (bucket: <name>) | EFS (fs: <id>)
SESSION_POLICY_SCOPE: <home-prefix-per-user> | (none — UNSCOPED, blocked)
WORKFLOWS: <count> attached
NOTES: <security posture, IAM scope, protocol caveats>

FORBIDDEN output patterns

  • NEVER start with "Let me analyze…" or "I'll create…" — the VERDICT block is the FIRST line, always. No conversational preamble.
  • NEVER use lowercase verdict values — emit READY_TO_DEPLOY or PREREQUISITES_MISSING (not ready, prerequisites).
  • NEVER omit PRE_CHECKS — every pre-check run must appear with [PASS] or [FAIL] and a specific reason for each failure. An empty PRE_CHECKS block is non-compliant.
  • NEVER emit a plan with placeholder values (e.g., <server-id>, <account-id>) in a READY_TO_DEPLOY plan — every field must be populated with actual values from the input.
  • NEVER omit the CONFIRM gate as the first STEPS entry for any state-changing operation.
  • NEVER claim success without verifying the server is ONLINE (via describe-server).
  • NEVER silently allow FTP on PUBLIC endpoint — block it explicitly with a [FAIL] pre-check row naming the cleartext credential risk.
  • NEVER create a user without a session policy — unscoped users can read the entire bucket. If the input omits it, the skill inserts a default scoped to the home prefix and flags in NOTES.

Perfect example output

SERVER: prod-sftp-inbox
VERDICT: READY_TO_DEPLOY
TARGET: prod-sftp-inbox
PRE_CHECKS:
  - [PASS] Protocols valid: SFTP
  - [PASS] Endpoint type: PUBLIC (acceptable for SFTP; VPC preferred for partner B2B)
  - [PASS] Identity provider: SERVICE_MANAGED
  - [PASS] S3 bucket prod-sftp-inbox exists in us-east-1
  - [PASS] IAM role TransferUserS3Role trusts transfer.amazonaws.com with SourceAccount condition
  - [PASS] IAM role has s3:ListBucket, s3:GetObject, s3:PutObject on bucket
  - [PASS] Logging role TransferLoggingRole resolves with logs:* permissions
  - [PASS] Operator principal holds transfer:CreateServer and iam:PassRole
STEPS:
  1. CONFIRM: About to create-server prod-sftp-inbox in account 111111111111 region us-east-1. This will CREATE a new Transfer Family server with SFTP protocol, Service Managed IdP, and CloudWatch logging. Proceed? (yes/no)
  2. aws transfer create-server --description prod-sftp-inbox --protocols SFTP --endpoint-type PUBLIC --identity-provider-type SERVICE_MANAGED --logging-role arn:aws:iam::111111111111:role/TransferLoggingRole --tags Key=Environment,Value=prod
  3. aws transfer create-user --server-id <returned-id> --user-name alice --role arn:aws:iam::111111111111:role/TransferUserS3Role --home-directory /prod-sftp-inbox/alice --ssh-public-key-body "ssh-rsa AAAAB3..." --policy '{session policy scoping to /alice/*}'
POST_VERIFY:
  - (pending execution)
  - describe-server returns State=ONLINE
  - describe-user returns alice with SSH key, role, home directory, and session policy
PROTOCOLS: SFTP
ENDPOINT: PUBLIC
IDP: ServiceManaged
STORAGE: S3 (bucket: prod-sftp-inbox)
SESSION_POLICY_SCOPE: per-user home prefix
WORKFLOWS: 0 attached
NOTES:
  - PUBLIC endpoint exposes SFTP to the internet — VPC endpoint preferred for partner B2B.
  - Session policy scopes alice to /prod-sftp-inbox/alice/* — without it she could read the whole bucket.
  - Tags Environment=prod propagate to Cost Explorer for chargeback.

NEVER (top 5)

These are the highest-impact, most-frequent failure modes in Transfer Family deployments. Violating any one is a security or availability regression.

  1. NEVER enable FTP on a PUBLIC endpoint. Plain FTP sends username, password, and file contents in cleartext on the wire. Transfer Family requires VPC/VPC_ENDPOINT for FTP for this reason. A misconfigured public FTP server leaks credentials at the TCP layer — block at pre-check.

  2. NEVER create a user without a session policy. The IAM role defines the user's MAX scope. Without a session policy, the user inherits the full role scope — typically every user's files, every prefix, and potentially bucket-level operations. Always pass --policy scoping the user to their home prefix. The skill inserts a default if the input omits it.

  3. NEVER use an IAM execution role that trusts transfer.amazonaws.com without a SourceAccount / SourceArn condition. A bare trust policy lets any AWS account's Transfer Family server assume the role via confused-deputy. Lock the trust to your account (or specific server ARN) via the condition.

  4. NEVER deploy FTPS without verifying the ACM cert status is ISSUED. A pending or rejected cert causes the FTPS handshake to fail at runtime — clients see generic TLS errors with no diagnostic pointing back to ACM. Verify in the same region as the server and confirm the subject matches the hostname clients connect to.

  5. NEVER configure a custom IdP API Gateway without pre-flight testing the Lambda response shape. A missing Role, HomeDirectory, or Policy field causes auth to fail with a generic "authentication failed" error — no diagnostic about which field was wrong. POST a sample username/password to the API and validate the JSON shape before declaring the server ready.

Expert heuristic: choosing identity provider and endpoint type

The right IdP and endpoint type is a function of user population, credential source, and network exposure — not a one-size-fits-all.

Identity provider
   ├─ Consumer / one-off partners (small user count)?
   │    └─ SERVICE_MANAGED. SSH keys per user. No password to leak,
   │         no IdP infrastructure to operate. Best UX if you can
   │         distribute SSH keys.
   │
   ├─ Workforce users in Active Directory?
   │    └─ AWS_DIRECTORY_SERVICE. Users sign in with DOMAIN\user +
   │         AD password — no SSH keys. Requires Managed Microsoft AD
   │         in the same VPC. Simple AD is NOT supported.
   │
   ├─ External partners with their own IdP (Okta, Auth0, custom)?
   │    └─ API_GATEWAY custom Lambda IdP. Your Lambda receives
   │         username/password (or SSH key fingerprint) and returns
   │         {Role, HomeDirectory, Policy, PublicKeys}. Maximum
   │         flexibility — centralizes user mapping, MFA, audit.
   │
   └─ AS2 partners (B2B app-level)?
        └─ Local + partner profile cert exchange. AS2 uses mutual
             cert-based auth — not username/password.

Endpoint type
   ├─ Internet-facing SFTP for ad-hoc partner onboarding?
   │    └─ PUBLIC. Acceptable for SFTP. Use security groups and IP
   │         allow-lists where possible. FTPS on PUBLIC exposes TLS
   │         metadata.
   │
   ├─ Private partner B2B (regulated, internal-only)?
   │    └─ VPC_ENDPOINT. Your VPC, your SGs, your Route 53. Partner
   │         connects via VPN/Direct Connect/peering.
   │
   ├─ Multi-AZ resilience for production SFTP?
   │    └─ VPC with subnets in 2+ AZs. VPC_ENDPOINT preferred —
   │         single endpoint serves all AZs without per-subnet ENI.
   │
   └─ AS2 or FTP (required private)?
        └─ VPC_ENDPOINT only. FTP never on PUBLIC (blocked).

Decision rules:

  • Default to SERVICE_MANAGED + SSH keys. Switch to custom IdP only when you need password auth, MFA, or central user management.
  • Default to VPC_ENDPOINT for production. PUBLIC is acceptable for SFTP pilots but exposes metadata.
  • Always pass a session policy scoping the user to their home prefix.
  • Always pair LoggingRole with the structured-logging managed policy — without logs you have no audit trail of who uploaded what.
  • FTPS requires ACM cert in the same region; SFTP does not.
  • AS2 is a separate operational model — local/partner profile cert exchange, MDN acks, no SSH key distribution.

ALWAYS tag the server with Environment and (for partner servers) Partner — these tags propagate to Cost Explorer for chargeback.

Recent AWS features (2024-2026)

The 2024-2026 feature timeline moved verbatim to references/advanced-patterns.md.

AWS documentation

References (load on demand)

Domain

AWS CloudOps / Storage — Transfer Family Server Provisioning & File Exchange.

04 同仓库更多 Skills

jhkchan
jhkchan/aws-agent-skills

xray-tracing-deployer

Deploys AWS X-Ray distributed tracing with production-grade configuration: X-Ray daemon deployment (EC2 systemd, ECS sidecar, EKS DaemonSet, Lambda built-in), SDK instrumentation (Java, Python, Node.js, Go, .NET) with annotations and metadata, sampling rules (default reservoir + rate vs custom rules with URL / method / service-name predicates), service map generation, trace query and retrieval, groups and insights, CloudWatch ServiceLens integration, IAM permissions (PutTraceSegments, GetSamplingRules), and latest features (Lambda Powertools tracing, OpenTelemetry / ADOT Collector support, W3C trace context). Emits a READY_TO_DEPLOY checklist with every configuration item verified. Use when enabling X-Ray on a new application, adding tracing to ECS / EKS / Lambda, validating a sampling configuration, or generating daemon deployment CLI and IaC templates. Triggers: X-Ray, distributed tracing, X-Ray daemon, sampling rules, service map, X-Ray SDK, OpenTelemetry, ADOT, Lambda Powertools, CloudWatch ServiceLens.

★ 4
jhkchan
jhkchan/aws-agent-skills

wellarchitected-workload-auditor

Audits AWS Well-Architected Tool workloads for review staleness, per-pillar high-risk issue counts, milestone tracking gaps, and remediation plan completeness. Emits a deterministic verdict (STALE_REVIEW | HIGH_RISK | CONFIG_GAP | OK) per workload with per-pillar risk breakdown, milestone trend analysis, and specific remediation. Use when reviewing Well-Architected workloads, checking WA review freshness, auditing high-risk issues per pillar, validating milestone coverage, or tracking remediation plans.

★ 4
jhkchan
jhkchan/aws-agent-skills

wellarchitected-review-operator

Operates AWS Well-Architected Tool reviews end-to-end — creates workloads, runs pillar reviews (operational excellence, security, reliability, performance, cost optimization, sustainability, Prosperity), answers questions with risk-tier rationale, generates reports and improvement plans, creates milestones, and integrates with Trusted Advisor and Well-Architected Labs. Runs deterministic pre-checks (workload existence, lens availability, pillar coverage), emits the exact update-answer / get-consolidated-report CLI behind a CONFIRM gate, and verifies risk-tier transitions. Emits READY | BLOCKED | COMPLETED. Use when creating a workload, answering pillar questions, generating an improvement plan, creating a milestone, or integrating with Trusted Advisor. Triggers: well-architected tool, well architected review, workload review, pillar, operational excellence, security, reliability, performance, cost optimization, sustainability, prosperity, improvement plan, milestone, trusted advisor.

★ 4
jhkchan
jhkchan/aws-agent-skills

wafv2-web-acl-deployer

Provisions AWS WAFv2 Web ACLs with correct production defaults: scope selection (CLOUDFRONT vs REGIONAL), managed rule groups (AWSManagedRulesCommonRuleSet, SQLiRuleSet, LinuxRuleSet, WindowsRuleSet, IPReputationList, BotControlRuleSet, AmazonIpReputationList, ATP), custom rules (byte match, IP set, regex pattern, geo match, size constraint, rate-based), rule priority ordering, logging destinations (Kinesis Firehose, CloudWatch Logs, S3), resource association (ALB, API Gateway, CloudFront), rate-based rules with aggregate keys (IP, forwarded IP), Challenge and CAPTCHA actions, and account takeover prevention. Emits a READY_TO_DEPLOY checklist. Use when creating a Web ACL, attaching managed rules, configuring rate limiting, enabling WAF logging, associating a Web ACL with an ALB/API Gateway/CloudFront, or configuring CAPTCHA/Challenge actions. Triggers: create WAF Web ACL, WAFv2, managed rule groups, WAF rate limiting, WAF logging, WAF CAPTCHA, WAF Challenge action, bot control, ATP managed rules.

★ 4
jhkchan
jhkchan/aws-agent-skills

wafv2-web-acl-auditor

Audits AWS WAFv2 Web ACL configurations to determine whether the ACL provides effective protection: default-action posture (Allow vs Block), managed-rule-group coverage gaps, rule effectiveness (BLOCK vs COUNT, shadow/bypass rules, stale exclusions), rate-based rule correctness, logging and visibility configuration, and text-transformation bypass vectors. Emits a deterministic verdict per Web ACL. Use when reviewing a WAFv2 Web ACL for security posture, checking managed-rule coverage, validating rate-limit configuration, auditing WAF logging, or hardening a WAF before production deployment. Triggers: WAF, WAFv2, Web ACL, managed rule group, AWSManagedRules, rate-based rule, CAPTCHA, Challenge, OverrideAction, Count mode, forwarded IP, Bot Control, ATP, text transformation, WAF logging, WAF visibility, OWASP, SQLi, XSS, RFI.

★ 4
jhkchan
jhkchan/aws-agent-skills

waf-rule-deployer

Provisions AWS WAFv2 rule sets with production defaults: Web ACL creation (CloudFront scope in us-east-1 vs Regional scope), rule groups (managed vs custom) with capacity planning in WCU (Web ACL Capacity Units, 1500 default per ACL), managed rule groups (AWSManagedRulesCommonRuleSet, AWSManagedRulesSQLiRuleSet, AWSManagedRulesAmazonIpReputationList, AWSManagedRulesLinuxRuleSet, AWSManagedRulesWindowsRuleSet, AWSManagedRulesUnixRuleSet), custom rules (byte-match, regex pattern set, geo-match, rate-based), IP set and regex pattern set resources, rule priority ordering (lowest number evaluated first), action types (allow, block, count, CAPTCHA, Challenge), bot control managed rule group, account takeover. Triggers: create WAF rule, WAF managed rule group, WAF custom rule, WAF byte match, WAF geo match, WAF rate based rule, WAF IP set, WAF regex pattern set, WAF WCU budget, WAF CloudFront ACL, WAF logging Kinesis Firehose, WAF bot control, WAF ATP, WAF label matching, WAF Challenge action, WAF CAPTCHA.

★ 4