How to Configure AWS IAM Create-open-id-connect-provider
The aws iam create open id connect provider action sets up trust between AWS and an external login service. You set it up by adding your provider URL, a client ID, and a server thumbprint to IAM. This setup lets external apps and build jobs log in without static keys. Instead, workloads exchange short tokens for temporary AWS roles. Teams remove long-lived secrets from source code and build tools with this setup. How the aws iam create open id connect provider setup works An OpenID Connect p
Your coding agents run with your access.
Claude Code reaches prod with a developer's credentials, and approval prompts get clicked through. hoop.dev checks every query, masks sensitive data, and holds risky changes for a human.
The aws iam create open id connect provider action sets up trust between AWS and an external login service. You set it up by adding your provider URL, a client ID, and a server thumbprint to IAM.
This setup lets external apps and build jobs log in without static keys. Instead, workloads exchange short tokens for temporary AWS roles. Teams remove long-lived secrets from source code and build tools with this setup.
How the aws iam create open id connect provider setup works
An OpenID Connect provider acts as a trusted identity bridge for your cloud account. First, an external app or build runner logs in to its own identity system. That system signs a digital token and sends it back to the app. Next, the app sends this token to the AWS token service. AWS checks the token signature against the provider record you registered in IAM.
You must give three main details when you create this provider resource. First, you supply the exact HTTPS web address of the external identity issuer. Second, you list the audience or client ID values that are allowed to make requests. Third, you add the certificate thumbprint from the root authority of the identity server. This thumbprint stops attackers from spoofing the identity server during the login check.
After you create the provider, you must link it to an IAM role. You do this by writing a role trust policy that names the new provider. Safe setups always add strict match rules inside this role trust policy. You should check the token subject claim to limit which specific code repos can assume the role. If you skip this check, any user on that identity service could assume your role.
Checking and auditing your identity provider setup
Once your provider and role are ready, you must test the login flow. Run a test job from an allowed repo and check that it gets a temporary role. Next, run a test from an unauthorized repo to confirm that AWS blocks the request. You should also review your cloud audit logs to inspect every role assumption event. These logs show the exact principal, the source IP address, and the token claims used.
AWS IAM Policies + K8s Encryption Provider Config: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
Static identity rules only check who a user or workload is at login time. Once AWS grants the temporary role, the session holds full permissions until the token expires. The IAM trust policy cannot see what commands or database queries run inside that session. If a build script has a broad role, it can read or delete whole tables. It can also pull sensitive data like emails, phone numbers, card numbers, or national IDs.
Cloud audit logs record API calls, but they do not capture internal database queries or SSH commands. Teams need extra controls to watch and limit what happens after the login step finishes. Checking commands in real time helps stop bad queries and protects private records during active sessions. Combining strong login trust with command-level checks gives your team much safer cloud operations.
Govern statements and responses across databases and APIs
Good config and scoped roles are needed setup. They do not check single queries in flight or mask sensitive fields in returned rows. Across Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, and internal HTTP endpoints, hoop.dev runs beside each supported service as an open-source proxy, a sidecar for your database or API.
First, hoop.dev guardrails block banned queries before they run. Then hoop.dev data masking rewrites matched sensitive values in responses in memory. The audit trail records every statement and verdict per resource. Furthermore, hoop.dev holds SOC 2 Type II and is open source on GitHub.
Frequently asked questions
Why do I need a certificate thumbprint for my identity provider?
AWS uses the thumbprint to verify the SSL certificate of your external identity server. This check ensures that login tokens come from the real provider and not a fake server.
How do I stop other accounts on a shared build service from using my role?
You must add a condition block to your IAM role trust policy. Set this rule to match the exact subject claim for your specific org, repo, and branch.
What happens when the external provider rotates its root certificate?
Role logins will fail if the new root certificate has a different thumbprint than your stored one. You can store up to five thumbprints on the provider record to handle certificate changes smoothly.
Related guides
In this post