{"_id":"@austin-garrard/backstage-plugin-backend","_rev":"1-e1553263bc819cc2d836cb301c7ace66","name":"@austin-garrard/backstage-plugin-backend","dist-tags":{"canary":"0.0.1-alpha.22","latest":"0.0.1"},"versions":{"0.0.1":{"name":"@austin-garrard/backstage-plugin-backend","version":"0.0.1","main":"src/index.ts","types":"src/index.ts","license":"Apache-2.0","repository":{"type":"git","url":"git+https://github.com/cloud-carbon-footprint/ccf-backstage-plugin.git","directory":"plugins/backend"},"publishConfig":{"access":"public","main":"dist/index.cjs.js","types":"dist/index.d.ts"},"backstage":{"role":"backend-plugin"},"scripts":{"start":"backstage-cli backend:dev","build":"backstage-cli backend:build","lint":"backstage-cli lint","test":"backstage-cli test","prepack":"backstage-cli prepack","postpack":"backstage-cli postpack","clean":"backstage-cli clean"},"dependencies":{"@backstage/backend-common":"^0.13.1","@cloud-carbon-footprint/api":"^1.4.1","@cloud-carbon-footprint/common":"^1.5.1","@types/express":"*","express":"^4.17.1","express-promise-router":"^4.1.0","node-fetch":"^2.6.7","winston":"^3.2.1","yn":"^4.0.0"},"devDependencies":{"@types/supertest":"^2.0.8","msw":"^0.35.0","supertest":"^4.0.2"},"configSchema":"config.d.ts","gitHead":"27fce934e67e582a61c13332908750375a3e02d5","description":"Welcome to the cloud-carbon-footprint-backend backend plugin!","bugs":{"url":"https://github.com/cloud-carbon-footprint/ccf-backstage-plugin/issues"},"homepage":"https://github.com/cloud-carbon-footprint/ccf-backstage-plugin#readme","_id":"@austin-garrard/backstage-plugin-backend@0.0.1","_nodeVersion":"16.14.0","_npmVersion":"lerna/4.0.0/node@v16.14.0+x64 (darwin)","dist":{"integrity":"sha512-+mBGx4djjcYAIzEXKxxEXJHpp6HXcyv+Q/q939C0kL95HIqmZ+QThIQE001OAlJ3NYV71qgLMmYE0GWQH5vYvg==","shasum":"ec4c4aca18dda046cf541f594cb7dbb51db46db2","tarball":"https://registry.npmjs.org/@austin-garrard/backstage-plugin-backend/-/backstage-plugin-backend-0.0.1.tgz","fileCount":7,"unpackedSize":49881,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCsH/Nc5tN72WFHvpMnDcidmivJuWjSiGL3BdU6rvqjiAIgcIJ5N8CcnRaOGODECuXgEk6T8H1yyvlb7lvX57s5kpE="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiXFDeACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrI6Q/8DygBJyQ6G4+I62rrw1mFH2z1KvutJuVMKm1BRVU8zy7BClsy\r\n3K34jPNcY6WUNxqx/PFM26P8aYoN1keUp0OPipfyKf88ZLQo4odj7Lp+sWhy\r\nW/q2D9gcPQRXaLdkL1ofkBelqU/xd/U52Wn1rud+qGGkBrJDJn/4B5pMDPDH\r\n3rl1kAom7IetcPkiwBf4JNvo/NZnZGbruWduTdnIj1+GnMZ8O0+eRx1jD9tv\r\ns8JjgDIj8fr/L/qpFWetXGIFaBV1+gUHL5u9yHprkmwekQfAc72ODJbqR+eI\r\n04GtPFCWA4tGn/+n9WVq2evrZFhZdlHHENi316oW2vi4bmC58oFLyOtqhkFp\r\naGgvPYpc3jWhXBOefxyhDO4HsDnsDiqC9/YUSafLrt1Yo94s9ZD2vTImUzGK\r\nRZMRfyrY6M3ByH0+QDFNDM8BxTxuQD6f/fslDKlqKXDUXbRXmX2y8lZyr9qm\r\n52CPs3Ct9t4OL+1HRdRByt4TaAZo1hhDdqvrPRUwtnykLypQGSKupR+OlUI7\r\nMLriP08Fkzc/L+FdySnz5BCz/I1q+/1i8pT/7p9+kZO4hbKCb5TRDLRKJ6L8\r\n8IbIFLYKF6R2ptrWViEMdteveAnv8gfcoeuqPh3toMVfcHcwg6OhntQa+5Hd\r\nGt0yjXk39t/OuCGh2fJprROAQwhRLPibBtk=\r\n=xQ7e\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"austin-garrard","email":"austin.w.garrard@gmail.com"},"directories":{},"maintainers":[{"name":"austin-garrard","email":"austin.w.garrard@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/backstage-plugin-backend_0.0.1_1650217181977_0.45279655433330634"},"_hasShrinkwrap":false},"0.0.1-alpha.22":{"name":"@austin-garrard/backstage-plugin-backend","version":"0.0.1-alpha.22","main":"src/index.ts","types":"src/index.ts","license":"Apache-2.0","repository":{"type":"git","url":"git+https://github.com/cloud-carbon-footprint/ccf-backstage-plugin.git","directory":"plugins/backend"},"publishConfig":{"access":"public","main":"dist/index.cjs.js","types":"dist/index.d.ts"},"backstage":{"role":"backend-plugin"},"scripts":{"start":"backstage-cli backend:dev","build":"backstage-cli backend:build","lint":"backstage-cli lint","test":"backstage-cli test","prepack":"backstage-cli prepack","postpack":"backstage-cli postpack","clean":"backstage-cli clean"},"dependencies":{"@backstage/backend-common":"^0.13.1","@backstage/config":"^1.0.0","@cloud-carbon-footprint/api":"^1.4.1","@cloud-carbon-footprint/common":"^1.5.1","@types/express":"*","express":"^4.17.1","express-promise-router":"^4.1.0","node-fetch":"^2.6.7","winston":"^3.2.1","yn":"^4.0.0"},"devDependencies":{"@types/supertest":"^2.0.8","msw":"^0.35.0","supertest":"^4.0.2"},"configSchema":"config.d.ts","gitHead":"02433cf5082627b2926a00ef9c77c533792f8b76","readme":"# cloud-carbon-footprint-backend\n\n## Configuration\n\nCCF requires separate configuration for each cloud provider. It also requires specific permissions and billing exports to be configured.\n\nThe [CCF docs](https://www.cloudcarbonfootprint.org/docs/introduction) are the source of truth for CCF configuration. This readme aims to guide users how to inject relevant configuration into Backstage using its [static configuration mechanism](https://backstage.io/docs/conf/).\n\nTo see data, set follow the setup for one or more of the cloud providers.\n\n### GCP\n\nFollow the first three steps given [here](https://www.cloudcarbonfootprint.org/docs/gcp).\n\nThen, put relevant values into the Backstage config (see the schema in `./config.d.ts`). They will be injected into to CCF config.\n\nHere is an example of the recommended billing-based approach with GCP:\n\n```yaml\n# app-config.local.yaml\ncloudCarbonFootprint:\n  gcp:\n    useBillingData: true\n    billingProjectId: my-project\n    billingProjectName: My Project\n    bigQueryTable: billing_export_dataset.gcp_billing_export_v1_01B22A_05AA4C_87BDAC\n```\n\n### AWS\n\nFollow the first four steps given [here](https://www.cloudcarbonfootprint.org/docs/aws/)\n\nThen, put relevant values into the Backstage config (see the schema in `./config.d.ts`). They will be injected into to CCF config.\n\nHere is an example of the recommended billing-based approach with AWS:\n\n```yaml\n# app-config.local.yaml\ncloudCarbonFootprint:\n  aws:\n    useBillingData: true\n    athenaDbName: athena-db\n    athenaDbTable: billing export table\n    athenaRegion: us-east-1\n    athenaQueryResultLocation: s3://bucket\n    billingAccountId: cool-account\n    billingAccountName: Cool account, low emissions\n```\n\n### Azure\n\nFollow the first three steps given [here](https://www.cloudcarbonfootprint.org/docs/azure/)\n\nThen, put relevant values into the Backstage config (see the schema in `./config.d.ts`). They will be injected into to CCF config.\n\nHere is an example of the recommended billing-based approach with Azure:\n\n```yaml\n# app-config.local.yaml\ncloudCarbonFootprint:\n  azure:\n    useBillingData: true,\n    clientId: client id,\n    clientSecret: shhh,\n    tenantId: tenant id,\n```\n","readmeFilename":"README.md","description":"## Configuration","bugs":{"url":"https://github.com/cloud-carbon-footprint/ccf-backstage-plugin/issues"},"homepage":"https://github.com/cloud-carbon-footprint/ccf-backstage-plugin#readme","_id":"@austin-garrard/backstage-plugin-backend@0.0.1-alpha.22","_nodeVersion":"16.14.0","_npmVersion":"lerna/4.0.0/node@v16.14.0+x64 (darwin)","dist":{"integrity":"sha512-ZlfL6UPXuSpX23vrVaHMTqBLbFd8O3oLTBDLkkVMA0OJ+U/i8xrIbzzyr/Kpva0UVrNyxhr7lRT/yhED0KqNMg==","shasum":"5bad2571ce8fb5a529544e9fde25ad6da06f5f7d","tarball":"https://registry.npmjs.org/@austin-garrard/backstage-plugin-backend/-/backstage-plugin-backend-0.0.1-alpha.22.tgz","fileCount":7,"unpackedSize":48336,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAUT4OIBlTOV0F+uiIaBUcANcmDHSvaRTAw9tbgIW/d1AiBuNHWZxmA5pWesbWbZbji0sNTfVqKg+kXwie/zpDmMjQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiXidoACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpfPQ/+JAF4gz0RiLJg1L9aZ7IFfMwwBoXL4+pCyEPJGfxG7LZqse2s\r\nlxrXxMAXpthcvbyhhkMQVQUSg+TTlFUMlJ5WDEnF4KXEzXhBPZluTOCbODrG\r\n3Kqsh2zL9pcr1HHLPVzjGqHtqYPYJF3R8kw+AwjzrYNxh/ZmuQOrsOvzPVur\r\nv5rxR6SbQZpTfx9cjDMmVyWA4br8Ubr7f5HiHNrCSePcjFk1rvbJRz+tgRhk\r\nxc0SqBzA8JEzjfV0WB/T5jSzeHR+Sn9CtRo6za1d9sIEDU/sXT8g+O8gMwIL\r\nYMdJqArtNZKGp6Hz4ycpUadSohigJwcNkUnn74OODFSAjLSJ+WMDDEwkJtzw\r\nJuRuXxg0x0XP8jMf9gO1UB6E33j91ivMftK3RDQyHZvpyzVPWmypXy76t66n\r\nW5lmhGu9Q5AUwL619ZcyEt3FtdSPTp1+vhNfHtJVUxYSKB8F/eWtnpdtkyUb\r\ndv3Iwtqn/tOvRgLDYux+Y40Db1ucfDNgJdbGf7y8+jGsbevIrbX7TuTp2B8I\r\nTiwx+A+XrTdOZdDJX5yTikXcTKWGyoDLc9PxX6sYAzY+MI8fQSW9KLl5eggb\r\nYTHVIbR3EY4GiZgEWyv0emyDQ7BXEoFjjwz3eqUV8VAlp/3bhhbkj5OhzFyt\r\nFfPsRLmB7M5XqL6JrLUwsvY2r9z0IXaG/4g=\r\n=DSeF\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"austin-garrard","email":"austin.w.garrard@gmail.com"},"directories":{},"maintainers":[{"name":"austin-garrard","email":"austin.w.garrard@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/backstage-plugin-backend_0.0.1-alpha.22_1650337640414_0.04633422263661102"},"_hasShrinkwrap":false}},"time":{"created":"2022-04-17T17:39:41.909Z","0.0.1":"2022-04-17T17:39:42.140Z","modified":"2022-04-19T03:07:20.682Z","0.0.1-alpha.22":"2022-04-19T03:07:20.582Z"},"maintainers":[{"name":"austin-garrard","email":"austin.w.garrard@gmail.com"}],"description":"Welcome to the cloud-carbon-footprint-backend backend plugin!","homepage":"https://github.com/cloud-carbon-footprint/ccf-backstage-plugin#readme","repository":{"type":"git","url":"git+https://github.com/cloud-carbon-footprint/ccf-backstage-plugin.git","directory":"plugins/backend"},"bugs":{"url":"https://github.com/cloud-carbon-footprint/ccf-backstage-plugin/issues"},"license":"Apache-2.0","readme":"","readmeFilename":""}