diff --git a/orchestrator/dispatch/bootstrap b/orchestrator/dispatch/bootstrap index 4c8cdda..9414a3b 100644 Binary files a/orchestrator/dispatch/bootstrap and b/orchestrator/dispatch/bootstrap differ diff --git a/orchestrator/dispatch/function.zip b/orchestrator/dispatch/function.zip index 66c9c2e..8b700c6 100644 Binary files a/orchestrator/dispatch/function.zip and b/orchestrator/dispatch/function.zip differ diff --git a/orchestrator/dispatch/main.go b/orchestrator/dispatch/main.go index 6b798fc..b3ea60e 100644 --- a/orchestrator/dispatch/main.go +++ b/orchestrator/dispatch/main.go @@ -158,9 +158,13 @@ cleanup() { trap cleanup EXIT # Source Go/Node paths from AMI -export PATH=$PATH:/usr/local/go/bin +export PATH=$PATH:/usr/local/go/bin:/usr/local/bin export HOME=/root +# Ensure AWS SDK can find instance profile credentials via IMDS +# act_runner may change HOME — force credential chain to use IMDS +export AWS_EC2_METADATA_DISABLED=false + # Create proper working directory for act_runner mkdir -p /opt/runner && cd /opt/runner @@ -178,6 +182,10 @@ log: runner: capacity: 1 timeout: 30m + envs: + HOME: /root + AWS_DEFAULT_REGION: eu-west-1 + PATH: /usr/local/go/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin host: workdir_parent: /opt/runner/work RUNCFG