Skip to content

Getting CredentialsError: Missing credentials in config #1

@sarvesh-ranjan

Description

@sarvesh-ranjan

When I try to do make deploy I get following error.
Error Code:
`=> Reading zip file to memory
=> Reading event source file to memory
=> Uploading zip file to AWS Lambda us-west-2 with parameters:
{ FunctionName: 'notifySparkv2-development',
Code: { ZipFile: <Buffer 50 4b 03 04 14 00 00 00 08 00 bc 74 eb 4a a7 07 34 50 13 01 00 00 94 01 00 00 04 00 1c 00 2e 65 6e 76 55 54 09 00 03 b3 d4 64 59 b3 d4 64 59 75 78 0b ... > },
Handler: 'index.handler',
Role: 'arn:aws:iam::00000000:role/CloudwatchReporting',
Runtime: 'nodejs6.10',
Description: 'Better Cisco Spark notifications for AWS CloudWatch',
MemorySize: '128',
Timeout: '3',
Publish: false,
VpcConfig: { SubnetIds: [], SecurityGroupIds: [] },
Environment: { Variables: {} },
DeadLetterConfig: { TargetArn: '' } }
/Users/saranjan/workspace/zeus/lambda-cloudwatch-spark/node_modules/aws-sdk/lib/request.js:31
throw err;
^

CredentialsError: Missing credentials in config
at SharedIniFileCredentials.refresh (/Users/saranjan/workspace/zeus/lambda-cloudwatch-spark/node_modules/aws-sdk/lib/credentials/shared_ini_file_credentials.js:98:11)
at SharedIniFileCredentials.get (/Users/saranjan/workspace/zeus/lambda-cloudwatch-spark/node_modules/aws-sdk/lib/credentials.js:121:12)
at getAsyncCredentials (/Users/saranjan/workspace/zeus/lambda-cloudwatch-spark/node_modules/aws-sdk/lib/config.js:327:24)
at Config.getCredentials (/Users/saranjan/workspace/zeus/lambda-cloudwatch-spark/node_modules/aws-sdk/lib/config.js:347:9)
at Request.VALIDATE_CREDENTIALS (/Users/saranjan/workspace/zeus/lambda-cloudwatch-spark/node_modules/aws-sdk/lib/event_listeners.js:80:26)
at Request.callListeners (/Users/saranjan/workspace/zeus/lambda-cloudwatch-spark/node_modules/aws-sdk/lib/sequential_executor.js:101:18)
at Request.emit (/Users/saranjan/workspace/zeus/lambda-cloudwatch-spark/node_modules/aws-sdk/lib/sequential_executor.js:77:10)
at Request.emit (/Users/saranjan/workspace/zeus/lambda-cloudwatch-spark/node_modules/aws-sdk/lib/request.js:683:14)
at Request.transition (/Users/saranjan/workspace/zeus/lambda-cloudwatch-spark/node_modules/aws-sdk/lib/request.js:22:10)
at AcceptorStateMachine.runTo (/Users/saranjan/workspace/zeus/lambda-cloudwatch-spark/node_modules/aws-sdk/lib/state_machine.js:14:12)
make: *** [deploy] Error 1
`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions