Hello team, Did anyone has that error before : a...
# python
p
Hello team, Did anyone has that error before : awsiamRole (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
What's the actual error?
p
Previewing update (test-test-lambda-dev): 180@ previewing update.... + pulumipulumiStack Lambda-test-test-lambda-dev create @ previewing update.... awsiamRole lambdaRole error: could not validate provider configuration: 1 error occurred: awsiamRole lambdaRole 1 error + pulumipulumiStack Lambda-test-test-lambda-dev create Diagnostics: awsiamRole (lambdaRole): error: could not validate provider configuration: 1 error occurred: * Invalid or unknown key
I tried with pre build Role Arm too
s
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
Let me try thanks
b
@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
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
can you share your code and stack configuration