Skip to content

[Refactor] project add credentials payment does not match Connector regex #2533

Open

Description

@nborges-aws

project add credentials payment generates a credential name containing underscores, which the PaymentConnector ARN regex forbids, so a credential-backed payment connector can never deploy.

Activity

  1. dfernaro commented on Oct 6, 2026

    @dfernaro

    main (0.31.1) has a variant of this. add payment-connector builds the credential name as <manager>-<connector>-<suffix>, and connector names may contain underscores, so --name my_cdp produces the credential PayMgr-my_cdp-cdp. agentcore validate accepts it, and CreatePaymentCredentialProvider allows underscores in the name, but PaymentCredentialProviderConfiguration.credentialProviderArn only allows [a-zA-Z0-9-.]+ after paymentcredentialprovider/, so the connector can't reference it. Once you settle on the approach for refactor, I can port the same fix to main if that's useful.

  2. musatoktas commented on Oct 14, 2026

    @musatoktas

    @dfernaro you mentioned moving the fix to main once the approach for the refactor branch is settled. I can send a PR for the main variant (replace underscores with hyphens when add payment-connector builds the credential name, so --name my_cdp gives PayMgr-my-cdp-cdp) if you are not already on it. Are you working on it, or should I take it?

  3. dfernaro commented on Oct 14, 2026

    @dfernaro

    @musatoktas since I offered earlier, I went ahead and opened #2594 for the main variant. It replaces underscores with hyphens when add payment-connector builds the credential name, which keeps the .env.local variable names unchanged, and agentcore validate now flags existing underscored credential names with the name to rename them to.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions