https://pulumi.com logo
Title
p

plain-train-21612

04/20/2023, 7:39 PM
Hello team, Did anyone has that error before : aws:iam:Role (lambdaRole): error: could not validate provider configuration: 1 error occurred: there is no problem in local but in gitlab pipeline it has that error
s

stocky-restaurant-98004

04/20/2023, 7:40 PM
What's the actual error?
p

plain-train-21612

04/20/2023, 7:41 PM
Previewing update (test-test-lambda-dev): 180@ previewing update.... + pulumiđŸ˜›ulumi:Stack Lambda-test-test-lambda-dev create @ previewing update.... aws:iam:Role lambdaRole error: could not validate provider configuration: 1 error occurred: aws:iam:Role lambdaRole 1 error + pulumiđŸ˜›ulumi:Stack Lambda-test-test-lambda-dev create Diagnostics: aws:iam:Role (lambdaRole): error: could not validate provider configuration: 1 error occurred: * Invalid or unknown key
I tried with pre build Role Arm too
s

stocky-restaurant-98004

04/20/2023, 7:42 PM
I'm just guessing, but check to make sure that the version of the AWS CLI is the same in both environments.
Specifically, the major version, v1 vs v2. Then check AWS_* environment variables to make sure they are what you expect.
And also
aws sts get-caller-identity
.
p

plain-train-21612

04/20/2023, 7:44 PM
Let me try thanks
b

billowy-army-68599

04/20/2023, 8:35 PM
@plain-train-21612 this is caused by adding a value to your stack config with the prefix
aws:
- what does your stack config look like?
p

plain-train-21612

04/20/2023, 8:42 PM
actually I have no any aws prefix that is stagran because I test it local and in the container all env same It works but When I run it gitlab pipeline It does not work
b

billowy-army-68599

04/20/2023, 8:49 PM
can you share your code and stack configuration