incalculable-plastic-17510
10/24/2023, 10:11 PMpulumi up
and I'm getting the following error. I'll share the yaml in this thread
pulumi:providers:aws default_6_0_2 error: rpc error: code = Unknown desc = 2 errors occurred:
+ pulumi:pulumi:Stack '' created (6s)
pulumi:providers:aws default_6_0_2 **failed** 1 error
Diagnostics:
pulumi:providers:aws (default_6_0_2):
error: rpc error: code = Unknown desc = 2 errors occurred:
* unable to validate AWS credentials.
Details: validating provider credentials: retrieving caller identity from STS: operation error STS: GetCallerIdentity, https response error StatusCode: 0, RequestID: , request send failed, Post "<https://sts.us-west-2.amazonaws.com/>": dial tcp: lookup <http://sts.us-west-2.amazonaws.com|sts.us-west-2.amazonaws.com>: no such host
Make sure you have set your AWS region, e.g. `pulumi config set aws:region us-west-2`.
* unable to validate AWS credentials.
Details: validating provider credentials: retrieving caller identity from STS: operation error STS: GetCallerIdentity, https response error StatusCode: 0, RequestID: , request send failed, Post "<https://sts.us-west-2.amazonaws.com/>": dial tcp: lookup <http://sts.us-west-2.amazonaws.com|sts.us-west-2.amazonaws.com>: i/o timeout
Make sure you have set your AWS region, e.g. `pulumi config set aws:region us-west-2`.
jobs:
dev:
name: Deploy Staging Changes
runs-on: self-hosted
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Volta
run: volta install pnpm
- name: Setup Node
uses: actions/setup-node@v3.5.0
with:
node-version: "20"
cache: "pnpm"
- name: Install dependencies
run: pnpm install
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v2
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ env.AWS_REGION }}
- name: Pulumi Update
uses: pulumi/actions@v3
with:
command: up
stack-name: staging
comment-on-pr: true
work-dir: ${{ env.WORKDIR }}
upsert: true
env:
PULUMI_ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
pulumi config set
for these too to see if it's the env variables that are the problem and no changelittle-cartoon-10569
10/24/2023, 10:52 PMincalculable-plastic-17510
10/24/2023, 10:53 PMlittle-cartoon-10569
10/24/2023, 10:57 PMdial tcp: lookup sts.us-west-2.amazonaws.com: no such hostAny ideas why that might be there? Are you running on a firewalled local runner?
incalculable-plastic-17510
10/24/2023, 11:06 PMlittle-cartoon-10569
10/24/2023, 11:07 PMincalculable-plastic-17510
10/24/2023, 11:49 PMlittle-cartoon-10569
10/25/2023, 12:59 AMdry-keyboard-94795
10/25/2023, 9:18 AMincalculable-plastic-17510
10/25/2023, 5:13 PMlittle-cartoon-10569
10/25/2023, 10:51 PMaws-actions/configure-aws-credentials
is for though. If you're setting the access and secret keys manually, then you don't need that action.incalculable-plastic-17510
10/25/2023, 11:05 PMaws-actions/configure-aws-credentials
I get a Error: No valid credential sources found for AWS Provider.
and without setting the secret manually I get the above error... I'm looking into our AWS IAM config to see if something is stopping it there