Closed tkilias closed 2 years ago
If you want to use the EC2 Instance credentials in UDFs you need to add the following to the UDF
f = open("/tmp/.config", "w")
f.write(
"[default]\\nregion = {region!r}\\nrole_arn = {role!r}\\ncredential_source = Ec2InstanceMetadata")
f.close()
os.environ['AWS_CONFIG_FILE'] = '/tmp/.config'
Overview diagram
Drawio file sagemaker-extension-overview.drawio
Background
Tips
Acceptance Criteria