fromhera.workflowsimport(AzureArtifact,Container,Workflow,modelsasm,)withWorkflow(generate_name="output-artifact-s3-",entrypoint="hello-world-to-file")asw:Container(name="hello-world-to-file",image="busybox",command=["sh","-c"],args=["echo hello world | tee /tmp/hello_world.txt"],outputs=[AzureArtifact(name="message",path="/tmp",endpoint="https://myazurestorageaccountname.blob.core.windows.net",container="my-container",blob="path/in/container/hello_world.txt.tgz",account_key_secret=m.SecretKeySelector(name="my-azure-credentials",key="accountKey"),)],)
apiVersion:argoproj.io/v1alpha1kind:Workflowmetadata:generateName:output-artifact-s3-spec:entrypoint:hello-world-to-filetemplates:-name:hello-world-to-filecontainer:image:busyboxargs:-echo hello world | tee /tmp/hello_world.txtcommand:-sh--coutputs:artifacts:-name:messagepath:/tmpazure:blob:path/in/container/hello_world.txt.tgzcontainer:my-containerendpoint:https://myazurestorageaccountname.blob.core.windows.netaccountKeySecret:name:my-azure-credentialskey:accountKey