Connecting AWS with Bitbucke

Hi Team, I want to connect AWS with Bitbucket (without using access key and secret key)
is there any option like with IAM role to connect with bitbucket ?

I haven’t deployed this myself but had it saved.
Similar to how GitLab and GitHub can use a OIDC IDP and role pair, it looks like you can do the same with BitBucket:

For a starting point I have cloudformation that deploys roles and OIDC IDPs for both you can find here:

You really should only have to change the Trust Condition and Principal and the thumbprint and be off to the races