@backstage/plugin-catalog-backend-module-aws 0.0.0-nightly-20220219022334
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +40 -0
- package/README.md +10 -0
- package/config.d.ts +36 -0
- package/dist/index.cjs.js +120 -0
- package/dist/index.cjs.js.map +1 -0
- package/dist/index.d.ts +30 -0
- package/package.json +55 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# @backstage/plugin-catalog-backend-module-aws
|
|
2
|
+
|
|
3
|
+
## 0.0.0-nightly-20220219022334
|
|
4
|
+
### Minor Changes
|
|
5
|
+
|
|
6
|
+
- 25e97e7242: Added this new catalog module, initially containing only the
|
|
7
|
+
`AwsOrganizationCloudAccountProcessor`.
|
|
8
|
+
|
|
9
|
+
Note that this was moved over from the catalog backend itself, and therefore is
|
|
10
|
+
no longer part of its builtin set of processors. If you were using this
|
|
11
|
+
processor, through making use of the location type `aws-cloud-accounts` and/or
|
|
12
|
+
using the configuration key `catalog.processors.awsOrganization`, you will from
|
|
13
|
+
now on have to add the processor manually to your catalog.
|
|
14
|
+
|
|
15
|
+
First, add the `@backstage/plugin-catalog-backend-module-aws` dependency to your
|
|
16
|
+
`packages/backend` package.
|
|
17
|
+
|
|
18
|
+
Then, in `packages/backend/src/plugins/catalog.ts`:
|
|
19
|
+
|
|
20
|
+
```diff
|
|
21
|
+
+import { AwsOrganizationCloudAccountProcessor } from '@backstage/plugin-catalog-backend-module-aws';
|
|
22
|
+
|
|
23
|
+
export default async function createPlugin(
|
|
24
|
+
env: PluginEnvironment,
|
|
25
|
+
): Promise<Router> {
|
|
26
|
+
const builder = await CatalogBuilder.create(env);
|
|
27
|
+
+ builder.addProcessor(
|
|
28
|
+
+ AwsOrganizationCloudAccountProcessor.fromConfig(
|
|
29
|
+
+ env.config,
|
|
30
|
+
+ { logger: env.logger }
|
|
31
|
+
+ )
|
|
32
|
+
+ );
|
|
33
|
+
// ...
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### Patch Changes
|
|
37
|
+
|
|
38
|
+
- Updated dependencies
|
|
39
|
+
- @backstage/plugin-catalog-backend@0.0.0-nightly-20220219022334
|
|
40
|
+
- @backstage/catalog-model@0.0.0-nightly-20220219022334
|
package/README.md
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# Catalog Backend Module for LDAP
|
|
2
|
+
|
|
3
|
+
This is an extension module to the plugin-catalog-backend plugin, providing an
|
|
4
|
+
`AwsOrganizationCloudAccountProcessor` that can be used to ingest cloud accounts
|
|
5
|
+
as `Resource` kind entities.
|
|
6
|
+
|
|
7
|
+
## Getting started
|
|
8
|
+
|
|
9
|
+
See [Backstage documentation](https://backstage.io/docs/integrations/ldap/org) for details on how to install
|
|
10
|
+
and configure the plugin.
|
package/config.d.ts
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2020 The Backstage Authors
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
export interface Config {
|
|
18
|
+
catalog?: {
|
|
19
|
+
/**
|
|
20
|
+
* List of processor-specific options and attributes
|
|
21
|
+
*/
|
|
22
|
+
processors?: {
|
|
23
|
+
/**
|
|
24
|
+
* AwsOrganizationCloudAccountProcessor configuration
|
|
25
|
+
*/
|
|
26
|
+
awsOrganization?: {
|
|
27
|
+
provider: {
|
|
28
|
+
/**
|
|
29
|
+
* The role to be assumed by this processor
|
|
30
|
+
*/
|
|
31
|
+
roleArn?: string;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var pluginCatalogBackend = require('@backstage/plugin-catalog-backend');
|
|
6
|
+
var AWS = require('aws-sdk');
|
|
7
|
+
|
|
8
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
9
|
+
|
|
10
|
+
var AWS__default = /*#__PURE__*/_interopDefaultLegacy(AWS);
|
|
11
|
+
|
|
12
|
+
function readAwsOrganizationConfig(config) {
|
|
13
|
+
const providerConfig = config.getOptionalConfig("provider");
|
|
14
|
+
const roleArn = providerConfig == null ? void 0 : providerConfig.getOptionalString("roleArn");
|
|
15
|
+
return {
|
|
16
|
+
roleArn
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
const AWS_ORGANIZATION_REGION = "us-east-1";
|
|
21
|
+
const LOCATION_TYPE = "aws-cloud-accounts";
|
|
22
|
+
const ACCOUNTID_ANNOTATION = "amazonaws.com/account-id";
|
|
23
|
+
const ARN_ANNOTATION = "amazonaws.com/arn";
|
|
24
|
+
const ORGANIZATION_ANNOTATION = "amazonaws.com/organization-id";
|
|
25
|
+
class AwsOrganizationCloudAccountProcessor {
|
|
26
|
+
static fromConfig(config, options) {
|
|
27
|
+
const c = config.getOptionalConfig("catalog.processors.awsOrganization");
|
|
28
|
+
return new AwsOrganizationCloudAccountProcessor({
|
|
29
|
+
...options,
|
|
30
|
+
provider: c ? readAwsOrganizationConfig(c) : {}
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
static buildCredentials(config) {
|
|
34
|
+
const roleArn = config.roleArn;
|
|
35
|
+
if (!roleArn) {
|
|
36
|
+
return void 0;
|
|
37
|
+
}
|
|
38
|
+
return new AWS__default["default"].ChainableTemporaryCredentials({
|
|
39
|
+
params: {
|
|
40
|
+
RoleSessionName: "backstage-aws-organization-processor",
|
|
41
|
+
RoleArn: roleArn
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
constructor(options) {
|
|
46
|
+
this.provider = options.provider;
|
|
47
|
+
const credentials = AwsOrganizationCloudAccountProcessor.buildCredentials(this.provider);
|
|
48
|
+
this.organizations = new AWS__default["default"].Organizations({
|
|
49
|
+
credentials,
|
|
50
|
+
region: AWS_ORGANIZATION_REGION
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
getProcessorName() {
|
|
54
|
+
return "AwsOrganizationCloudAccountProcessor";
|
|
55
|
+
}
|
|
56
|
+
async readLocation(location, _optional, emit) {
|
|
57
|
+
if (location.type !== LOCATION_TYPE) {
|
|
58
|
+
return false;
|
|
59
|
+
}
|
|
60
|
+
(await this.getAwsAccounts()).map((account) => this.mapAccountToComponent(account)).filter((entity) => {
|
|
61
|
+
if (location.target !== "") {
|
|
62
|
+
if (entity.metadata.annotations) {
|
|
63
|
+
return entity.metadata.annotations[ORGANIZATION_ANNOTATION] === location.target;
|
|
64
|
+
}
|
|
65
|
+
return false;
|
|
66
|
+
}
|
|
67
|
+
return true;
|
|
68
|
+
}).forEach((entity) => {
|
|
69
|
+
emit(pluginCatalogBackend.results.entity(location, entity));
|
|
70
|
+
});
|
|
71
|
+
return true;
|
|
72
|
+
}
|
|
73
|
+
normalizeName(name) {
|
|
74
|
+
return name.trim().toLocaleLowerCase("en-US").replace(/[^a-zA-Z0-9\-]/g, "-");
|
|
75
|
+
}
|
|
76
|
+
extractInformationFromArn(arn) {
|
|
77
|
+
const parts = arn.split("/");
|
|
78
|
+
return {
|
|
79
|
+
accountId: parts[parts.length - 1],
|
|
80
|
+
organizationId: parts[parts.length - 2]
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
async getAwsAccounts() {
|
|
84
|
+
let awsAccounts = [];
|
|
85
|
+
let isInitialAttempt = true;
|
|
86
|
+
let nextToken = void 0;
|
|
87
|
+
while (isInitialAttempt || nextToken) {
|
|
88
|
+
isInitialAttempt = false;
|
|
89
|
+
const orgAccounts = await this.organizations.listAccounts({ NextToken: nextToken }).promise();
|
|
90
|
+
if (orgAccounts.Accounts) {
|
|
91
|
+
awsAccounts = awsAccounts.concat(orgAccounts.Accounts);
|
|
92
|
+
}
|
|
93
|
+
nextToken = orgAccounts.NextToken;
|
|
94
|
+
}
|
|
95
|
+
return awsAccounts;
|
|
96
|
+
}
|
|
97
|
+
mapAccountToComponent(account) {
|
|
98
|
+
const { accountId, organizationId } = this.extractInformationFromArn(account.Arn);
|
|
99
|
+
return {
|
|
100
|
+
apiVersion: "backstage.io/v1alpha1",
|
|
101
|
+
kind: "Resource",
|
|
102
|
+
metadata: {
|
|
103
|
+
annotations: {
|
|
104
|
+
[ACCOUNTID_ANNOTATION]: accountId,
|
|
105
|
+
[ARN_ANNOTATION]: account.Arn || "",
|
|
106
|
+
[ORGANIZATION_ANNOTATION]: organizationId
|
|
107
|
+
},
|
|
108
|
+
name: this.normalizeName(account.Name || ""),
|
|
109
|
+
namespace: "default"
|
|
110
|
+
},
|
|
111
|
+
spec: {
|
|
112
|
+
type: "cloud-account",
|
|
113
|
+
owner: "unknown"
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
exports.AwsOrganizationCloudAccountProcessor = AwsOrganizationCloudAccountProcessor;
|
|
120
|
+
//# sourceMappingURL=index.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":["../src/awsOrganization/config.ts","../src/processors/AwsOrganizationCloudAccountProcessor.ts"],"sourcesContent":["/*\n * Copyright 2020 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Config } from '@backstage/config';\n\n/**\n * The configuration parameters for a single AWS Organization Processor\n */\nexport type AwsOrganizationProviderConfig = {\n /**\n * The role to assume for the processor.\n */\n roleArn?: string;\n};\n\nexport function readAwsOrganizationConfig(\n config: Config,\n): AwsOrganizationProviderConfig {\n const providerConfig = config.getOptionalConfig('provider');\n\n const roleArn = providerConfig?.getOptionalString('roleArn');\n return {\n roleArn,\n };\n}\n","/*\n * Copyright 2020 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { LocationSpec, ResourceEntityV1alpha1 } from '@backstage/catalog-model';\nimport { Config } from '@backstage/config';\nimport {\n CatalogProcessor,\n CatalogProcessorEmit,\n results,\n} from '@backstage/plugin-catalog-backend';\nimport AWS, { Credentials, Organizations } from 'aws-sdk';\nimport { Account, ListAccountsResponse } from 'aws-sdk/clients/organizations';\nimport { Logger } from 'winston';\nimport {\n AwsOrganizationProviderConfig,\n readAwsOrganizationConfig,\n} from '../awsOrganization/config';\n\nconst AWS_ORGANIZATION_REGION = 'us-east-1';\nconst LOCATION_TYPE = 'aws-cloud-accounts';\n\nconst ACCOUNTID_ANNOTATION = 'amazonaws.com/account-id';\nconst ARN_ANNOTATION = 'amazonaws.com/arn';\nconst ORGANIZATION_ANNOTATION = 'amazonaws.com/organization-id';\n\n/**\n * A processor for ingesting AWS Accounts from AWS Organizations.\n *\n * If custom authentication is needed, it can be achieved by configuring the\n * global AWS.credentials object.\n *\n * @public\n */\nexport class AwsOrganizationCloudAccountProcessor implements CatalogProcessor {\n private readonly organizations: Organizations;\n private readonly provider: AwsOrganizationProviderConfig;\n\n static fromConfig(config: Config, options: { logger: Logger }) {\n const c = config.getOptionalConfig('catalog.processors.awsOrganization');\n return new AwsOrganizationCloudAccountProcessor({\n ...options,\n provider: c ? readAwsOrganizationConfig(c) : {},\n });\n }\n\n private static buildCredentials(\n config: AwsOrganizationProviderConfig,\n ): Credentials | undefined {\n const roleArn = config.roleArn;\n if (!roleArn) {\n return undefined;\n }\n\n return new AWS.ChainableTemporaryCredentials({\n params: {\n RoleSessionName: 'backstage-aws-organization-processor',\n RoleArn: roleArn,\n },\n });\n }\n\n private constructor(options: { provider: AwsOrganizationProviderConfig }) {\n this.provider = options.provider;\n const credentials = AwsOrganizationCloudAccountProcessor.buildCredentials(\n this.provider,\n );\n this.organizations = new AWS.Organizations({\n credentials,\n region: AWS_ORGANIZATION_REGION,\n }); // Only available in us-east-1\n }\n\n getProcessorName(): string {\n return 'AwsOrganizationCloudAccountProcessor';\n }\n\n async readLocation(\n location: LocationSpec,\n _optional: boolean,\n emit: CatalogProcessorEmit,\n ): Promise<boolean> {\n if (location.type !== LOCATION_TYPE) {\n return false;\n }\n\n (await this.getAwsAccounts())\n .map(account => this.mapAccountToComponent(account))\n .filter(entity => {\n if (location.target !== '') {\n if (entity.metadata.annotations) {\n return (\n entity.metadata.annotations[ORGANIZATION_ANNOTATION] ===\n location.target\n );\n }\n return false;\n }\n return true;\n })\n .forEach(entity => {\n emit(results.entity(location, entity));\n });\n\n return true;\n }\n\n private normalizeName(name: string): string {\n return name\n .trim()\n .toLocaleLowerCase('en-US')\n .replace(/[^a-zA-Z0-9\\-]/g, '-');\n }\n\n private extractInformationFromArn(arn: string): {\n accountId: string;\n organizationId: string;\n } {\n const parts = arn.split('/');\n\n return {\n accountId: parts[parts.length - 1],\n organizationId: parts[parts.length - 2],\n };\n }\n\n private async getAwsAccounts(): Promise<Account[]> {\n let awsAccounts: Account[] = [];\n let isInitialAttempt = true;\n let nextToken = undefined;\n while (isInitialAttempt || nextToken) {\n isInitialAttempt = false;\n const orgAccounts: ListAccountsResponse = await this.organizations\n .listAccounts({ NextToken: nextToken })\n .promise();\n if (orgAccounts.Accounts) {\n awsAccounts = awsAccounts.concat(orgAccounts.Accounts);\n }\n nextToken = orgAccounts.NextToken;\n }\n\n return awsAccounts;\n }\n\n private mapAccountToComponent(account: Account): ResourceEntityV1alpha1 {\n const { accountId, organizationId } = this.extractInformationFromArn(\n account.Arn as string,\n );\n return {\n apiVersion: 'backstage.io/v1alpha1',\n kind: 'Resource',\n metadata: {\n annotations: {\n [ACCOUNTID_ANNOTATION]: accountId,\n [ARN_ANNOTATION]: account.Arn || '',\n [ORGANIZATION_ANNOTATION]: organizationId,\n },\n name: this.normalizeName(account.Name || ''),\n namespace: 'default',\n },\n spec: {\n type: 'cloud-account',\n owner: 'unknown',\n },\n };\n }\n}\n"],"names":["AWS","results"],"mappings":";;;;;;;;;;;mCA6BE,QAC+B;AAC/B,QAAM,iBAAiB,OAAO,kBAAkB;AAEhD,QAAM,UAAU,iDAAgB,kBAAkB;AAClD,SAAO;AAAA,IACL;AAAA;AAAA;;ACJJ,MAAM,0BAA0B;AAChC,MAAM,gBAAgB;AAEtB,MAAM,uBAAuB;AAC7B,MAAM,iBAAiB;AACvB,MAAM,0BAA0B;2CAU8C;AAAA,SAIrE,WAAW,QAAgB,SAA6B;AAC7D,UAAM,IAAI,OAAO,kBAAkB;AACnC,WAAO,IAAI,qCAAqC;AAAA,SAC3C;AAAA,MACH,UAAU,IAAI,0BAA0B,KAAK;AAAA;AAAA;AAAA,SAIlC,iBACb,QACyB;AACzB,UAAM,UAAU,OAAO;AACvB,QAAI,CAAC,SAAS;AACZ,aAAO;AAAA;AAGT,WAAO,IAAIA,wBAAI,8BAA8B;AAAA,MAC3C,QAAQ;AAAA,QACN,iBAAiB;AAAA,QACjB,SAAS;AAAA;AAAA;AAAA;AAAA,EAKP,YAAY,SAAsD;AACxE,SAAK,WAAW,QAAQ;AACxB,UAAM,cAAc,qCAAqC,iBACvD,KAAK;AAEP,SAAK,gBAAgB,IAAIA,wBAAI,cAAc;AAAA,MACzC;AAAA,MACA,QAAQ;AAAA;AAAA;AAAA,EAIZ,mBAA2B;AACzB,WAAO;AAAA;AAAA,QAGH,aACJ,UACA,WACA,MACkB;AAClB,QAAI,SAAS,SAAS,eAAe;AACnC,aAAO;AAAA;AAGT,IAAC,OAAM,KAAK,kBACT,IAAI,aAAW,KAAK,sBAAsB,UAC1C,OAAO,YAAU;AAChB,UAAI,SAAS,WAAW,IAAI;AAC1B,YAAI,OAAO,SAAS,aAAa;AAC/B,iBACE,OAAO,SAAS,YAAY,6BAC5B,SAAS;AAAA;AAGb,eAAO;AAAA;AAET,aAAO;AAAA,OAER,QAAQ,YAAU;AACjB,WAAKC,6BAAQ,OAAO,UAAU;AAAA;AAGlC,WAAO;AAAA;AAAA,EAGD,cAAc,MAAsB;AAC1C,WAAO,KACJ,OACA,kBAAkB,SAClB,QAAQ,mBAAmB;AAAA;AAAA,EAGxB,0BAA0B,KAGhC;AACA,UAAM,QAAQ,IAAI,MAAM;AAExB,WAAO;AAAA,MACL,WAAW,MAAM,MAAM,SAAS;AAAA,MAChC,gBAAgB,MAAM,MAAM,SAAS;AAAA;AAAA;AAAA,QAI3B,iBAAqC;AACjD,QAAI,cAAyB;AAC7B,QAAI,mBAAmB;AACvB,QAAI,YAAY;AAChB,WAAO,oBAAoB,WAAW;AACpC,yBAAmB;AACnB,YAAM,cAAoC,MAAM,KAAK,cAClD,aAAa,EAAE,WAAW,aAC1B;AACH,UAAI,YAAY,UAAU;AACxB,sBAAc,YAAY,OAAO,YAAY;AAAA;AAE/C,kBAAY,YAAY;AAAA;AAG1B,WAAO;AAAA;AAAA,EAGD,sBAAsB,SAA0C;AACtE,UAAM,EAAE,WAAW,mBAAmB,KAAK,0BACzC,QAAQ;AAEV,WAAO;AAAA,MACL,YAAY;AAAA,MACZ,MAAM;AAAA,MACN,UAAU;AAAA,QACR,aAAa;AAAA,WACV,uBAAuB;AAAA,WACvB,iBAAiB,QAAQ,OAAO;AAAA,WAChC,0BAA0B;AAAA;AAAA,QAE7B,MAAM,KAAK,cAAc,QAAQ,QAAQ;AAAA,QACzC,WAAW;AAAA;AAAA,MAEb,MAAM;AAAA,QACJ,MAAM;AAAA,QACN,OAAO;AAAA;AAAA;AAAA;AAAA;;;;"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { LocationSpec } from '@backstage/catalog-model';
|
|
2
|
+
import { Config } from '@backstage/config';
|
|
3
|
+
import { CatalogProcessor, CatalogProcessorEmit } from '@backstage/plugin-catalog-backend';
|
|
4
|
+
import { Logger } from 'winston';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* A processor for ingesting AWS Accounts from AWS Organizations.
|
|
8
|
+
*
|
|
9
|
+
* If custom authentication is needed, it can be achieved by configuring the
|
|
10
|
+
* global AWS.credentials object.
|
|
11
|
+
*
|
|
12
|
+
* @public
|
|
13
|
+
*/
|
|
14
|
+
declare class AwsOrganizationCloudAccountProcessor implements CatalogProcessor {
|
|
15
|
+
private readonly organizations;
|
|
16
|
+
private readonly provider;
|
|
17
|
+
static fromConfig(config: Config, options: {
|
|
18
|
+
logger: Logger;
|
|
19
|
+
}): AwsOrganizationCloudAccountProcessor;
|
|
20
|
+
private static buildCredentials;
|
|
21
|
+
private constructor();
|
|
22
|
+
getProcessorName(): string;
|
|
23
|
+
readLocation(location: LocationSpec, _optional: boolean, emit: CatalogProcessorEmit): Promise<boolean>;
|
|
24
|
+
private normalizeName;
|
|
25
|
+
private extractInformationFromArn;
|
|
26
|
+
private getAwsAccounts;
|
|
27
|
+
private mapAccountToComponent;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export { AwsOrganizationCloudAccountProcessor };
|
package/package.json
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@backstage/plugin-catalog-backend-module-aws",
|
|
3
|
+
"description": "A Backstage catalog backend module that helps integrate towards AWS",
|
|
4
|
+
"version": "0.0.0-nightly-20220219022334",
|
|
5
|
+
"main": "dist/index.cjs.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"license": "Apache-2.0",
|
|
8
|
+
"private": false,
|
|
9
|
+
"publishConfig": {
|
|
10
|
+
"access": "public",
|
|
11
|
+
"main": "dist/index.cjs.js",
|
|
12
|
+
"types": "dist/index.d.ts"
|
|
13
|
+
},
|
|
14
|
+
"backstage": {
|
|
15
|
+
"role": "backend-plugin-module"
|
|
16
|
+
},
|
|
17
|
+
"homepage": "https://backstage.io",
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "https://github.com/backstage/backstage",
|
|
21
|
+
"directory": "plugins/catalog-backend-module-aws"
|
|
22
|
+
},
|
|
23
|
+
"keywords": [
|
|
24
|
+
"backstage"
|
|
25
|
+
],
|
|
26
|
+
"scripts": {
|
|
27
|
+
"build": "backstage-cli package build",
|
|
28
|
+
"lint": "backstage-cli package lint",
|
|
29
|
+
"test": "backstage-cli package test",
|
|
30
|
+
"prepack": "backstage-cli package prepack",
|
|
31
|
+
"postpack": "backstage-cli package postpack",
|
|
32
|
+
"clean": "backstage-cli package clean",
|
|
33
|
+
"start": "backstage-cli package start"
|
|
34
|
+
},
|
|
35
|
+
"dependencies": {
|
|
36
|
+
"@backstage/catalog-model": "^0.0.0-nightly-20220219022334",
|
|
37
|
+
"@backstage/config": "^0.1.14",
|
|
38
|
+
"@backstage/errors": "^0.2.1",
|
|
39
|
+
"@backstage/plugin-catalog-backend": "^0.0.0-nightly-20220219022334",
|
|
40
|
+
"@backstage/types": "^0.1.2",
|
|
41
|
+
"aws-sdk": "^2.840.0",
|
|
42
|
+
"lodash": "^4.17.21",
|
|
43
|
+
"winston": "^3.2.1"
|
|
44
|
+
},
|
|
45
|
+
"devDependencies": {
|
|
46
|
+
"@backstage/cli": "^0.0.0-nightly-20220219022334",
|
|
47
|
+
"@types/lodash": "^4.14.151",
|
|
48
|
+
"aws-sdk-mock": "^5.2.1"
|
|
49
|
+
},
|
|
50
|
+
"files": [
|
|
51
|
+
"dist",
|
|
52
|
+
"config.d.ts"
|
|
53
|
+
],
|
|
54
|
+
"configSchema": "config.d.ts"
|
|
55
|
+
}
|