settings.yaml. You can declare each AWS profile that you want to configure:
settings.yaml
default profile.
For each AWS profile, run ns oidc-token --inspect --audience '<configured-audience>' in the
Niteshift terminal tab with that profile’s audience (for example, sts.amazonaws.com). This
shows the exact iss, aud, and environment-specific sub without printing the token.
In each role’s AWS account, configure an OIDC identity provider using the inspected iss and
register the inspected aud as an allowed audience. Each role’s trust policy should require
both the exact inspected aud and sub, as shown in the example below. Trusting only the shared
issuer and audience does not restrict access to your Niteshift environment.
Use this trust policy, replacing
<role-account-id> with the role’s AWS account ID and <inspected-aud> and <inspected-sub>
with the exact inspected values. The sub has the form org:<org_id>:environment:<environment_id>;
copy the entire inspected value without wildcards.