Skip to main content
The database FE uses AwsCloudCredential to configure AWS authentication for storage volumes and other AWS consumers. Storage volumes additionally serialize their credentials to StarOS. Some combinations supported by the FE runtime cannot yet be preserved in a storage volume.

Support matrix

Do not configure a storage volume with a combination marked Not supported. Although FE can construct the credential provider, the complete configuration is not retained when the storage volume is serialized to StarOS.

Credential resolution order

If you configure multiple base authentication methods, FE selects the first matching method in this order:
After selecting the base credential provider, FE performs an STS AssumeRole operation when aws.s3.iam_role_arn is not empty.

Switching authentication methods

ALTER STORAGE VOLUME merges the properties you specify into the storage volume’s existing properties instead of replacing them. Combined with the resolution order above, a statement that sets only the new method’s properties can succeed without changing the credential that the storage volume actually uses. To switch a storage volume from one authentication method to another:
  • Set every use_* property explicitly, with exactly one of them set to true.
  • Clear aws.s3.iam_role_arn and aws.s3.external_id unless the new method must also assume a role. These are not use_* properties, so they survive the merge and are applied to the new method.

Statements that do not switch the method

Each statement below succeeds, but the storage volume keeps its previous credential, and the properties you supplied are not stored.

Statements that switch the method

Switching to a method that outranks the current one also works without disabling the current method, because the new method is matched first. For example, a storage volume that uses Access Key and Secret Key switches to Web Identity when you set only aws.s3.use_web_identity_token_file to true. Setting every use_* property explicitly works in both directions and does not require you to know which method is currently in effect. Caution A Role ARN left over from the previous method is applied to the new method. If a storage volume used Web Identity with a second AssumeRole hop and you switch it to Instance Profile, the leftover aws.s3.iam_role_arn becomes the role that Instance Profile assumes. Clear aws.s3.iam_role_arn and aws.s3.external_id in the same statement to avoid this. For storage-volume configuration examples, see CREATE STORAGE VOLUME.