https://pulumi.com logo
#general
Title
# general
b

breezy-kangaroo-6997

10/23/2023, 10:52 AM
Copy code
error: rpc error: code = Unknown desc = unable to validate AWS credentials.
    Details: no valid credential sources for Pulumi AWS Classic found.
AWS Error: failed to refresh cached credentials, no EC2 IMDS role found, operation error ec2imds: GetMetadata, expect HTTP transport, got <nil>
After i add this
aws:skipMetadataApiCheck: "false"
still the same error
Copy code
error: rpc error: code = Unknown desc = unable to validate AWS credentials.
    Details: no valid credential sources for Pulumi AWS Classic found.
    AWS Error: failed to refresh cached credentials, no EC2 IMDS role found, operation error ec2imds: GetMetadata, expect HTTP transport, got <nil>
I try this
aws:skipCredentialsValidation: "true" aws:skipMetadataApiCheck: "false"
but i get this error
Copy code
aws:iam:Role (AWSLambdaExecutionRole):
    error: 1 error occurred:
    	* configuring Terraform AWS Provider: no valid credential sources for Terraform AWS Provider found.
    
    Please see <https://registry.terraform.io/providers/hashicorp/aws>
    for more information about providing credentials.
    
    AWS Error: failed to refresh cached credentials, no EC2 IMDS role found, operation error ec2imds: GetMetadata, expect HTTP transport, got <nil>
3 Views