This message was deleted.
s
This message was deleted.
w
This is the github actions yaml:
Copy code
name: Pulumi
on:
  push:
    branches:
      - master
jobs:
  up:
    name: Update
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
        with:
          fetch-depth: 1
      - uses: <docker://pulumi/actions>
        with:
          args: up --yes
        env:
          AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
          AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
          PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
          PULUMI_CI: up
          PULUMI_ROOT: infra
Run pulumi/actions
fails with the following error:
Copy code
aws:iam:Role frea-api-svc-task  error: error using credentials to get account ID: error calling sts:GetCallerIdentity: RequestError: send request failed
    pulumi:pulumi:Stack frea-api-production
    aws:iam:Role frea-api-svc-task  1 error

Diagnostics:
aws:iam:Role (frea-api-svc-task):
error: error using credentials to get account ID: error calling sts:GetCallerIdentity: RequestError: send request failed
caused by: Post "<https://sts.amazonaws.com/>": net/http: invalid header field value "AWS4-HMAC-SHA256 Credential=\*\*\*\n/[REDACTED BY MARCUS]/us-east-1/sts/aws4_request, SignedHeaders=content-length;content-type;host;x-amz-date, Signature=[REDACTED BY MARCUS]" for key Authorization
I'm pretty basic on AWS, but worth noting is that I'm using eu-west-1 if it matters, and this error lists us-east-1. The Authorization field value is pretty cluttered, so hard for me to know what's valid or not.
I can do Pulumi up from the CLI though, so it seems to be related to the github actions setup.
[end]
s
What happens when you call aws sts get-caller-identity from your own computer and, separately, from within an action
You might find this helpful for running and debugging actions locally too https://github.com/nektos/act
w
Nice! I was thinking about running the Pulumi container locally, but this seems even better.
s
I only just discovered it but it seems like just what I need
w
I was hoping this was a known error. I will try to double check my keys and secrets and then start digging using /act, but I think I might burn a lot of hours on this.
seems like I just got another type of issue using act, so need to find another way. I got some other leads though. Thanks for the tip though!
s
Arrrgh! How annoying. Good luck
I definitely ran that docker image without any problems though
w
We found a workaround in a thread further down.
act worked perfectly!