access_key_id
and a secret_access_key
which is usually stored in your ~/.aws/credentials
file.AWS_ACCESS_KEY_ID
and AWS_SECRET_ACCESS_KEY
as well as an optional AWS_SESSION_TOKEN
. If you don't specify a schema at the point of registration, ZenML will set the schema as ArbitrarySecretSchema
, a kind of default schema where things that aren't attached to a grouping can be stored.@
syntax to indicate to ZenML that the value needs to be read from a file:StepContext
. This allows you to use your secrets for querying APIs from within your step without hard-coding your access keys. Don't forget to make the appropriate decision regarding caching as it will be disabled by default when the StepContext
is passed into the step.local_secrets_manager
will not work in combination with a remote orchestrator like kubeflow pipelines
.zenml.secret.BaseSecretSchema
class. For example, the following is the builtin schema defined for the MySQL Metadata Store secrets:--schema
argument must be passed to the zenml secret register
command:aws
secret referenced above, you would get the value for the aws_secret_access_key
key with the following code (within a step):aws
secret referenced above, you would get the value for the aws_secret_access_key
key with the following code (within a step):aws
secret referenced above, you would get the value for the aws_secret_access_key
key with the following code (within a step):