Robert Wade
10/27/2022, 9:55 PMjamie
10/28/2022, 4:01 PMs3_bucket
in your code snippet, are you also using an s3 resource or IO manager? or are you writing code in your asset that uses the s3_bucket name?
for specifying a non-common value for each asset, you can still provide that as op/asset config
ops:
an_asset:
config:
filename: "a_unique_file_name"
other_asset:
config:
filename: "another_filename"
resources:
<resource config>
within your asset you then access the value like this
@asset(
config_schema={"filename": str}
)
def an_asset(context):
filename = context.op_config["filename"]
note that in the config, the asset config is under the ops
key. this is because assets are built on top of opsRobert Wade
10/28/2022, 4:21 PM