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:
https://support.atlassian.com/bitbucket-cloud/docs/deploy-on-aws-using-bitbucket-pipelines-openid-connect/
For a starting point I have cloudformation that deploys roles and OIDC IDPs for both you can find here:
GH: https://github.com/rwickit/aws-github-cicd
GL: https://gitlab.com/rwickit/automation/aws-gitlab-cicd
You really should only have to change the Trust Condition and Principal
and the thumbprint
and be off to the races