mantil-io / mantil

Build your AWS Lambda-based Go backends quicker than ever
https://www.mantil.com
MIT License
109 stars 3 forks source link

Add `aws list,ls` command #37

Closed patko closed 2 years ago

patko commented 3 years ago

aws list or aws ls displays all Mantil related resources installed on AWS

Possible output:

==> Cloudwatch log groups
/aws/lambda/mantil-authorizer
/aws/lambda/mantil-data
/aws/lambda/mantil-deploy   
/aws/lambda/mantil-destroy
/aws/lambda/mantil-security
/aws/lambda/mantil-setup
/aws/lambda/mantil-sqs-forwarder
/aws/lambda/mantil-ws-handler
==> Lambda functions
mantil-deploy
mantil-destroy  
mantil-setup
mantil-authorizer
mantil-data
mantil-sqs-forwarder
mantil-security
mantil-ws-handler
==> IAM Roles
mantil-authorizer
mantil-cli-user
mantil-lambda
mantil-setup
mantil-ws-handler
mantil-ws-sqs-forwarder
==> API Gateways
mantil-http
mantil-ws
==> SQS Queues
mantil-ws-queue.fifo
==> DynamoDB Tables
mantil-ws-connections
ianic commented 2 years ago

napravili smo nesto po tom pitanju

mantil aws resources
➜ mantil aws resources

Project backend stage production
Resources:
|      NAME      |      TYPE       |                 AWS RESOURCE NAME                 |                     CLOUDWATCH LOG GROUP                     |
|----------------|-----------------|---------------------------------------------------|--------------------------------------------------------------|
| report         | Lambda Function | backend-production-report-cc01e99f                | /aws/lambda/backend-production-report-cc01e99f               |
| signup         | Lambda Function | backend-production-signup-cc01e99f                | /aws/lambda/backend-production-signup-cc01e99f               |
| ws-forwarder   | Lambda Function | mantil-backend-production-ws-forwarder-cc01e99f   | /aws/lambda/mantil-backend-production-ws-forwarder-cc01e99f  |
| ws-handler     | Lambda Function | mantil-backend-production-ws-handler-cc01e99f     | /aws/lambda/mantil-backend-production-ws-handler-cc01e99f    |
| ws-connections | DynamoDB Table  | mantil-backend-production-ws-connections-cc01e99f |                                                              |
| kv             | DynamoDB Table  | mantil-backend-production-kv-cc01e99f             |                                                              |
| http           | API Gateway     | backend-production-http-cc01e99f                  | /aws/vendedlogs/backend-production-http-access-logs-cc01e99f |
| ws             | API Gateway     | backend-production-ws-cc01e99f                    | /aws/vendedlogs/backend-production-ws-access-logs-cc01e99f   |
Tags:
|       KEY        |   VALUE    |
|------------------|------------|
| MANTIL_KEY       | cc01e99f   |
| MANTIL_PROJECT   | backend    |
| MANTIL_STAGE     | production |
| MANTIL_WORKSPACE | mantil     |

Node production
Resources:
|    NAME    |         TYPE         |     AWS RESOURCE NAME      |               CLOUDWATCH LOG GROUP               |
|------------|----------------------|----------------------------|--------------------------------------------------|
| setup      | Lambda Function      | mantil-setup-cc01e99f      | /aws/lambda/mantil-setup-cc01e99f                |
| authorizer | Lambda Function      | mantil-authorizer-cc01e99f | /aws/lambda/mantil-authorizer-cc01e99f           |
| deploy     | Lambda Function      | mantil-deploy-cc01e99f     | /aws/lambda/mantil-deploy-cc01e99f               |
| destroy    | Lambda Function      | mantil-destroy-cc01e99f    | /aws/lambda/mantil-destroy-cc01e99f              |
| security   | Lambda Function      | mantil-security-cc01e99f   | /aws/lambda/mantil-security-cc01e99f             |
| setup      | CloudFormation Stack | mantil-setup-cc01e99f      |                                                  |
| http       | API Gateway          | mantil-http-cc01e99f       | /aws/vendedlogs/mantil-http-access-logs-cc01e99f |
|            | S3 Bucket            | mantil-cc01e99f            |                                                  |
Tags:
|       KEY        |  VALUE   |
|------------------|----------|
| MANTIL_KEY       | cc01e99f |
| MANTIL_WORKSPACE | mantil   |