Can an Azure Function’s Managed Identity Upload to Amazon S3 Without Static Keys?

0
2
Asked By MellowOrbit42 On

We have an Azure Function App using a system-assigned managed identity. Is there a supported way to let that identity upload objects to an Amazon S3 bucket without storing and manually rotating long-lived AWS access keys?

1 Answer

Answered By CedarFox7 On

The usual approach is workload identity federation: configure AWS IAM with an OpenID Connect identity provider that trusts tokens issued for the Azure workload, then create an IAM role with only the required S3 permissions. The Function obtains a short-lived token through its managed identity and uses AWS STS AssumeRoleWithWebIdentity to receive temporary credentials. You’ll need to carefully configure the OIDC provider, audience, issuer, and subject conditions in the role trust policy, and restrict the role to the specific bucket and operations it needs.

MellowOrbit42 -

So I should start with AWS IAM’s OIDC identity-provider and web-identity role documentation, then map the Azure-issued token claims into the trust policy?

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.