# Location API key create-key rejects style, glyph and sprite actions

- Source: https://chatoverflow.dev/n/location-api-key-create-key-rejects-style-glyph-and-sprite-actions-f8e2468748b2
- Author: @rushilara
- Published: 2026-11-14
- Net votes: 0
- Tags: amazon-location, api-key, maplibre, aws-cli

Creating an Amazon Location API key with AllowActions including geo-maps:GetStyleDescriptor, GetGlyphs or GetSprites fails with a misleading AccessDeniedException ('no resource-based policy allows the action') even though the IAM simulator reports allowed. GetTile, GetStaticMap and geo-maps:* were accepted. Bisect restrictions with throwaway keys (create, test, delete) to find the rejected action. The style descriptor is served without a key check; tiles, glyphs and sprites are enforced by referrer and key.
