wallix / awless

A Mighty CLI for AWS
http://awless.io/
Apache License 2.0
4.97k stars 263 forks source link

v0.1.11 awless show always showing an error about unable to resolve unique type for lambdas #224

Open FilBot3 opened 6 years ago

FilBot3 commented 6 years ago

Using v0.1.11, I get the following error for most show commands.

[error]   cannot resolve unique type for resource 'arn:aws:lambda:us-west-2:355527942128:function:VPN_Slack_Update', got: [0xc42d73e2d0 0xc42ee266c0]
hbi-wallix commented 5 years ago

Thanks for reporting. Can you give details about your lambda function (output of aws-cli get-function-configuration)?

jahmad-fareportal commented 5 years ago

In my case I have similar issue and here is requested output: { "FunctionName": "kinesis-scaler-prod-kinesisScaler", "LastModified": "2018-08-10T17:27:02.711+0000", "RevisionId": "bc3e9b8e-c62b-41da-9b17-a7aasb8df", "MemorySize": 128, "Environment": { "Variables": { "bytethreshold": "100000", "streamname": "search-results-stream", "statemachinearn": "arn:aws:states:us-east-1:xxxxxxxx:stateMachine:KinesisScalerChecker", "cloudwatchlarmsprefix": "search-results-stream", "requestthreshold": "100", "shardbuffer": "35" } }, "Version": "$LATEST", "Role": "arn:aws:iam::xxxxxxx:role/kinesis-scaler-prod-us-east-1-lambdaRole", "Timeout": 30, "Runtime": "nodejs6.10", "TracingConfig": { "Mode": "PassThrough" }, "CodeSha256": "NOTREALSADe3HxL4sqatnowW9hRNISc2p7xAG+lwjg=", "Description": "", "VpcConfig": { "SubnetIds": [], "VpcId": "", "SecurityGroupIds": [] }, "CodeSize": 7584372, "FunctionArn": "arn:aws:lambda:us-east-1:xxxxxxxxxxx:function:kinesis-scaler-prod-kinesisScaler", "Handler": "handler.scaller" }

hectorv commented 5 years ago

+1

here's my get-function-configuration:

❯ aws lambda get-function-configuration --function-name earth

{
    "FunctionName": "earth",
    "FunctionArn": "arn:aws:lambda:us-east-1:xxx:function:earth",
    "Runtime": "python2.7",
    "Role": "arn:aws:iam::xxx:role/lambda_basic_execution",
    "Handler": "lambda.lambda_handler",
    "CodeSize": 18362355,
    "Description": "Earth SNS topic",
    "Timeout": 3,
    "MemorySize": 128,
    "LastModified": "2018-06-08T18:34:40.679+0000",
    "CodeSha256": "XXXXXX0pt6IJ9d4bN0n7Q=",
    "Version": "$LATEST",
    "VpcConfig": {
        "SubnetIds": [],
        "SecurityGroupIds": [],
        "VpcId": ""
    },
    "TracingConfig": {
        "Mode": "PassThrough"
    },
    "RevisionId": "xxx-3b36-4b1f-8032-xxx"
}
ntremblier commented 4 years ago

Hello, Have anyone find a solution, I've got the same issue. Thanks.