https://slingdata.io logo
were there any recent changes to the way
# sling-help
m
were there any recent changes to the way the command hook runs? I was using the aws cli command to upload some files to s3 using the ec2 instance credentials. This was working fine up until last week but now the sling agent is not able to properly use the instance role. When i run the docker container manually (just running /bin/bash), it is able to do it just fine, its only when the command runs via the agent that it isn't working
f
@mitty i think the
AWS_EC2_METADATA_DISABLED
might be the culprit, another customer was complaining about this cause it was putting out a bunch of warnings, so it was disabled. see https://github.com/slingdata-io/sling-cli/commit/dc6f550dc712b58b8240383648eaac422feebd52 can you set in your env var
AWS_EC2_METADATA_DISABLED=false
and try again?
m
ahh that would do it, trying it now
yup that was the issue, i added that env to the step and it working agin thanks!
2 Views