Skip to content
This repository has been archived by the owner on Oct 22, 2022. It is now read-only.

Effective function configurations dump #86 #87

Merged
merged 2 commits into from
Jun 4, 2017
Merged

Effective function configurations dump #86 #87

merged 2 commits into from
Jun 4, 2017

Conversation

zrzka
Copy link
Contributor

@zrzka zrzka commented May 31, 2017

As discussed in #86, this PR adds support for dump-config task. This task prints JSON with effective function configurations. You can pass specific functions or none to print configurations for all of them. You can also pass :pretty to make the output human readable.

Sample command:

lein with-profile production cljs-lambda dump-config ErebosUserDetail :pretty

Sample output:

{
  "functions" : [ {
    "role" : "arn:aws:iam::REMOVED:role/Erebos-IAM-REMOVED:role-LambdaExecRole-REMOVED:role",
    "aws-profile" : "pf-prod",
    "create" : true,
    "name" : "ErebosUserDetail",
    "env" : {
      "PFLY_EREBOS_FUNCTION_TABLE" : "TODO",
      "PFLY_SLACK_CHANNEL" : "#general"
    },
    "runtime" : "nodejs4.3",
    "memory-size" : 256,
    "invoke" : "erebos.user.detail/handler",
    "timeout" : 60,
    "handler" : "index.erebos_user_detail_SLASH_handler"
  } ]
}

@moea
Copy link
Member

moea commented Jun 1, 2017

Thanks! Only small adjustment I would suggest is moving the utility function out of aws.clj and combining it with its caller, as it's not really doing anything AWS-specific.

@zrzka
Copy link
Contributor Author

zrzka commented Jun 1, 2017

Done.

@moea moea merged commit e60d44b into nervous-systems:master Jun 4, 2017
@moea
Copy link
Member

moea commented Jun 4, 2017

Will release a snapshot in the week.

@moea
Copy link
Member

moea commented Jun 7, 2017

@zrzka 0.6.7-SNAPSHOT

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants