So I am able to run
export X='{ctx.execution_id}'
, but this fails
export y="{ctx.secrets.get('aws-access-key', 'AWS_ACCESS_KEY_ID')}"
with
[3/3] currentAttempt done. Last Error: SYSTEM::Traceback (most recent call last):
File "/venv/lib/python3.10/site-packages/flytekit/exceptions/scopes.py", line 165, in system_entry_point
return wrapped(*args, **kwargs)
File "/venv/lib/python3.10/site-packages/flytekit/core/base_task.py", line 481, in dispatch_execute
raise e
File "/venv/lib/python3.10/site-packages/flytekit/core/base_task.py", line 478, in dispatch_execute
native_outputs = self.execute(**native_inputs)
File "/venv/lib/python3.10/site-packages/flytekit/extras/tasks/shell.py", line 191, in execute
gen_script = self._interpolizer.interpolate(self._script, inputs=kwargs, outputs=outputs)
File "/venv/lib/python3.10/site-packages/flytekit/extras/tasks/shell.py", line 82, in interpolate
return self._Formatter().format(tmpl, **consolidated_args)
File "/usr/local/lib/python3.10/string.py", line 161, in format
return self.vformat(format_string, args, kwargs)
File "/usr/local/lib/python3.10/string.py", line 165, in vformat
result, _ = self._vformat(format_string, args, kwargs, used_args, 2)
File "/usr/local/lib/python3.10/string.py", line 205, in _vformat
obj, arg_used = self.get_field(field_name, args, kwargs)
File "/usr/local/lib/python3.10/string.py", line 276, in get_field
obj = getattr(obj, i)
Message:
'SecretsManager' object has no attribute 'get('aws-access-key', 'AWS_ACCESS_KEY_ID')'
SYSTEM ERROR! Contact platform administrators.