Commit Graph
30 Commits
Author SHA1 Message Date
Niels Kootstra 0a8b6396ac test(ssm): check CreateAssociation on the document it runs (#8230)
Under IAM enforcement, CreateAssociation is checked on the document its
Name gives as well as the association it makes, which the generated
request-resource table has done since #8203. An enforcement test now
shows a user allowed on one document can associate it and is refused
for another, and a request-resource test shows a shared document given
by its ARN is checked on that ARN. The SSM docs note the check.
2026-11-14 17:22:41 -04:00
Jackson PriceandAndre Kurait c97f913f5e fix(ssm): normalize names across parameter operations (#8278)
Signed-off-by: Andre Kurait <akurait@amazon.com>
Signed-off-by: Jackson Price <jxnprice@amazon.com>
Co-authored-by: Andre Kurait <AndreKurait@gmail.com>
2026-11-14 11:44:37 -04:00
Jackson PriceandAndre Kurait ad549728df fix(ssm): return GetParameters results alphabetically (#8270)
Signed-off-by: Andre Kurait <AndreKurait@users.noreply.github.com>
Signed-off-by: Jackson Price <jxnprice@amazon.com>
Co-authored-by: Andre Kurait <AndreKurait@gmail.com>
2026-11-14 01:37:14 -04:00
Niels Kootstra 236e20003f fix(ssm): keep document and association tags and tag them by resource type (#8132)
CreateDocument and CreateAssociation now keep their Tags, and AddTagsToResource, ListTagsForResource and RemoveTagsFromResource pick a document by name or an association by ID from ResourceType instead of always looking up a parameter. A document's tags are returned in its DocumentDescription and ListDocuments entry.

Read the SSM tag calls, CreateDocument and CreateAssociation from the
generated request-resource table instead of building their ARNs by hand.
A ResourceType enum value now picks its resource type ignoring case and
hyphens, ResourceId fills it whatever its kind, and a variable named for
leaving out the leading slash drops it, as a parameter ARN does.

Closes #7959
2026-11-13 08:56:30 -04:00
Tyler Webb 0383d65acb fix(ssm): validate PutParameter names and resolve tagging ARNs only in the request's region (#7965)
* fix(iam): evaluate SSM GetParametersByPath and GetParameters against the requested parameters

GetParametersByPath is now checked against the parameter ARN of its Path, and GetParameters against each entry in Names, instead of parameter/*. A root Path keeps the parameter/* fallback.

* test(ssm): cover path and per-name IAM checks on parameter reads

* fix(iam): read each SSM operation's own resource field and drop read selectors

GetParametersByPath is evaluated against Path only, GetParameters and DeleteParameters against Names only, and other actions against Name only, so a field the handler ignores can no longer stand in for the one it acts on. GetParameter and GetParameters names lose their :version or :label selector, in name and ARN form, before the parameter ARN is built, so a grant on the base parameter covers them.

* test(ssm): cover per-operation IAM fields, read selectors and batch deletion

GetParametersByPath with a denied Path and an allowed extraneous Names entry is refused; a grant on a parameter allows reading its versions and labels by name and ARN; DeleteParameters needs a grant on every name and deletes nothing when one is refused.

* fix(iam): check SSM Names as the handler reads them and the root path as parameter/

Names is iterated the way SsmJsonHandler iterates it, so an object-shaped Names is checked against each of its values instead of parameter/*. A name that looks like an ARN but does not parse loses its selector like any other name, matching how SsmService reads it. GetParametersByPath on the root path is checked against parameter/, the empty parameter name AWS authorizes it against; a missing or empty Path keeps the parameter/* fallback.

* test(ssm): prove path and batch-delete checks with a Deny under a parameter/* Allow

Both tests now allow the action on parameter/* and deny it on the protected path or parameter, so they fail where the request is checked against parameter/* and pass only when it is checked against the Path or every entry in Names.

* fix(iam): treat an SSM request without an operation as a Name request

Set.of rejects a null lookup, so the Names and selector-read checks now test for a missing operation first; such a request falls to the Name branch as it did before.

* fix(iam): check GetParametersByPath without a Path against the root path

SsmJsonHandler reads Path with asText and SsmService lists a blank path from the root, so a missing, empty or non-text Path is now checked against parameter/, the same resource as Path="/", instead of parameter/*. A Deny on parameter/ could otherwise be sidestepped by leaving Path out. A null Path or, for the parameter operations whose handler reads Name with asText, a null Name is checked against parameter/null, the parameter the handler acts on. The builder's Javadoc is split into shorter sentences and wrapped to 120 columns.

* test(ssm): prove a Deny holds against read selectors and the root path

A Deny on a parameter refuses GetParameter on its version, its label and its ARN with a label, and a Deny on parameter/ refuses GetParametersByPath on Path="/" and with no Path at all, each under a parameter/* Allow.

* fix(ssm): reject a PutParameter name outside the parameter name syntax

* test(ssm): cover PutParameter rejecting colon and space names

* fix(iam): check SSM names with the whitespace their handler keeps

* test(ssm): cover untrimmed Name and Names in IAM checks

* test(ssm): prove a Deny holds against GetParameters selectors

* fix(ssm): strip surrounding spaces from a PutParameter name as AWS does

* fix(iam): check a PutParameter against the name it stores, spaces stripped

* test(ssm): cover PutParameter stripping surrounding spaces from a name

* test(iam): cover a PutParameter Name checked with its spaces stripped

* fix(ssm): read a parameter//name ARN as //name, not /name

* test(ssm): prove a parameter//name ARN cannot read a denied /name

* fix(iam): check GetParametersByPath on its path without a trailing slash

* test(iam): prove a Deny on a path holds when GetParametersByPath adds a trailing slash

* fix(iam): check an empty SSM name on parameter/, not parameter/*

* test(iam): cover an empty SSM Name and Names entry checked on parameter/

* fix(cloudformation): record an SSM parameter under the name PutParameter stores

* test(cloudformation): cover an SSM parameter Name with surrounding spaces

* fix(iam): check SSM tagging against the parameter its ResourceId names

* test(iam): cover SSM tagging checked against ResourceId, not an injected Name

* fix(cloudformation): update an SSM parameter in place when its prior id differs only by surrounding spaces

* test(cloudformation): cover updating a parameter recorded with surrounding spaces

* fix(ssm): resolve a tagging ResourceId ARN only in the request's partition, region and account

AddTagsToResource, ListTagsForResource and RemoveTagsFromResource now resolve
an ARN ResourceId the way parameter reads do: only an ssm parameter/ ARN in the
request's partition, region and account names a stored parameter. An ARN for
another region or account, or a parameter ARN without the slash after
parameter, is looked up as a literal name and reported as InvalidResourceId.

IAM evaluates tagging against the ResourceId ARN as sent, so before this a
foreign-region ARN could pass a Deny on the local parameter's ARN and still
tag the local parameter.

* test(iam): cover SSM tagging by a foreign-region ARN leaving a denied parameter untagged

* fix(cloudformation): replace an SSM parameter whose prior id has surrounding spaces

A stack created before parameter names were stripped stored its parameter
under the spaced name, so updating it in place under the stripped name read a
parameter that does not exist and failed with ParameterNotFound. The update
is a replacement again, as for any changed physical id: it creates the
stripped name and deletes the spaced parameter when the update commits.

* refactor(iam): shorten the SSM resource ARN builder's Javadoc

* fix(ssm): resolve a legacy parameter<name> ARN in tagging calls

Before parameter ARNs matched AWS, Floci gave a top-level parameter the
form parameter<name>, and the ARN normalization promised those ARNs
still resolve. Tagging now reads its ResourceId through the
request-scoped read path, which rejected them. A parameter<name> ARN of
the request's partition, region and account is now read as
parameter/<name> before the lookup; one from any other partition,
region or account is still rejected.

* fix(iam): check a legacy parameter<name> tagging ARN as parameter/<name>

The tagging handler reads a parameter<name> ResourceId ARN of the
request's partition, region and account as parameter/<name>. IAM now
evaluates the same ARN, so a Deny on parameter/<name> holds against the
legacy form and IAM and the handler agree on the parameter. A legacy ARN
of another partition, region or account is evaluated as given, and the
handler rejects it.

* fix(ssm): trim only spaces from a PutParameter name

AWS removes leading and trailing spaces from a PutParameter name, not
other whitespace. PutParameter, the AWS::SSM::Parameter provisioner and
the IAM check on PutParameter used String.strip(), which also dropped
tabs, newlines and non-breaking spaces, so such a name was stored under
a different name instead of failing validation. All three now share
SsmService.withoutSurroundingSpaces, which removes only the space
character, so IAM still checks the name the handler stores.
UnlabelParameterVersion keeps its existing strip() on both sides.

* fix(cloudformation): roll back an SSM parameter without PutParameter's name checks

A failed stack update restores the parameter through PutParameter under
the name its snapshot recorded. PutParameter now trims spaces and
rejects colons and interior spaces, so restoring a parameter stored
before those checks either failed, leaving the rollback half done, or
wrote a different, trimmed name. SsmService.restoreParameter overwrites
the parameter under its exact stored name with the rest of
PutParameter's validation, and the rollback uses it.

* docs(ssm): describe parameter name checks, tagging ARNs and IAM resources

Document that PutParameter trims only spaces and rejects names outside
the parameter name syntax, that tagging accepts parameter ARNs of the
request's partition, region and account (the legacy parameter<name>
form included), and which request field each action's IAM check reads.

* fix(iam): check a GetParametersByPath path ending in // as the path searched

GetParametersByPath searches under a Path that already ends in a slash
unchanged, so /app// lists /app//<name>. Dropping one slash checked it
against parameter/app/, which a Deny on parameter/app// never matched.
Only a single trailing slash is dropped now.

Signed-off-by: Tyler Webb <tyler.webb@verkada.com>

* fix(iam): read a legacy SSM tagging ARN in the request's partition

The tagging handlers decide whether a legacy parameter<name> ARN is the
request's own using the request's partition, which for a Region no
partition publishes is the deployment's. The IAM check used the
commercial partition there, so in a non-aws deployment it checked the
literal parameter<name> ARN while the handler tagged parameter/<name>,
and a Deny on parameter/<name> did not apply. SSM requests now carry the
request's partition into the check, as Route 53's do.

Signed-off-by: Tyler Webb <tyler.webb@verkada.com>

* test(cloudformation): fail an SSM rollback restore through restoreParameter

The rollback restore now writes through SsmService.restoreParameter rather
than putParameter, so the integration test's simulated restore failure has
to stub that method for the rollback to fail as the tests expect.

Signed-off-by: Tyler Webb <tyler.webb@verkada.com>

* refactor(iam): leave SSM request resources to the existing builder

Move the SSM IAM resource changes out of this branch so it carries only the
SSM service fixes. The resource-per-operation work moves onto the IAM
request-resource generator separately. withLegacyParameterSlash goes back to
private now that only SsmService reads it.

Signed-off-by: Tyler Webb <tyler.webb@verkada.com>

* test(ssm): cover a parameter//name ARN reading nothing under one slash

Signed-off-by: Tyler Webb <tyler.webb@verkada.com>

* docs(ssm): drop the IAM resource description and note the double-slash ARN

Signed-off-by: Tyler Webb <tyler.webb@verkada.com>

---------

Signed-off-by: Tyler Webb <tyler.webb@verkada.com>
2026-11-12 20:02:54 -04:00
jwoa95 99f9a49ebe fix(ssm): normalize retained legacy parameter ARNs (#7698) (#7702)
Retained flat-name parameters still exposed the pre-fix ARN stored on disk. Normalize only the exact legacy SSM resource suffix when reading the ARN, retaining its stored partition, region and account. All metadata consumers and serialized responses then use the canonical resource without overwriting the parameter or incrementing its version.

Cover retained persistent JSON, version and label reads, metadata and history preservation, all eight partitions, canonical flush/reload, unrelated ARN preservation, and AWS SDK exact-resource IAM policy consumption. Malformed policy ARNs remain denied.

Validation: 298 focused SSM and partition tests passed; Checkstyle reports zero violations; docs-check and partition-check passed.

Fixes #7698
2026-11-09 22:16:10 -04:00
Niels Kootstra d44e96eab8 fix(ssm): return a SecureString's KMS ciphertext when a read does not decrypt (#7335)
* fix(ssm): return a SecureString's KMS ciphertext when a read does not decrypt

GetParameter, GetParameters, GetParametersByPath and GetParameterHistory
returned a SecureString's plaintext whether or not the request set
WithDecryption. AWS encrypts the value with KMS on PutParameter, under the
parameter's key with the PARAMETER_ARN encryption context, and returns
that ciphertext unless the read asks for decryption.

PutParameter now encrypts a SecureString with Floci's KMS and stores the
ciphertext with the version, so every read of a version returns the same
value and KMS Decrypt with the parameter's ARN as context returns the
plaintext. A key KMS cannot use, a value over KMS's 4096-byte limit, and
a version stored before this change are still returned unencrypted.

* fix(ssm): log a SecureString stored without a ciphertext and keep the at-rest note

* fix(ssm): say how AWS encrypts Advanced SecureStrings and reuse the shared test client
2026-11-02 15:07:34 -04:00
Allen Sanborn 268d231690 fix(ssm): resolve Canonical's public Ubuntu AMI parameters (#7268) 2026-11-01 22:15:44 -04:00
galsuchetzky-act 045c65ec49 feat(ssm): add PutResourcePolicy, GetResourcePolicies and DeleteResourcePolicy for parameters (#6833)
AWS lets an Advanced-tier parameter carry one resource-based policy, used to
share it with other accounts. PutResourcePolicy returns a PolicyId and a
PolicyHash, and updating or deleting the policy takes both: a hash that is no
longer current is ResourcePolicyConflictException, an unknown id is
ResourcePolicyNotFoundException, and an unknown parameter is
ResourceNotFoundException. Floci answered all three actions with
UnsupportedOperation.

The parameter now stores its policy with an id and a hash of the document.
PutResourcePolicy rejects a Standard-tier parameter, a policy over 1024 bytes
and a document that is not a JSON object with the documented errors.
GetResourcePolicies pages with MaxResults (1 to 50) and NextToken. An
overwriting PutParameter keeps the policy and deleting the parameter removes
it. The policy is not evaluated against callers, and no AWS RAM resource share
is created.
2026-10-30 11:09:39 -04:00
Aniket Shukla f24cab1622 fix(ssm): resolve parameter ARNs in public reads (#6713) 2026-10-27 00:00:36 -04:00
Jimmy Liu Jia 51ce672218 feat(ssm): expose ECS optimized AL2023 AMI parameters (#6583) 2026-10-25 23:31:48 -04:00
Jimmy Liu Jia bcae24f5fc feat(ssm): match parameter path label filters (#6560)
* feat(ssm): match parameter path label filters

* fix(ssm): match labeled version metadata in path filters
2026-10-25 17:29:17 -04:00
Aniket Shukla efc693ad17 fix(ssm): include parameter ARNs in describe metadata (#6289) 2026-10-22 19:39:16 -04:00
Aniket Shukla a9ceee1de6 fix(ssm): honor path parameter type filters (#6183)
* fix(ssm): honor path parameter type filters

Forward GetParametersByPath Type filters through the existing parameter-filter validation and matching rules. Retain path, recursion, region and public AMI selection, and document the remaining filter and pagination limitations.

* fix(ssm): validate path filter keys and apply key ids

Reject missing and action-invalid filter keys before selecting path results. Reuse the existing Type and KeyId matcher, and validate Label options while keeping label matching a documented gap.

Verify 264 focused SSM tests, Checkstyle, 95 docs tests, docs checks, and the partition gate. Regression tests fail before the fix and detect an inverted key allowlist.

* fix(ssm): reuse canonical invalid filter option errors

Share the existing AWS InvalidFilterOption message between DescribeParameters and Label path filters. Assert the complete HTTP message for invalid KeyId and Label options.

Verify 264 focused SSM tests, three CI-failing Lambda/SQS tests, Checkstyle, docs checks, 95 docs tests, and the partition gate. The two Label message assertions fail before the fix.
2026-10-22 17:06:23 -04:00
Mario Toffia 89317831bb feat(ssm): publish parameter change events (#5262)
* feat(ssm): publish parameter change events

After a successful PutParameter, DeleteParameter, DeleteParameters,
LabelParameterVersion or UnlabelParameterVersion, SsmService publishes the
AWS-shaped aws.ssm "Parameter Store Change" event to the default EventBridge
bus, with the parameter ARN in resources. A label event carries the type and
description of the labelled version; an unlabel event lists the labels it
removed. Every event is published after the service lock is released. Failed
calls publish nothing, and a delivery failure is logged without failing or
undoing the write. CloudFormation managed parameters go through SsmService and
publish the same events.

* test(cloudformation): move CfnStackWaits into testing

CfnStackWaits was package-private in the CloudFormation tests, so the SSM
event integration test polled DescribeStacks for CREATE_COMPLETE itself.
It now lives in testing with a public API, and that test waits through
CfnStackWaits.awaitStatus and builds its CloudFormation requests with
CfnRequests.cfn instead of a private copy.

* refactor(eventbridge): build service event entries in one place

The ECS, Step Functions, Redshift Data, CodePipeline, SES and SSM publishers
each built the same Source, DetailType, Detail and Resources entry.
EventBridgeService.serviceEventEntry builds it, with Resources always
present and empty for a null or blank resource ARN. Each publisher still
calls putEvents with its own region and account. The explicit default
EventBusName and the Region that repeated putEvents' region argument are
gone; putEvents fills both the same way.
2026-10-21 07:07:39 -04:00
Mario Toffia c145fa104c fix(ssm): normalize parameter resource ARNs (#5261)
* fix(ssm): normalize parameter resource ARNs

A parameter's ARN is now arn:<partition>:ssm:<region>:<account>:parameter/<name
without leading slash> for both top-level names and paths, matching AWS. Before,
a top-level name such as foo got parameterfoo.

SsmService.parameterResource(name) is the single formula, used by PutParameter
and by the AWS::SSM::Parameter provisioner, so the CloudFormation Arn attribute
equals the GetParameter ARN.

Tag operations and the internal getParameter(nameOrArn, region) read resolve an
ARN to the stored name and, for parameter/x when only x is stored, fall back to x,
so a top-level parameter is found by its ARN, also with a :version or :label
selector. ECS task secrets pass valueFrom to
that read whole instead of stripping only ":parameter". Legacy parameterfoo ARNs
still resolve.

* test(cloudformation): share the CloudFormation Query request builder

Six CloudFormation integration tests each carried a private copy of the
same Query request builder, as cfn or request. CfnRequests.cfn in testing
replaces them, as RdsRequests.rds does for RDS. A null stack name leaves
StackName out, which the ContinueUpdateRollback validation test needs.
2026-10-19 09:46:50 -04:00
David Phillips 356c79e78e fix(ssm): parse and bound command delivery timeouts (#5908)
* fix(ssm): limit public command delivery time

* docs(ssm): describe command delivery timeouts

* fix(ssm): deserialize delivery timeouts before checking bounds

Handle numeric delivery timeouts consistently without bypassing limits.

* fix(ssm): report member-specific deserialization errors

Name the expected scalar type and explain malformed structures.

* refactor(ssm): keep delivery timeout errors consistent
2026-10-18 11:03:48 -04:00
David Phillips 23edd58992 fix(ssm): separate shell execution and delivery timeouts (#5865)
* fix(ssm): separate shell execution and delivery timeouts

* fix(ssm): require a command list for public shell requests

* test(ssm): share command request and cleanup fixtures
2026-10-17 13:43:37 -04:00
David Phillips d4158b954b fix(ssm): retain command ownership during background execution (#5841)
* fix(ssm): retain command ownership during background execution

* fix(ssm): keep agent fallback messages within their owner

* test(ssm): share region-scoped authorization fixtures
2026-10-16 22:34:08 -04:00
Ovidiu (Ovi) 4f34a903fc feat(ssm): support UnlabelParameterVersion (#5339)
* feat(ssm): support UnlabelParameterVersion

Remove one or more labels from a parameter version. Labels attached to
the version are returned in RemovedLabels; labels that are not on that
version, including ones attached to a different version, are returned in
InvalidLabels and left in place. A missing parameter is ParameterNotFound,
a missing version ParameterVersionNotFound, and an omitted ParameterVersion
or an empty or oversized label list a ValidationException.

* fix(ssm): match AWS errors and ordering in UnlabelParameterVersion

Verified against real AWS (us-east-1):

- Report every missing or invalid member in one ValidationException, in
  the order name, parameterVersion, labels, and render the label list
  the way AWS does ('[prod, ]').
- Reject a string or boolean ParameterVersion and a non-string Name or
  label with SerializationException; truncate a fractional version and
  clamp one outside the range of a long, as AWS does.
- Reject an ARN, a malformed or ssm-prefixed name, and deny an
  aws-prefixed one before the lookup; ignore surrounding whitespace in
  the lookup but echo the name as sent in error messages.
- Word ParameterVersionNotFound as AWS does.
- Return RemovedLabels in the order the labels are stored on the
  version, and InvalidLabels in request order.

LabelParameterVersion shares the label-list parsing, so its label
validation messages and non-string labels now match AWS too.

* fix(ssm): take the service monitor when deleting parameters

PutParameter, LabelParameterVersion and UnlabelParameterVersion already
run under the SsmService monitor, but DeleteParameter and
DeleteParameters did not. A delete landing between a label or unlabel
call's lookup and its history write left orphaned history that a later
PutParameter of the same name appended to.

Also pin LabelParameterVersion's AWS-verified label validation messages
and its SerializationException for a non-string label in its own
integration test, and share the parameter-name format rule between the
two reserved-name messages.
2026-10-09 13:11:29 -04:00
Mario Toffia 86c4904bcc fix(ssm): resolve Secrets Manager references in GetParameter (#4581)
* fix(ssm): resolve Secrets Manager references in GetParameter

GetParameter and GetParameters now answer
/aws/reference/secretsmanager/<secret-id>[:<version-id-or-label>] from
Secrets Manager, with the checks, error texts and response fields
measured against AWS: WithDecryption must be true, a missing secret is
ParameterNotFound, and GetParameters lists a reference it cannot answer
in InvalidParameters. ECS task secrets and CodeBuild parameter-store
variables read through the same path; a CloudFormation
AWS::SSM::Parameter::Value<String> parameter still refuses one, as on AWS.

* fix(ssm): check secretsmanager:GetSecretValue on a Secrets Manager reference

AWS reads /aws/reference/secretsmanager/ with the caller's own
secretsmanager:GetSecretValue, checked before the secret is looked up.
With IAM enforcement on, a caller allowed only ssm:GetParameter now gets
the ValidationException AWS sends, and GetParameters fails as a whole.

* fix(ssm): authorize a Secrets Manager reference on the secret's ARN

A grant on a secret's exact ARN, which CDK grantRead and a CloudFormation
Ref produce, did not match the suffix-less name ARN, so an allowed caller
was refused. The check now uses the secret's ARN and falls back to the
name only when the secret does not exist.

* fix(ssm): check a Secrets Manager reference's value on the secret it came from

The value is read by name after the check, so a secret force-deleted and
recreated in between was returned on the old secret's grant. The ARN of
the secret actually read is now checked too.

* fix(ssm): read a Secrets Manager reference's value from the secret it described

* docs(ssm): note the partial-ARN fallback a Secrets Manager reference read leaves

* fix(ssm): return SourceResult on a Secrets Manager reference

* fix(ssm): reject a malformed Secrets Manager reference before checking IAM

* chore(ssm): sort SsmService imports
2026-09-29 14:57:11 -04:00
Vũ Thế Huy 5ae46c2bd3 fix(ssm): support parameter selectors in GetParameter and align LabelParameterVersion with AWS (#4461)
* fix(ssm): support name:version and name:label selectors in GetParameter

- Support name:version and name:label selectors in GetParameter and GetParameters
- Resolve selector against parameter history copies without mutating stored parameters
- Validate labels in LabelParameterVersion per AWS spec (reject numeric and reserved labels)
- Return invalid labels in InvalidLabels response
- Synchronize labelParameterVersion and clone history entries to handle concurrent updates without in-place mutation
- Enforce 10-label maximum limit per parameter version
- Default to latest version only when ParameterVersion is omitted
- Guard against NPE and trailing colons in getParameter selector lookup

Closes #4396

* fix(ssm): enforce label validation constraints in LabelParameterVersion

- Reject empty labels and labels exceeding 100 characters with ValidationException
- Reject empty label lists and lists with more than 10 labels with ValidationException
- Update findSelectedVersion comment to reflect that labels are unique across versions
2026-09-28 21:07:46 -04:00
Simone Primarosa 188542e67f feat(ssm): seed the EKS optimized AMI parameter paths (#4191) 2026-09-23 12:00:12 -04:00
Matheus André f77cf4da77 fix(ec2,ssm): explain missing IMDS registration for SSM-only managed instances (#3283) 2026-09-09 00:26:30 -05:00
lex00 8142457f9b feat(ssm): answer the public Amazon Linux AMI parameters (#3173)
* feat(ssm): answer AWS's public Amazon Linux AMI parameters

GetParameter, GetParameters and GetParametersByPath resolve the
documented /aws/service/ami-amazon-linux-latest/ names from the EC2
image catalog, the way AWS seeds them in every account. They are
read-only and belong to no account, so DescribeParameters and the
parameter history leave them out.

Ported from the SSM half of lex00/floci#116.

* fix(ssm): reject reserved parameter names and list public ones under ancestors

PutParameter refuses names prefixed with aws or ssm, with or without a
leading slash and in any case, with the ValidationException AWS
returns. That closes the gap where a stored value could shadow a
public AMI parameter. GetParametersByPath applies the same path and
Recursive rules to public names as to stored ones, so a recursive
query on /aws or /aws/service lists them.

* fix(ssm): reserve only the aws and ssm path segments

The reserved-name check keyed on a bare prefix, which also refused the
names CloudFormation generates for an AWS::SSM::Parameter in a stack
whose name starts with aws or ssm. It now rejects a name whose first
path segment is aws or ssm, with or without a leading slash and in any
case, and accepts names such as ssm-auto-stack-Param-ABC.
2026-09-07 17:05:19 -04:00
Hector Ventura be9e61d788 feat(ssm): add DescribePatchBaselines and GetDefaultPatchBaseline (#1404)
Return AWS-owned predefined patch baselines (one default per operating system) so Terraform's aws_ssm_patch_baseline data source resolves. Supports DescribePatchBaselines filters OWNER/OPERATING_SYSTEM/NAME_PREFIX and GetDefaultPatchBaseline. Read-only reference data; no customer-owned baselines.

Refs #956
2026-06-17 00:41:24 -05:00
Jason van Zyl 660a8bceb3 feat(ssm): execute run commands in EC2 containers (#1387) 2026-06-16 22:51:21 -05:00
Hector Ventura 9e35046647 Docs/enviroment instead yml (#764)
* docs: moving all config to env instead of yml
* docs: sync with main and new features
* docs: reverting docker-compose.yml
2026-05-10 11:53:31 -05:00
TiM a32b7f1f3b docs: comprehensive audit sweep + CHANGELOG backfill (1.1.0-1.5.2) (#326)
CHANGELOG.md was empty for the 1.1.0-1.5.2 release cycle and service docs
had drifted from code behaviour. This sweep reconciles docs against the
current codebase on upstream/main.

- Backfill CHANGELOG.md for 1.1.0 through 1.5.2 from git history
- Correct exact operation counts in docs/services/index.md: S3 (~30 -> 58),
  Lambda (~25 -> 30), API Gateway v1 (~24 -> 62). Counts now come from the
  actual dispatch handlers rather than @Path annotation counts.
- Rewrite README "Supported Services" table to drop per-service op counts
  (they drift too fast); point readers at docs/services/index.md
- Update 24 service docs for accuracy, add "Not Implemented" sections
  where relevant (s3.md, lambda.md, api-gateway.md)
- Refresh configuration and getting-started docs
- Add EventBridge Scheduler and AppConfig to mkdocs nav
- Add AppConfig / AppConfigData rows to README and services index
  following the 1.5.2 upstream release
2026-04-10 10:52:34 -05:00
Hector Ventura 61433f59ab firt commit 2026-03-15 17:43:56 -05:00