Azure CD Pipeline connectivity with AWS using IAM Role and OIDC is not working

Yadav, Anuj 0 Reputation points
2025-07-01T11:07:27.2066667+00:00

Hi Team,

I am working on a use case where i need to setup the Azure CD pipeline and establish the connectivity while the yaml pipeline will be running ,

i am using service connection to make the connectivity with AWS and the approach i am following is using IAM Role and OIDC , for which i created Identity provider and uses the identity provide while creating IAM Role.

but my CD pipeline is not able to fetch the temporary session token and i noticed that the connection type is AWS and Authentication type is BASIC authentication.

Can you pls tell me how to create service connection with Workload Identity federation like what i can see currently for Azure resource Manager.

User's image

As per my understanding the Authentication Type should be 'Workload Identity federation' instead of Basic authentication..

Error message-
An error occurred (InvalidClientTokenId) when calling the GetCallerIdentity operation: The security token included in the request is invalid.

Azure DevOps
{count} votes

1 answer

Sort by: Most helpful
  1. Yadav, Anuj 0 Reputation points
    2025-07-03T08:34:58.1966667+00:00

    Sent the yaml as well, trust relationship policy which i have setup at aws end


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.