Interface: S3AwsCredentialsOptions
How the S3 publisher obtains AWS credentials. Only the sources named here are consulted.
Properties
configFile?
readonlyoptionalconfigFile?:string|null
The shared config file for source: "profile" or source: "sso-role-chain". AWS_CONFIG_FILE is not consulted.
Default
~/.aws/config
credentialsFile?
readonlyoptionalcredentialsFile?:string|null
The shared credentials file for source: "profile" or source: "sso-role-chain". AWS_SHARED_CREDENTIALS_FILE is not consulted.
Default
~/.aws/credentials
env?
readonlyoptionalenv?:S3AwsCredentialsEnvNames|null
Custom environment variable names for source: "env", e.g. to keep publish-only keys separate from ambient AWS_* variables.
profile?
readonlyoptionalprofile?:string|null
The profile name for source: "profile" or source: "sso-role-chain" (required for those sources; AWS_PROFILE is not used as a fallback).
Use default to select the [default] profile.
source
readonlysource:"env"|"profile"|"sso-role-chain"
The credential source (required, no default):
env: read onlyAWS_ACCESS_KEY_ID,AWS_SECRET_ACCESS_KEYandAWS_SESSION_TOKEN(or the variable names given inenv).profile: read the namedprofilefrom the shared config/credentials files. Static keys, IAM Identity Center (SSO),credential_processand assume-role profiles are supported. An assume-role profile whosesource_profilechain starts at an SSO profile is rejected; usesso-role-chainfor it.credential_source, web identity (web_identity_token_file) andaws loginsessions (login_session) anywhere in the chain are rejected: they read ambient credentials or settings.sso-role-chain:profilenames an assume-role profile (role_arn+source_profile). Itssource_profilechain (up to 5 assume-role hops, no cycles) must end at an IAM Identity Center (SSO) profile. electron-builder resolves that SSO profile from the configured files, then calls STS AssumeRole for each hop with the previous hop's credentials.role_session_name,external_idandduration_secondsare honoured per hop; STS uses the named profile'sregion(elseus-east-1) andsts_regional_endpoints.AWS_REGIONand otherAWS_*variables are not read.credential_source,mfa_serial,web_identity_token_fileandcredential_processare rejected in the chain.