Assigning attributes with bash output

Hi

Is there a way to get the output of aws s3 presign into an attribute , if so how to do it
bash 'presign' do
user 'root'
cwd '/tmp'
code <<-EOH
aws s3 presign s3://vvvvvvvvvvveee/deploy/jdk-10.0.2_linux-x64_bin.tar.gz
EOH
end

Got it