Skip to content

AWS sign-in

AWS, Amazon Web Services, is where our services run. sfe reads it with sfe aws ...: who we are signed in as, the CloudWatch logs (the log store of AWS), the Lambdas (small functions that run in AWS) and the names of secrets. The deployment commands, sfe deploy and sfe where, also read the build pipeline in AWS.

Video, about one and a half minutes, with narration and captions.

The video shows sfe's own checks for this sign-in, from a real run. The browser part of a sign-in, where we type our password and approve it, is ours alone, so the video describes it and does not record it.

What it is used for in sfe

  • sfe aws whoami says which AWS account and role a profile resolves to.
  • sfe aws ... reads logs, Lambdas and secret names.
  • sfe where <Jira key> and sfe deploy status read how far a service's build got. They use a profile named wgu-shared for the build pipeline. If that profile is not signed in, the message names it.

What must be signed in

What Detail
The tool The AWS command line, aws. sfe doctor tools checks that it is installed
The profiles A profile is a named set of settings in ~/.aws/config. We use wgu-sit, wgu-stage and wgu-prod, which use AWS single sign-on (SSO) through the start page https://wgu.awsapps.com/start, region us-west-2
The command aws sso login --profile wgu-sit (and the same with wgu-stage or wgu-prod). It opens a browser page
What we type Our password and MFA in the browser, or the approval. We type them, never sfe and never an agent
The company web filter Behind Zscaler, the AWS command line needs a certificate bundle, ~/.aws/ca-bundle.pem. sfe uses it automatically when the file exists. We never switch off certificate checking with --no-verify-ssl

If a profile is missing, sfe doctor aws prints add profile wgu-sit to ~/.aws/config with the start page and the role name. sfe setup aws adds the profiles to ~/.aws/config, asking before each step. If the certificate bundle is missing, the doctor prints build the CA bundle from the system Keychain (system roots plus the Zscaler root CA; nothing is disabled).

Environments

sfe name Profile What it is
sit wgu-sit The test lane of our services. This is the default for the dev and qa lanes
stage wgu-stage The stage lane
prod wgu-prod Production. We use it only when the lead has approved it for a named task

The region is us-west-2, Oregon. The AWS console in the browser sometimes opens in Ohio, so we check the region name when we look at something there.

What a successful sign-in looks like

sfe status has an aws row, and its login column says account and the account number:

aws  yes  prod  AWS wgu-prod (lead approval first) [PRODUCTION]  account <number>

sfe doctor aws shows a green tick for each profile, and one for Zscaler CA bundle for AWS tools. sfe aws whoami --env stage prints the account and the role. Both only read.

On a Mac where it is signed in, sfe doctor aws looks like this:

sfe doctor aws: each profile present and signed in, with its account, and the certificate bundle

And aws configure list-profiles, which only reads:

aws configure list-profiles: the profile names on this Mac

Steps

  1. We run sfe doctor aws. It shows what is missing, with a fix: line.
  2. If a profile is missing, we run sfe setup aws and answer its questions.
  3. We run aws sso login --profile wgu-sit. The browser opens. We type our password and approve the MFA ourselves.
  4. We run sfe doctor aws again, and sfe aws whoami.

For wgu-prod, we ask the lead first and say which task it is for.

Troubleshooting

What we see Likely cause What to do
sign in with: aws sso login --profile wgu-sit, or exit code 4 The SSO session is missing or expired Run that command ourselves, and type the password and MFA ourselves
profile missing The profile is not in ~/.aws/config Run sfe setup aws
CERTIFICATE_VERIFY_FAILED, with a hint about the Zscaler CA bundle The company web filter is present and the bundle is missing Run sfe doctor aws and the fix line it prints. We do not use --no-verify-ssl
The console shows nothing for our service The console is in another region Switch the region to Oregon, us-west-2
aws is not signed in for wgu-shared from sfe where The build pipeline profile is not signed in Run aws sso login --profile wgu-shared
A red cross for wgu-sit and a yellow triangle for wgu-stage and wgu-prod sit is required, the other two are optional Sign in to the ones we need

Next


Last reviewed: 2026-12-02