Linked Questions

Popular Questions

Why would the code below result in no token in returned credentials? (WIF pool with aws provider exist and service account connected to it)

from google.auth import aws

def lambda_handler(event, context):

    json_config_info = {
      "type": "external_account",
      "audience": "//",
      "subject_token_type": "urn:ietf:params:aws:token-type:aws4_request",
      "service_account_impersonation_url": "[email protected]:generateAccessToken",
      "token_url": "",
      "credential_source": {
        "environment_id": "aws1",
        "region_url": "",
        "url": "",
        "regional_cred_verification_url": "https://sts.{region}"

    credentials = aws.Credentials.from_info(json_config_info)
    print('token: ', credentials.token)
    print('valid: ', credentials.valid)

I'm getting token=None and valid=False while my understanding credentials should have a token and valid=True?

Related Questions