I am not sure if slack or github issues is better ...
# general
e
I am not sure if slack or github issues is better but I have been dealing with issue for several days now, trying everything I can find in github issues, stack overflow and my own debugging in an attempt to find a solution but I am stuck I have an issue with
pulumi up
not being able to find the AWS credentials
Error: invocation of awsec2/getVpcgetVpc returned an error: unable to validate AWS AccessKeyID and/or SecretAccessKey - see https://pulumi.io/install/aws.html for details on configuration
I have a profile setup in my aws credentials file and I can view the config when using the CLI but cannot get it to work with the pulumi. I had it working before but for some reason it has stopped working and I cannot find any changes that would have caused it, at least through git. FYI, I am using a monorepo for all my services and using symlinks to pull in the
package.json
and
node_modules
(though even removing that has not helped). My
Pulumi.stack.yaml
in each service directory has the
aws:profile
and
aws:region
set
b
can you run
pulumi about
?
e
Copy code
CLI          
Version      3.34.1
Go Version   go1.18.3
Go Compiler  gc

Plugins
NAME    VERSION
nodejs  unknown

Host     
OS       darwin
Version  12.4
Arch     x86_64

This project is written in nodejs: executable='/usr/local/bin/node' version='v16.14.0'

Backend        
Name           <http://pulumi.com|pulumi.com>
URL            <https://app.pulumi.com/rfab>
User           rfab
Organizations  rfab, rivet

Pulumi locates its logs in /var/folders/gt/8l3t_j7n1bg4wx8d_rfyg6v00000gn/T/ by default
warning: Failed to get information about the Pulumi program's plugins: Could not find either /Users/ryanfabela/development/work/dpb/main/infrastructure/yarn.lock or /Users/ryanfabela/development/work/dpb/main/infrastructure/package-lock.json
warning: Failed to get information about the current stack: No current stack
I added the symlink for the yarn.lock file:
Copy code
CLI
Version      3.34.1
Go Version   go1.18.3
Go Compiler  gc

Plugins
NAME    VERSION
aws     5.7.2
docker  3.2.0
nodejs  unknown

Host
OS       darwin
Version  12.4
Arch     x86_64

This project is written in nodejs: executable='/usr/local/bin/node' version='v16.14.0'

Backend
Name           <http://pulumi.com|pulumi.com>
URL            <https://app.pulumi.com/rfab>
User           rfab
Organizations  rfab, rivet

Dependencies:
NAME            VERSION
@pulumi/pulumi  3.34.0
@pulumi/aws     5.7.2
@pulumi/awsx    0.40.0
@types/node     14.18.21

Pulumi locates its logs in /var/folders/gt/8l3t_j7n1bg4wx8d_rfyg6v00000gn/T/ by default
warning: Failed to get information about the current stack: No current stack
This happens even when I have removed the symlinks and installed everything directly in the services directory
b
@eager-lawyer-9843 can you update pulumi-aws to
5.8.0
b
Hi @eager-lawyer-9843 - so you can do 1 of 2 things here: 1. Upgrade to 5.8.0 where we removed all credentials validation as it was before 2. set
aws:skipCredentialsValidation true
and it should work for you
e
you are a gentleman and a scholar. Thank you. That fixed it
b
Sorry about the issue @eager-lawyer-9843 - I have a PR WIP to fix these up atm https://github.com/pulumi/pulumi-aws/pull/2004
e
no problem, I appreciate the quick response. Thank you for the link
b
Let us know if any other issues!
🙌 1