Skip to content

Add configuration options to support PRM APN_ID tagging #10476

Description

@elliotsegler

Describe the feature

This feature adds configuration options to allow users to specify an APN Martketplace Product code, which is included in the user agent string on CLI calls that matches the format required for PRM compliance.

Use Case

As part of the changes for AWS Partners for PRM attribution (See: https://docs.aws.amazon.com/PRM/latest/aws-prm-onboarding-guide/user-agent-string.html) we now need ways to be able to tag resources as well as API calls for certain services.

This is possible with custom clients and with botocore directly, but the CLI uses guards to protect data sent in the user agent string. The PRM instructions in the docs suggests using the existing botocore sdk_ua_app_id option, however the format required is mangled because it contains it's own prefix.

Proposed Solution

This solution adds a global CLI argument --apn-id and matching config option, as well as support for using an environment variable AWS_APN_ID to set a marketplace product code (or revenue attribution id) for use in tagging.

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

CLI version used

2.32.34

Environment details (OS name and version, etc.)

Python/3.13.11 Windows/11 exe/AMD64

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestA feature should be added or improved.needs-triageThis issue or PR still needs to be triaged.

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions