Skip to content

organizations: every SDK call answers "service not emulated" — the X-Amz-Target prefix has no alias #610

Closed

Description

@scttfrdmn

What happens

Every AWS Organizations call from any SDK or the CLI is refused:

$ aws organizations list-roots
An error occurred (ServiceNotAvailable) when calling the ListRoots operation:
service not emulated: awsorganizationsv20161128

OrganizationsPlugin is registered (emulator/plugins.go:491) and covered by
unit tests, but nothing that speaks the wire protocol can reach it.

Why

extractServiceFromTarget (emulator/parser.go) reduces an X-Amz-Target
namespace by stripping a leading Amazon, then stripping a version suffix
after an underscore, then lowercasing. The Organizations model's
targetPrefix is AWSOrganizationsV20161128 — the version rides inside the
prefix with no underscore, so neither strip fires and the name reduces to
awsorganizationsv20161128, which is in no plugin's registry and matches no
entry in targetServiceAliases.

This is the same class of defect as #561, where SSOPlugin was registered,
tested in-process, and unreachable because the mapped prefix matched no real
client. The in-process tests pass either way, because they construct an
AWSRequest with Service already set rather than going through the parser.

Fix

One alias entry, "awsorganizationsv20161128": "organizations", plus a parser
test asserting three real target values resolve — mirroring the #561 regression
test so the next reader sees why the generic strip does not cover this shape.

Provenance

Observed against substrate server --address :4678 with AWS_MAX_ATTEMPTS=1 and
the AWS CLI. The targetPrefix is from the botocore Organizations model
(organizations/2016-11-28/service-2.json, metadata.targetPrefix).

Activity

  1. added this to the v0.97.0 milestone on Aug 9, 2026
  2. added
    type: bug
    area: server
    priority: high
    on Aug 9, 2026
  3. added 5 commits that reference this issue on Aug 9, 2026
    0f32be9
    2a8e2da
    e17be85
    2663652
    e478ee5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: organizationsarea: serverpriority: hightype: bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions