s3-object-lambda-deployer
Provisions S3 Object Lambda Access Points and the supporting transform Lambda function with production defaults: standard Access Point creation, Lambda function for GetObject response transformation (redact PII, enrich data, convert formats), Object Lambda AP creation, routing (Object Lambda AP → standard AP → S3), supported operations (GetObject, HeadObject, ListObjects, ListObjectVersions), multi-region Object Lambda, GetObjectACL, and range downloads. Emits READY_TO_DEPLOY / PREREQUISITES_MISSING with every item verified and copy-pasteable s3control / lambda / s3api commands. Use when transforming S3 objects on retrieval without maintaining a second copy. Triggers: S3 Object Lambda, transform GetObject, redact PII on retrieval, enrich S3 data, convert CSV to Parquet on read, Object Lambda access point, multi- region Object Lambda.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-24
- Stars
- ★ 4
- Forks
- 0
01 前言 Front Matter
- name
- s3-object-lambda-deployer
- license
- Apache-2.0
- metadata
- { "tags": "aws, s3, object-lambda, access-point, lambda, transform, deploy, storage", "phase": "1", "author": "Jacky Chan — AWS Community Builder", "domain": "aws-cloudops", "family": "Storage", "version": "0.1.0", "keywords": "aws, s3, s3-object-lambda, object-lambda, access-point, transform-on-read, pii-redaction, data-enrichment, format-conversion, lambda, multi-region, getobjectacl, range-download, cloudops, deploy", "task_type": "deploy", "complexity": "high", "entry_point": "false", "skill_class": "capability", "when_to_use": "Creating an S3 Object Lambda Access Point to transform objects on retrieval (redact PII, enrich data, convert formats), authoring the supporting transform Lambda function, configuring routing between the Object Lambda AP and a standard Access Point, enabling GetObject/HeadObject/ListObjects/ListObjectVersions operations on an Object Lambda AP, deploying multi-region Object Lambda for DR or latency, enabling GetObjectACL or range downloads, or generating IaC (CloudFormation / Terraform) for any of the above. Do NOT invoke for plain Access Points without Object Lambda (use s3-access-points-deployer), or for S3 on Outposts Object Lambda (not supported).", "dependencies": "aws-orchestrator", "requires_llm": "true", "verdict_shape": "READY_TO_DEPLOY | PREREQUISITES_MISSING", "lifecycle_status": "active", "invocation_schema": "Input: either (a) a bucket ARN/name + Object Lambda AP name + transform Lambda spec (function ARN or build-from-template), or (b) a multi-region Object Lambda spec (regions + per-region transform functions). Output: deterministic OBJECT_LAMBDA_SPEC / VERDICT / CHECKLIST / VERIFICATION_COMMANDS block per the STRICT output contract, where VERDICT is READY_TO_DEPLOY or PREREQUISITES_MISSING.", "supports_pipeline": "true", "activation_triggers": "S3 Object Lambda, Object Lambda access point, transform GetObject, redact PII on retrieval, enrich S3 data on read, convert CSV to Parquet on read, Object Lambda with GetObjectACL, Object Lambda range download, multi-region Object Lambda, transformation configuration" }
- description
- Provisions S3 Object Lambda Access Points and the supporting transform Lambda function with production defaults: standard Access Point creation, Lambda function for GetObject response transformation (redact PII, enrich data, convert formats), Object Lambda AP creation, routing (Object Lambda AP → standard AP → S3), supported operations (GetObject, HeadObject, ListObjects, ListObjectVersions), multi-region Object Lambda, GetObjectACL, and range downloads. Emits READY_TO_DEPLOY / PREREQUISITES_MISSING with every item verified and copy-pasteable s3control / lambda / s3api commands. Use when transforming S3 objects on retrieval without maintaining a second copy. Triggers: S3 Object Lambda, transform GetObject, redact PII on retrieval, enrich S3 data, convert CSV to Parquet on read, Object Lambda access point, multi- region Object Lambda.
- compatibility
- Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). Live provisioning uses AWS CLI v2 with s3control (create-access-point, create-access-point-for-object-lambda, get-access-point-for-object-lambda, get-access-point-configuration- for-object-lambda), lambda (create-function, put-function- concurrency, put-function-event-invoke-config), iam (create-role, attach-role-policy), s3api (put-bucket-policy, get-bucket-policy), and cloudformation / terraform...
02 资源文件 20
- 参考文档eval/test-cases.yaml7.2 KB
- 参考文档evals/baselines/missing-reserved-concurrency-missing.md1.0 KB
- 参考文档evals/baselines/missing-write-get-object-response-missing.md1.1 KB
- 参考文档evals/baselines/multi-region-olap-ready.md1.2 KB
- 参考文档evals/baselines/olap-before-standard-ap-missing.md1.2 KB
- 参考文档evals/baselines/pii-redaction-getobject-ready.md1.1 KB
- 参考文档evals/eval_config.yaml1.8 KB
- 参考文档evals/evals.json4.6 KB
- 参考文档evals/prompts/missing-reserved-concurrency-missing.md957 B
- 参考文档evals/prompts/missing-write-get-object-response-missing.md1.1 KB
- 参考文档evals/prompts/multi-region-olap-ready.md1.3 KB
- 参考文档evals/prompts/olap-before-standard-ap-missing.md986 B
- 参考文档evals/prompts/pii-redaction-getobject-ready.md1.1 KB
- 参考文档example/README.md6.7 KB
- 参考文档references/advanced-patterns.md8.1 KB
- 参考文档references/diagnostic-commands.md1.1 KB
- 参考文档references/provisioning-cli-commands.md9.7 KB
- 参考文档references/transform-function-templates.md6.7 KB
- 参考文档references/worked-examples.md3.1 KB
- 参考文档skill.usf.yaml4.4 KB
03 SKILL.md 正文
S3 Object Lambda Deployer
What this skill does
Provisions S3 Object Lambda Access Points and the supporting transform
Lambda function with correct defaults. The skill walks a 9-step
procedure, surfaces the silent-failure modes unique to Object Lambda
(most dangerous: the Lambda function throttles surface as S3
AccessDenied to the client, not as a Lambda error; the supporting
standard AP must exist BEFORE the Object Lambda AP or creation
succeeds but routing breaks; CloudWatch logs land in a separate
log group prefixed /aws/s3/), and emits a READY_TO_DEPLOY checklist
verifying every item against actual state. The single most common
incident this skill prevents: an operator creates an Object Lambda AP
with no reserved concurrency on the transform function, traffic
spikes, Lambda throttles, and clients see S3-shaped AccessDenied
errors — operators blame S3 and file a ticket that goes nowhere
because the actual failure is in Lambda.
Quick navigation
| Section | What it covers | When to read it |
|---|---|---|
| Quick reference | Provisioning summary (9 steps), verdict thresholds, dependency graph | Before any operation |
| Activation keywords | Phrases that route to this skill | Disambiguating routing |
| Invocation contract | Required literal labels in the response | Formatting the response |
| Reasoning framework | Why the 9-step order matters; routing semantics | Understanding the deploy model |
| Dependency graph | Which configs silently no-op without their prerequisite | Debugging "transform doesn't fire" |
| Expert heuristic | The throttle-as-AccessDenied trap; routing chain; concurrency budget | Pre-empt production incidents |
| Prerequisites | What to verify before emitting any command | Avoid PREREQUISITES_MISSING rework |
| 9-step procedure | The actual provisioning with copy-pasteable CLI | Executing the deploy |
| NEVER (top 5) | Hard rules that prevent silent exposure / data-plane bugs | Review before deploy |
| STRICT output contract | Required OBJECT_LAMBDA_SPEC / VERDICT / CHECKLIST / VERIFICATION_COMMANDS block | Formatting the response |
| Recent AWS features | GetObjectACL, range downloads, multi-region Object Lambda | Stay current |
Quick reference — provisioning summary (9 steps)
| Step | Action | Reversible? | Key risk if skipped |
|---|---|---|---|
| 1 | Confirm bucket baseline (BPA, SSE, versioning) | — | Object Lambda inherits bucket weaknesses |
| 2 | Create or confirm the supporting standard Access Point | Yes | Object Lambda AP creation succeeds but routing breaks if AP missing |
| 3 | Create or confirm the IAM execution role for the transform Lambda | Yes | Lambda cannot read GetObject context without s3-object-lambda trust |
| 4 | Author the transform Lambda function (GetObject → transform → write back) | Yes | malformed response → client sees truncated/empty object, no error |
| 5 | Set reserved concurrency on the transform Lambda | Yes | throttle surface as S3 AccessDenied — clients blame S3 |
| 6 | Create the Object Lambda Access Point | Yes | wrong SupportingAccessPoint ARN → silent routing failure |
| 7 | Attach the TransformationConfiguration (Lambda ARN + operations) | Yes | operations not enabled → transform silently not invoked for that op |
| 8 | Optional: multi-region Object Lambda / GetObjectACL / range downloads | Yes | see per-feature silent failures |
| 9 | Verify every configuration item against actual state + emit checklist | — | silent no-ops |
Critical ordering constraints: bucket baseline before standard AP (Object Lambda inherits bucket-level weaknesses); standard AP BEFORE Object Lambda AP (the OLAP references the standard AP ARN, and the API does not always reject a forward reference cleanly); IAM role BEFORE Lambda function creation; Lambda function BEFORE Object Lambda AP creation (the OLAP creation references the Lambda ARN); reserved concurrency BEFORE traffic starts (the throttle-as-AccessDenied trap). Rationale and the silent-failure table are below.
Activation keywords
S3 Object Lambda, Object Lambda Access Point, OLAP, transform GetObject, redact PII on retrieval, mask PII on read, enrich S3 data on read, convert CSV to Parquet on read, transform-on-read, supporting Access Point, TransformationConfiguration, Object Lambda routing chain, Object Lambda concurrency, multi-region Object Lambda, Object Lambda with GetObjectACL, Object Lambda range download, GetObject transform, HeadObject transform, ListObjects transform, ListObjectVersions transform, WriteGetObjectResponse.
Invocation contract (hard requirement)
When this skill is invoked with an S3 Object Lambda provisioning
request, the agent MUST respond with the checklist defined in
§"STRICT output contract" using the literal all-caps labels
OBJECT_LAMBDA_SPEC:, VERDICT:, CHECKLIST:, and
VERIFICATION_COMMANDS:. Do NOT preface the checklist with prose,
headings, or disclaimers — emit the block as the first lines of the
response. This contract is what assertion-based evals and downstream
provisioning pipelines rely on; deviating from the literal labels
breaks automation silently.
Reasoning framework (why the provisioning order matters)
Moved to references/advanced-patterns.md — why the order matters: three-hop routing chain, WriteGetObjectResponse, presigned-URL event, concurrency ceiling. Load that reference on demand before executing this section.
Dependency graph (silent-failure table)
| Configuration | Hard dependencies (API error without) | Silent failure mode (returns 200, does nothing) | Enables downstream |
|---|---|---|---|
| Supporting standard Access Point | bucket exists in same region | OLAP creation with forward-ref AP ARN may succeed at API but routing returns 404 to client | OLAP routing |
| Object Lambda AP | standard AP exists; Lambda ARN in same region | wrong SupportingAccessPoint region → routing returns 404; CloudWatch shows no transform invocations | transform-on-read |
| TransformationConfiguration | OLAP exists; Lambda ARN valid | operations list omits HeadObject → HeadObject bypasses transform silently; client gets raw metadata | per-op transforms |
| Transform Lambda IAM role | trust policy s3-object-lambda.amazonaws.com; perm s3-object-lambda:WriteGetObjectResponse |
role lacks WriteGetObjectResponse → Lambda exits cleanly, client gets empty object, no error |
transform invocation |
| Transform Lambda code | uses WriteGetObjectResponse API |
Lambda returns body instead of writing → client gets empty object, no error |
correct transform |
| Lambda reserved concurrency | function exists | concurrency exhausted → client sees S3 AccessDenied, NOT Lambda ThrottledException; operators blame S3 | throughput ceiling |
| Object Lambda AP policy | OLAP exists | policy references wrong ARN format → matches nothing; clients get AccessDenied regardless of intent | client scoping |
| Multi-region Object Lambda | per-region OLAP in each region | client routed to wrong-region OLAP → reads stale or no data; no cross-region replication by default | DR / latency |
Range download (Range header) |
TransformationConfiguration enables it; Lambda handles Range |
Lambda ignores Range → returns full object; client billed for full GET, no error |
partial GETs |
The four silent-failure rows are the ones a baseline model misses.
Missing operations in TransformationConfiguration, missing
WriteGetObjectResponse permission, return-vs-write confusion, and
concurrency exhaustion all return success or S3-shaped errors and
only post-config verification (Step 9) catches the gap. This is why
the procedure verifies every item rather than trusting the API
response.
Expert heuristic: the throttle-as-AccessDenied trap
Moved to references/advanced-patterns.md — the throttle-as-AccessDenied trap and the reserved-concurrency remedy. Load that reference on demand before executing this section.
Expert heuristic: the WriteGetObjectResponse API
Moved to references/advanced-patterns.md — WriteGetObjectResponse vs return, with wrong/correct handler code. Load that reference on demand before executing this section.
Expert heuristic: the routing chain and the standard AP
Moved to references/advanced-patterns.md — the routing-chain diagram and the three ordering truths. Load that reference on demand before executing this section.
Prerequisites (verify before provisioning)
Before emitting any provisioning command, verify these prerequisites. If any are missing, the verdict is PREREQUISITES_MISSING with a specific gap citation.
| Prerequisite | Why it matters | How to verify |
|---|---|---|
| Bucket exists and meets baseline | Object Lambda inherits bucket-level weaknesses (no BPA, no SSE) | aws s3api get-public-access-block, get-bucket-encryption |
| Standard Access Point exists (or will be created) | The OLAP references the standard AP ARN; missing AP breaks routing | aws s3control get-access-point --account-id <ACCOUNT> --name <AP_NAME> |
| Lambda function ARN (existing or to be created) | The OLAP's TransformationConfiguration references the Lambda ARN | aws lambda get-function --function-name <FUNC> |
IAM execution role with s3-object-lambda trust |
Lambda must be assumable by s3-object-lambda.amazonaws.com |
aws iam get-role --role-name <ROLE> |
Lambda role policy includes WriteGetObjectResponse |
Without it the Lambda exits cleanly, client gets empty object | aws iam list-attached-role-policies / list-role-policies |
| Account ID | Required for OLAP ARN construction | aws sts get-caller-identity --query Account --output text |
| Region | OLAP and supporting AP must be in same region | aws configure get region |
| Expected peak GET rate (for concurrency) | Reserved concurrency must be set before traffic | application knowledge / get-metric-statistics on GetObject |
| Source bucket in each region (multi-region only) | Multi-region OLAP requires per-region source buckets | aws s3api list-buckets --region <REGION> per region |
If any prerequisite is missing, output VERDICT: PREREQUISITES_MISSING
and cite the specific gap.
9-step provisioning procedure
Step 1 — Confirm bucket baseline
An Object Lambda AP does NOT remediate bucket-level weaknesses. Before creating the OLAP, confirm the underlying bucket meets the production baseline: Block Public Access (account + bucket), default encryption (SSE-S3 or SSE-KMS with BucketKeyEnabled), and versioning if the workload needs non-current version transforms. See the s3-secure-bucket-deployer skill for the bucket baseline procedure.
aws s3api get-public-access-block --bucket <BUCKET>
aws s3api get-bucket-encryption --bucket <BUCKET>
aws s3api get-bucket-versioning --bucket <BUCKET>
Common mistake: skipping this step because "the OLAP will enforce access." The OLAP policy controls who invokes the transform; bucket-level controls still apply cumulatively.
Step 2 — Create or confirm the supporting standard Access Point
The OLAP references a standard AP ARN (NOT the bucket ARN directly). Create the standard AP first if it does not exist.
Moved to references/provisioning-cli-commands.md — create-access-point + AP policy CLI/JSON. Load that reference on demand before executing this section.
Common mistake: creating the OLAP with a forward-reference to a
standard AP that does not yet exist. The OLAP creation may succeed
but every GET returns 404. Always verify
get-access-point returns the standard AP BEFORE creating the OLAP.
Step 3 — Create or confirm the IAM execution role
Moved to references/provisioning-cli-commands.md — create-role + trust-policy JSON (s3-object-lambda.amazonaws.com principal). Load that reference on demand before executing this section.
The role's permission policy MUST include
s3-object-lambda:WriteGetObjectResponse. Without it, the Lambda
exits cleanly and the client receives an empty object — no error.
Moved to references/provisioning-cli-commands.md — put-role-policy + exec-policy JSON incl. WriteGetObjectResponse. Load that reference on demand before executing this section.
Common mistake: trusting only lambda.amazonaws.com in the trust
policy. Object Lambda invocations come from
s3-object-lambda.amazonaws.com — a service-linked invocation path
distinct from standard Lambda triggers.
Step 4 — Author the transform Lambda function
The transform Lambda receives an event with a presigned GetObject URL,
fetches the original object, transforms it, and writes the result back
via WriteGetObjectResponse. The Lambda MUST call
WriteGetObjectResponse; returning the body does nothing.
Moved to references/provisioning-cli-commands.md — aws lambda create-function command with defaults. Load that reference on demand before executing this section.
Moved to references/transform-function-templates.md — full PII-redaction handler source using WriteGetObjectResponse. Load that reference on demand before executing this section.
Common mistake: using event["requestRoute"] and
event["getRequest"]["token"] (older docs). The current event schema
uses event["getObjectContext"]["outputRoute"] and
event["getObjectContext"]["outputToken"]. Verify the event structure
in CloudWatch Logs before relying on a specific key path.
Step 5 — Set reserved concurrency on the transform Lambda
aws lambda put-function-concurrency \
--function-name <FUNC_NAME> \
--reserved-concurrent-executions 50
The reserved concurrency value IS the access point's throughput
ceiling. Set it equal to the expected peak GET rate. Alarm on Lambda
Throttles and Errors. Without it, a traffic spike throttles the
Lambda and clients see S3-shaped AccessDenied.
Step 6 — Create the Object Lambda Access Point
aws s3control create-access-point-for-object-lambda \
--account-id <ACCOUNT_ID> --name <OLAP_NAME> \
--configuration SupportingAccessPoint=arn:aws:s3:<REGION>:<ACCOUNT>:accesspoint/<STANDARD_AP_NAME>
Common mistake: using the bucket ARN or bucket name as the
SupportingAccessPoint value. The value MUST be the standard AP ARN
(arn:aws:s3:<region>:<account>:accesspoint/<name>), NOT the bucket
ARN.
Step 7 — Attach the TransformationConfiguration
Moved to references/provisioning-cli-commands.md — put-access-point-configuration-for-object-lambda command. Load that reference on demand before executing this section.
For multi-operation transforms (GetObject + HeadObject + ListObjects + ListObjectVersions), add each action explicitly:
Moved to references/provisioning-cli-commands.md — explicit per-operation entries (GetObject + HeadObject). Load that reference on demand before executing this section.
Common mistake: omitting HeadObject from the actions list. A
client issuing HeadObject against the OLAP gets the raw metadata
(no transform) with no error surfaced — the transform silently does
not apply to that operation.
Step 8 — Optional: multi-region / GetObjectACL / range downloads
Moved to references/advanced-patterns.md — 8a multi-region OLAP, 8b GetObjectACL, 8c range downloads. Load that reference on demand before executing this section.
Step 9 — Verification
Run every verification command and confirm each output matches the expected state.
Moved to references/diagnostic-commands.md — the full verification command listing incl. live GET + CloudWatch. Load that reference on demand before executing this section.
For multi-region OLAP, verify each region independently with
get-access-point-for-object-lambda --region <REGION>.
NEVER do these things
These anti-patterns cause silent exposure, data-plane bugs, or compliance violations. Each is observed in real production incidents — the "why it's wrong" line is the post-mortem finding.
-
NEVER deploy an Object Lambda AP without reserved concurrency on the transform function. Why it's wrong: Object Lambda invokes synchronously; the function's concurrency budget IS the AP's throughput ceiling. At throttle, clients see S3-shaped errors (
AccessDenied,SlowDown) — operators blame S3. Set reserved concurrency + a CloudWatch alarm on LambdaThrottles. -
NEVER author a transform Lambda that
returns the body instead of callingWriteGetObjectResponse. Why it's wrong: the Lambda runs, exits cleanly, and the client receives an empty object with no error surfaced. The correct API isWriteGetObjectResponsewithRequestRouteandRequestTokenfrom the event payload. -
NEVER create the OLAP before the supporting standard Access Point. Why it's wrong: the OLAP references the standard AP ARN, and creation may succeed against a forward reference. Every GET then returns 404 with no clear error. Always verify the standard AP with
get-access-pointBEFORE creating the OLAP. -
NEVER omit operations from the TransformationConfiguration and assume they are silently skipped. Why it's wrong: operations not listed (e.g., HeadObject, ListObjects) bypass the transform silently — the client gets the raw response with no error. The transform appears to "not fire" for those operations while the OLAP is technically healthy.
-
NEVER trust only
lambda.amazonaws.comin the execution role's trust policy. Why it's wrong: Object Lambda invocations come froms3-object-lambda.amazonaws.com, a distinct service-linked path. The Lambda may appear to have the right permissions but fail to be assumed on invocation.
Output format
Moved to references/worked-examples.md — the literal OBJECT_LAMBDA_SPEC / VERDICT / CHECKLIST / VERIFICATION_COMMANDS template. Load that reference on demand before executing this section.
STRICT output contract
The rules below are hard constraints. Violating any one produces a checklist that looks complete but contains a silent misconfiguration. Self-check EVERY emitted block against these rules before returning.
Required output structure
Every response MUST be a single block using these literal labels, in this order. Do NOT preface with prose, headings, or disclaimers.
OBJECT_LAMBDA_SPEC: <olap-name>
VERDICT: READY_TO_DEPLOY | PREREQUISITES_MISSING
CHECKLIST:
[✓|✗] Bucket baseline (BPA, SSE, versioning): verified
[✓|✗] Supporting standard AP: created (<STANDARD_AP_NAME>) with Lambda-read policy
[✓|✗] IAM execution role: trust=s3-object-lambda, perms include WriteGetObjectResponse
[✓|✗] Transform Lambda: authored (runtime, handler, uses WriteGetObjectResponse)
[✓|✗] Reserved concurrency: set (<n>) to expected peak GET rate
[✓|✗] Object Lambda AP: created, SupportingAccessPoint=<STANDARD_AP_NAME> ARN
[✓|✗] TransformationConfiguration: operations=[GetObject, HeadObject, ...]
[✓|✗] Optional: multi-region | GetObjectACL | range downloads | none
VERIFICATION_COMMANDS:
<copy-pasteable verification commands — one per [✓] item>
Decision tree: Object Lambda deployment path
Object Lambda — START
│
Q1: Transform objects on READ (not write)?
├── NO → Use S3 Batch Operations or Lambda on upload (not Object Lambda)
└── YES → Q2
│
Q2: Is the transform per-request (different output per caller / role)?
├── NO → Pre-materialize a transformed copy (cheaper for static transforms)
└── YES → Q3
│
Q3: Will peak GET rate exceed the Lambda concurrency budget?
├── YES → Set reserved concurrency BEFORE traffic; add CloudFront caching
│ at edge to reduce origin GETs (cache TTL = transform freshness)
└── NO → Q4
│
Q4: Need HeadObject / ListObjects transforms beyond GetObject?
├── YES → Add each operation to TransformationConfiguration explicitly
└── NO → Q5
│
Q5: Multi-region DR or latency required?
├── YES → Per-region OLAP + per-region Lambda + Route 53 latency routing
└── NO → Single-region OLAP; optional CloudFront for edge caching
CloudFront: origin = OLAP hostname, CachePolicy includes
headers needed by transform, TTL based on transform freshness
FORBIDDEN output patterns
-
NEVER emit
VERDICT: READY_TO_DEPLOYwithout showing ALL 8 checklist items. Every item MUST appear with a status marker:[✓](applied and verified),[✗](not applied or misconfigured), or[OPTIONAL](not needed for this workload). Omitting a row implies it was not evaluated. -
NEVER mark Transform Lambda as
[✓]without confirming the code callsWriteGetObjectResponse. A Lambda thatreturns the body produces a function that runs cleanly and a client that receives an empty object. The verification MUST citeWriteGetObjectResponsein the rationale. -
NEVER mark Reserved concurrency as
[✓]without a specific number. A bare[✓]with no concurrency value implies the default (account-level unreserved), which is the throttle-as-AccessDenied trap. The value MUST be cited. -
NEVER mark TransformationConfiguration as
[✓]without listing the operations. Operations not listed bypass the transform silently. The verification MUST include the explicit operations list (e.g.,[GetObject, HeadObject]). -
NEVER mark the supporting standard AP as
[✓]without confirming the AP policy allows the Lambda's role. Without read permission, the presigned URL fetch fails with AccessDenied — the transform never runs. The verification MUST includeget-access-point-policy. -
NEVER emit
VERDICT: PREREQUISITES_MISSINGwithout citing the specific gap. Each[✗]item MUST have a one-line reason:[✗] Lambda role missing s3-object-lambda:WriteGetObjectResponse — add permission before deploy. A bare[✗]with no explanation is non-compliant. -
NEVER deploy an Object Lambda AP behind CloudFront without confirming the cache behavior accounts for transform output variance. CloudFront caches the OLAP response; if the transform produces role-specific output (e.g., PII redaction varies by caller), caching MUST be disabled or keyed on the authorization header. A single cached response served to all callers defeats the per-request transform and can leak data across principals.
Perfect example output — READY_TO_DEPLOY
Scenario: CSV-to-JSON transformation on retrieval. Analysts query S3 CSV reports via BI tools; the Object Lambda AP converts CSV to JSON on the fly. CloudFront sits in front for edge caching (CSV refreshes hourly, cache TTL = 3600s). Reserved concurrency = 100 for peak load.
OBJECT_LAMBDA_SPEC: csv-json-olap
VERDICT: READY_TO_DEPLOY
CHECKLIST:
[✓] Bucket baseline: analytics-reports, BPA all 4 True, SSE-KMS, versioning Enabled
[✓] Supporting standard AP: reports-std-ap with Lambda-read policy on
arn:aws:iam::444455556666:role/olap-transform-exec
[✓] IAM execution role: olap-transform-exec, trust=s3-object-lambda.amazonaws.com,
perms include s3-object-lambda:WriteGetObjectResponse + s3:GetObject on
arn:aws:s3:us-east-1:444455556666:accesspoint/reports-std-ap/*
[✓] Transform Lambda: csv-to-json-fn (python3.12, index.handler,
uses WriteGetObjectResponse; see Lambda code below)
[✓] Reserved concurrency: 100 (expected peak ~80 GETs/sec)
[✓] Object Lambda AP: csv-json-olap,
SupportingAccessPoint=arn:aws:s3:us-east-1:444455556666:accesspoint/reports-std-ap
[✓] TransformationConfiguration: operations=[GetObject]
[✓] CloudFront: distribution E2Q1U3V5EXAMPLE, origin = OLAP hostname
(csv-json-olap-444455556666.s3-object-lambda.us-east-1.amazonaws.com),
DefaultTTL=3600 (CSV refreshes hourly), CachePolicy=CachingOptimized
[OPTIONAL] Multi-region / GetObjectACL / range downloads: none
VERIFICATION_COMMANDS:
aws s3control get-access-point --account-id 444455556666 --name reports-std-ap
aws s3control get-access-point-policy --account-id 444455556666 --name reports-std-ap
aws s3control get-access-point-for-object-lambda --account-id 444455556666 --name csv-json-olap
aws s3control get-access-point-configuration-for-object-lambda --account-id 444455556666 --name csv-json-olap
aws lambda get-function --function-name csv-to-json-fn
aws lambda get-function-concurrency --function-name csv-to-json-fn
aws cloudfront get-distribution-config --id E2Q1U3V5EXAMPLE
Moved to references/worked-examples.md — full transform Lambda source + CloudFront edge-caching CLI for the primary example. Load that reference on demand before executing this section.
Perfect example output — PREREQUISITES_MISSING
Moved to references/worked-examples.md — the full PREREQUISITES_MISSING example block. Load that reference on demand before executing this section.
Self-check before emit:
- [ ] All 8 checklist rows present (no omitted items)?
- [ ] Every
[✓]has a matching verification command? - [ ] Transform Lambda rationale cites
WriteGetObjectResponse? - [ ] Reserved concurrency has a specific number?
- [ ] TransformationConfiguration lists explicit operations?
- [ ] Supporting AP policy allows the Lambda role?
- [ ] CloudFront cache behavior accounts for transform output variance (if deployed behind CF)?
- [ ] Every
[✗]cites the specific gap and what the operator must provide?
Recent AWS features
Moved to references/advanced-patterns.md — GetObjectACL, range downloads, multi-region OLAP, multi-op TransformationConfigurations, log-group locations. Load that reference on demand before executing this section.
References (load on demand)
- references/provisioning-cli-commands.md — copy-pasteable CLI for every provisioning step (standard AP + policy, IAM trust/exec policies, Lambda creation, OLAP, TransformationConfiguration) plus rollback.
- references/transform-function-templates.md — transform Lambda source templates (PII redaction, enrichment, CSV-to-JSON, HeadObject, range) and the Object Lambda event schema.
- references/diagnostic-commands.md — Step 9 post-deploy verification command listing (state checks, live GET, CloudWatch).
- references/worked-examples.md — full worked outputs: checklist template, READY_TO_DEPLOY extended (CSV-to-JSON Lambda + CloudFront), PREREQUISITES_MISSING.
- references/advanced-patterns.md — reasoning deep dive, expert heuristics (throttle-as-AccessDenied, WriteGetObjectResponse, routing chain), optional features (multi-region / GetObjectACL / range), recent AWS features.
04 同仓库更多 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.
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.
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.
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.
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.
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.