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: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 totrue. - Clear
aws.s3.iam_role_arnandaws.s3.external_idunless the new method must also assume a role. These are notuse_*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
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.