@itentialopensource/adapter-aws_cloudformation 0.2.9 → 0.3.0
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/AUTH.md +49 -10
- package/BROKER.md +31 -19
- package/CHANGELOG.md +16 -0
- package/PROPERTIES.md +5 -0
- package/README.md +60 -63
- package/SUMMARY.md +1 -1
- package/SYSTEMINFO.md +25 -0
- package/TAB1.md +15 -0
- package/TAB2.md +379 -0
- package/metadata.json +21 -4
- package/package.json +7 -9
- package/propertiesSchema.json +5 -0
- package/refs?service=git-upload-pack +0 -0
- package/report/adapterInfo.json +4 -4
- package/report/updateReport1717535381614.json +120 -0
- package/sampleProperties.json +43 -25
- package/test/integration/adapterTestIntegration.js +1 -0
- package/test/unit/adapterTestUnit.js +3 -5
package/TAB2.md
ADDED
|
@@ -0,0 +1,379 @@
|
|
|
1
|
+
# AWS CloudFormation
|
|
2
|
+
|
|
3
|
+
## Table of Contents
|
|
4
|
+
|
|
5
|
+
- [Specific Adapter Information](#specific-adapter-information)
|
|
6
|
+
- [Authentication](#authentication)
|
|
7
|
+
- [Sample Properties](#sample-properties)
|
|
8
|
+
- [Swagger](#swagger)
|
|
9
|
+
- [Generic Adapter Information](#generic-adapter-information)
|
|
10
|
+
|
|
11
|
+
## Specific Adapter Information
|
|
12
|
+
### Authentication
|
|
13
|
+
|
|
14
|
+
This document will go through the steps for authenticating the AWS CloudFormation adapter with AWS Signature 4 Authentication. Properly configuring the properties for an adapter in IAP is critical for getting the adapter online. You can read more about adapter authentication <a href="https://docs.itential.com/opensource/docs/authentication" target="_blank">HERE</a>.
|
|
15
|
+
|
|
16
|
+
#### AWS Authentication
|
|
17
|
+
The AWS CloudFormation adapter requires AWS Authentication, therefore the `auth_method` should be set to `aws_authentication`. The adapter utilizes AWS signature 4 authentication. There are three mechanisms for doing this.
|
|
18
|
+
|
|
19
|
+
The first way is using a "service" account and its AWS keys to authenticate as that account. In this case, you will get the aws_access_key, aws_secret_key, and aws_session_token from AWS and configure them into the adapter service instance as shown below.
|
|
20
|
+
|
|
21
|
+
The second way is using AWS STS. this still requires a "service" account and its AWS keys to authenticate as that account. In this case, you will get the aws_access_key, aws_secret_key, and aws_session_token from AWS and configure them into the adapter service instance as shown below. In addition, you will provide STS paramaters in the workflow tasks that tell the adapter the role you want used on the particular call.
|
|
22
|
+
|
|
23
|
+
The third authentication method is to use an IAM role. With this method, you do not need any authentication keys as the adapter will utilize an "internal" AWS call to get the things that it needs for authentication. Since the adapter needs to make the call to this "internal" AWS IP address, the IAP server needs to be where it has access to that address or you will not be able to use this method.
|
|
24
|
+
|
|
25
|
+
If you change authentication methods, you should change this section accordingly and merge it back into the adapter repository.
|
|
26
|
+
|
|
27
|
+
#### AWS Signature 4 Service Account Authentication
|
|
28
|
+
The AWS CloudFormation adapter requires AWS Signature 4 Authentication. If you change authentication methods, you should change this section accordingly and merge it back into the adapter repository.
|
|
29
|
+
|
|
30
|
+
STEPS
|
|
31
|
+
1. Ensure you have access to a AWS CloudFormation server and that it is running
|
|
32
|
+
2. Follow the steps in the README.md to import the adapter into IAP if you have not already done so
|
|
33
|
+
3. Use the properties below for the ```properties.authentication``` field
|
|
34
|
+
```json
|
|
35
|
+
"authentication": {
|
|
36
|
+
"auth_method": "aws_authentication",
|
|
37
|
+
"aws_access_key": "aws_access_key",
|
|
38
|
+
"aws_secret_key": "aws_secret_key",
|
|
39
|
+
"aws_session_token": "aws_session_token"
|
|
40
|
+
}
|
|
41
|
+
```
|
|
42
|
+
you can leave all of the other properties in the authentication section, they will not be used for AWS CloudFormation authentication.
|
|
43
|
+
4. Restart the adapter. If your properties were set correctly, the adapter should go online.
|
|
44
|
+
|
|
45
|
+
#### AWS Security Token Service
|
|
46
|
+
The AWS CloudFormation adapter also supports AWS Security Token Service (STS) Authentication. For using this authentication, you need to use the calls in the Adapter that have the STSRole suffix on them and pass the STS information into the method. You will still need to provide the relevant `aws_secret_key` and `aws_access_key` as described above. Below is an example of the data required in the `sts` tasks. The data provided below will enable the adapter to switch to `my_role` in order to make the call to CloudFormation:
|
|
47
|
+
|
|
48
|
+
```json
|
|
49
|
+
{
|
|
50
|
+
"RoleArn": "arn:aws:iam::1234567:role/my_role",
|
|
51
|
+
"RoleSessionName": "mySession"
|
|
52
|
+
}
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
#### AWS IAM Role
|
|
56
|
+
The AWS CloudFormation adapter also supports AWS IAM Role Authentication. For using this authentication, you need to use the calls in the Adapter that have the STSRole suffix on them and provide the role's ARN in the RoleName variable. In addition to passing the IAM Role in the task, it is possible to set an IAM Role in the Service Instance Configuration by using the `aws_iam_role` property in the authentication section and providing the role's ARN.
|
|
57
|
+
|
|
58
|
+
```json
|
|
59
|
+
"authentication": {
|
|
60
|
+
"auth_method": "aws_authentication",
|
|
61
|
+
"aws_iam_role": "role_arn"
|
|
62
|
+
}
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
#### AMAZON STEPS FOR IAM ROLE
|
|
66
|
+
Increase number of hops if running IAP inside of docker on EC2 instance
|
|
67
|
+
```bash
|
|
68
|
+
aws sso login --profile aws-bota-1
|
|
69
|
+
<export aws keys for CLI access>
|
|
70
|
+
|
|
71
|
+
AWS ec2 modify-instance-metadata-options --instance-id i-0e150236026b7c45d --http-put-response-hop-limit 3 --http-endpoint enabled --region us-east-1
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
Create a new role and attach to it policies:
|
|
75
|
+
- go to your EC2 instance, select it
|
|
76
|
+
- Actions->Security->Modify IAM Role
|
|
77
|
+
- Click 'Create New IAM Role'
|
|
78
|
+
- Create a role:
|
|
79
|
+
```text
|
|
80
|
+
Trusted entity type: AWS service
|
|
81
|
+
Use Case: EC2
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
Add desired policies to the role.
|
|
85
|
+
|
|
86
|
+
Save the role
|
|
87
|
+
|
|
88
|
+
Go back to your EC2 instance and Actions->Security->Modify IAM Role, associate newly created role with your EC2 instance
|
|
89
|
+
|
|
90
|
+
#### Troubleshooting
|
|
91
|
+
- Make sure you copied over the correct access key, secret key and session token.
|
|
92
|
+
- Turn on debug level logs for the adapter in IAP Admin Essentials.
|
|
93
|
+
- Turn on auth_logging for the adapter in IAP Admin Essentials (adapter properties).
|
|
94
|
+
- Investigate the logs - in particular:
|
|
95
|
+
- The FULL REQUEST log to make sure the proper headers are being sent with the request.
|
|
96
|
+
- The FULL BODY log to make sure the payload is accurate.
|
|
97
|
+
- The CALL RETURN log to see what the other system is telling us.
|
|
98
|
+
- Credentials should be ** masked ** by the adapter so make sure you verify the username and password - including that there are erroneous spaces at the front or end.
|
|
99
|
+
- Remember when you are done to turn auth_logging off as you do not want to log credentials.
|
|
100
|
+
- For IAM, you can run this on the IAP server to verify you are getting to the "internal" AWS Server
|
|
101
|
+
```bash
|
|
102
|
+
TOKEN=`curl -v -X PUT "http://169.254.169.254/latest/api/token" -H "X-aws-ec2-metadata-token-ttl-seconds: 21600"` && curl -v -H "X-aws-ec2-metadata-token: $TOKEN" -v http://169.254.169.254/latest/meta-data/iam/security-credentials/<rolename>
|
|
103
|
+
```
|
|
104
|
+
### Sample Properties
|
|
105
|
+
|
|
106
|
+
Sample Properties can be used to help you configure the adapter in the Itential Automation Platform. You will need to update connectivity information such as the host, port, protocol and credentials.
|
|
107
|
+
|
|
108
|
+
```json
|
|
109
|
+
"properties": {
|
|
110
|
+
"host": "cloudformation.us-east-1.amazonaws.com",
|
|
111
|
+
"region": "us-east-1",
|
|
112
|
+
"port": 443,
|
|
113
|
+
"base_path": "/",
|
|
114
|
+
"version": "",
|
|
115
|
+
"cache_location": "none",
|
|
116
|
+
"encode_pathvars": true,
|
|
117
|
+
"encode_queryvars": true,
|
|
118
|
+
"save_metric": true,
|
|
119
|
+
"stub": true,
|
|
120
|
+
"protocol": "https",
|
|
121
|
+
"service": "cloudformation",
|
|
122
|
+
"authentication": {
|
|
123
|
+
"auth_method": "aws_authentication",
|
|
124
|
+
"username": "username",
|
|
125
|
+
"password": "password",
|
|
126
|
+
"token": "",
|
|
127
|
+
"token_timeout": 180000,
|
|
128
|
+
"token_cache": "local",
|
|
129
|
+
"invalid_token_error": 401,
|
|
130
|
+
"auth_field": "header.headers.Cookie",
|
|
131
|
+
"auth_field_format": "Token {token}",
|
|
132
|
+
"auth_logging": false,
|
|
133
|
+
"client_id": "",
|
|
134
|
+
"client_secret": "",
|
|
135
|
+
"grant_type": "",
|
|
136
|
+
"sensitive": [],
|
|
137
|
+
"sso": {
|
|
138
|
+
"protocol": "",
|
|
139
|
+
"host": "",
|
|
140
|
+
"port": 0
|
|
141
|
+
},
|
|
142
|
+
"multiStepAuthCalls": [
|
|
143
|
+
{
|
|
144
|
+
"name": "",
|
|
145
|
+
"requestFields": {},
|
|
146
|
+
"responseFields": {},
|
|
147
|
+
"successfullResponseCode": 200
|
|
148
|
+
}
|
|
149
|
+
],
|
|
150
|
+
"aws_access_key": "aws_access_key",
|
|
151
|
+
"aws_secret_key": "aws_secret_key",
|
|
152
|
+
"aws_session_token": "aws_session_token",
|
|
153
|
+
"aws_iam_role": ""
|
|
154
|
+
},
|
|
155
|
+
"healthcheck": {
|
|
156
|
+
"type": "startup",
|
|
157
|
+
"frequency": 60000,
|
|
158
|
+
"query_object": {
|
|
159
|
+
"Action": "ListExports",
|
|
160
|
+
"Version": "2010-05-15"
|
|
161
|
+
},
|
|
162
|
+
"addlHeaders": {}
|
|
163
|
+
},
|
|
164
|
+
"throttle": {
|
|
165
|
+
"throttle_enabled": false,
|
|
166
|
+
"number_pronghorns": 1,
|
|
167
|
+
"sync_async": "sync",
|
|
168
|
+
"max_in_queue": 1000,
|
|
169
|
+
"concurrent_max": 1,
|
|
170
|
+
"expire_timeout": 0,
|
|
171
|
+
"avg_runtime": 200,
|
|
172
|
+
"priorities": [
|
|
173
|
+
{
|
|
174
|
+
"value": 0,
|
|
175
|
+
"percent": 100
|
|
176
|
+
}
|
|
177
|
+
]
|
|
178
|
+
},
|
|
179
|
+
"request": {
|
|
180
|
+
"number_redirects": 0,
|
|
181
|
+
"number_retries": 3,
|
|
182
|
+
"limit_retry_error": 0,
|
|
183
|
+
"failover_codes": [],
|
|
184
|
+
"attempt_timeout": 5000,
|
|
185
|
+
"global_request": {
|
|
186
|
+
"payload": {},
|
|
187
|
+
"uriOptions": {},
|
|
188
|
+
"addlHeaders": {},
|
|
189
|
+
"authData": {}
|
|
190
|
+
},
|
|
191
|
+
"healthcheck_on_timeout": true,
|
|
192
|
+
"return_raw": false,
|
|
193
|
+
"archiving": false,
|
|
194
|
+
"return_request": false
|
|
195
|
+
},
|
|
196
|
+
"proxy": {
|
|
197
|
+
"enabled": false,
|
|
198
|
+
"host": "",
|
|
199
|
+
"port": 1,
|
|
200
|
+
"protocol": "http",
|
|
201
|
+
"username": "",
|
|
202
|
+
"password": ""
|
|
203
|
+
},
|
|
204
|
+
"ssl": {
|
|
205
|
+
"ecdhCurve": "",
|
|
206
|
+
"enabled": false,
|
|
207
|
+
"accept_invalid_cert": true,
|
|
208
|
+
"ca_file": "",
|
|
209
|
+
"key_file": "",
|
|
210
|
+
"cert_file": "",
|
|
211
|
+
"secure_protocol": "",
|
|
212
|
+
"ciphers": ""
|
|
213
|
+
},
|
|
214
|
+
"mongo": {
|
|
215
|
+
"host": "",
|
|
216
|
+
"port": 0,
|
|
217
|
+
"database": "",
|
|
218
|
+
"username": "",
|
|
219
|
+
"password": "",
|
|
220
|
+
"replSet": "",
|
|
221
|
+
"db_ssl": {
|
|
222
|
+
"enabled": false,
|
|
223
|
+
"accept_invalid_cert": false,
|
|
224
|
+
"ca_file": "",
|
|
225
|
+
"key_file": "",
|
|
226
|
+
"cert_file": ""
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
"devicebroker": {
|
|
230
|
+
"enabled": false,
|
|
231
|
+
"getDevice": [
|
|
232
|
+
{
|
|
233
|
+
"path": "/not/mapped",
|
|
234
|
+
"method": "GET",
|
|
235
|
+
"query": {},
|
|
236
|
+
"body": {},
|
|
237
|
+
"headers": {},
|
|
238
|
+
"handleFailure": "ignore",
|
|
239
|
+
"requestFields": {
|
|
240
|
+
"insample": "{port}"
|
|
241
|
+
},
|
|
242
|
+
"responseDatakey": "",
|
|
243
|
+
"responseFields": {
|
|
244
|
+
"name": "{this}{||}{that}",
|
|
245
|
+
"ostype": "{osfield}",
|
|
246
|
+
"ostypePrefix": "meraki-",
|
|
247
|
+
"port": "{port}",
|
|
248
|
+
"ipaddress": "{ip_addr}",
|
|
249
|
+
"serial": "{serial}"
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
],
|
|
253
|
+
"getDevicesFiltered": [
|
|
254
|
+
{
|
|
255
|
+
"path": "/not/mapped",
|
|
256
|
+
"method": "GET",
|
|
257
|
+
"pagination": {
|
|
258
|
+
"offsetVar": "",
|
|
259
|
+
"limitVar": "",
|
|
260
|
+
"incrementBy": "limit",
|
|
261
|
+
"requestLocation": "query"
|
|
262
|
+
},
|
|
263
|
+
"query": {},
|
|
264
|
+
"body": {},
|
|
265
|
+
"headers": {},
|
|
266
|
+
"handleFailure": "ignore",
|
|
267
|
+
"requestFields": {},
|
|
268
|
+
"responseDatakey": "",
|
|
269
|
+
"responseFields": {
|
|
270
|
+
"name": "{this}{||}{that}",
|
|
271
|
+
"ostype": "{osfield}",
|
|
272
|
+
"ostypePrefix": "meraki-",
|
|
273
|
+
"port": "{port}",
|
|
274
|
+
"ipaddress": "{ip_addr}",
|
|
275
|
+
"serial": "{serial}",
|
|
276
|
+
"id": "{myid}"
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
],
|
|
280
|
+
"isAlive": [
|
|
281
|
+
{
|
|
282
|
+
"path": "/not/mapped/{devID}",
|
|
283
|
+
"method": "GET",
|
|
284
|
+
"query": {},
|
|
285
|
+
"body": {},
|
|
286
|
+
"headers": {},
|
|
287
|
+
"handleFailure": "ignore",
|
|
288
|
+
"requestFields": {
|
|
289
|
+
"devID": "{id}"
|
|
290
|
+
},
|
|
291
|
+
"responseDatakey": "",
|
|
292
|
+
"responseFields": {
|
|
293
|
+
"status": "return2xx",
|
|
294
|
+
"statusValue": "AD.200"
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
],
|
|
298
|
+
"getConfig": [
|
|
299
|
+
{
|
|
300
|
+
"path": "/not/mapped/{devID}",
|
|
301
|
+
"method": "GET",
|
|
302
|
+
"query": {},
|
|
303
|
+
"body": {},
|
|
304
|
+
"headers": {},
|
|
305
|
+
"handleFailure": "ignore",
|
|
306
|
+
"requestFields": {
|
|
307
|
+
"devID": "{id}"
|
|
308
|
+
},
|
|
309
|
+
"responseDatakey": "",
|
|
310
|
+
"responseFields": {}
|
|
311
|
+
}
|
|
312
|
+
],
|
|
313
|
+
"getCount": [
|
|
314
|
+
{
|
|
315
|
+
"path": "/not/mapped",
|
|
316
|
+
"method": "GET",
|
|
317
|
+
"query": {},
|
|
318
|
+
"body": {},
|
|
319
|
+
"headers": {},
|
|
320
|
+
"handleFailure": "ignore",
|
|
321
|
+
"requestFields": {},
|
|
322
|
+
"responseDatakey": "",
|
|
323
|
+
"responseFields": {}
|
|
324
|
+
}
|
|
325
|
+
]
|
|
326
|
+
},
|
|
327
|
+
"cache": {
|
|
328
|
+
"enabled": false,
|
|
329
|
+
"entities": [
|
|
330
|
+
{
|
|
331
|
+
"entityType": "device",
|
|
332
|
+
"frequency": 3600,
|
|
333
|
+
"flushOnFail": false,
|
|
334
|
+
"limit": 10000,
|
|
335
|
+
"retryAttempts": 5,
|
|
336
|
+
"sort": true,
|
|
337
|
+
"populate": [
|
|
338
|
+
{
|
|
339
|
+
"path": "/not/mapped",
|
|
340
|
+
"method": "GET",
|
|
341
|
+
"pagination": {
|
|
342
|
+
"offsetVar": "",
|
|
343
|
+
"limitVar": "",
|
|
344
|
+
"incrementBy": "limit",
|
|
345
|
+
"requestLocation": "query"
|
|
346
|
+
},
|
|
347
|
+
"query": {},
|
|
348
|
+
"body": {},
|
|
349
|
+
"headers": {},
|
|
350
|
+
"handleFailure": "ignore",
|
|
351
|
+
"requestFields": {},
|
|
352
|
+
"responseDatakey": "",
|
|
353
|
+
"responseFields": {
|
|
354
|
+
"name": "{this}{||}{that}",
|
|
355
|
+
"ostype": "{osfield}",
|
|
356
|
+
"ostypePrefix": "meraki-",
|
|
357
|
+
"port": "{port}",
|
|
358
|
+
"ipaddress": "{ip_addr}",
|
|
359
|
+
"serial": "{serial}",
|
|
360
|
+
"id": "{myid}"
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
],
|
|
364
|
+
"cachedTasks": [
|
|
365
|
+
{
|
|
366
|
+
"name": "",
|
|
367
|
+
"filterField": "",
|
|
368
|
+
"filterLoc": ""
|
|
369
|
+
}
|
|
370
|
+
]
|
|
371
|
+
}
|
|
372
|
+
]
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
```
|
|
376
|
+
### [Swagger](https://gitlab.com/itentialopensource/adapters/cloud/adapter-aws_cloudformation/-/blob/master/report/adapter-openapi.json)
|
|
377
|
+
|
|
378
|
+
## [Generic Adapter Information](https://gitlab.com/itentialopensource/adapters/cloud/adapter-aws_cloudformation/-/blob/master/README.md)
|
|
379
|
+
|
package/metadata.json
CHANGED
|
@@ -42,20 +42,37 @@
|
|
|
42
42
|
"isDeprecated": false
|
|
43
43
|
},
|
|
44
44
|
"brokerSince": "",
|
|
45
|
+
"authMethods": [
|
|
46
|
+
{
|
|
47
|
+
"type": "AWS Auth",
|
|
48
|
+
"primary": true
|
|
49
|
+
}
|
|
50
|
+
],
|
|
45
51
|
"documentation": {
|
|
46
52
|
"storeLink": "",
|
|
47
53
|
"npmLink": "https://www.npmjs.com/package/@itentialopensource/adapter-aws_cloudformation",
|
|
48
|
-
"repoLink": "https://gitlab.com/itentialopensource/adapters/
|
|
54
|
+
"repoLink": "https://gitlab.com/itentialopensource/adapters/adapter-aws_cloudformation",
|
|
49
55
|
"docLink": "https://docs.itential.com/opensource/docs/amazon-aws-cloud-formation",
|
|
50
56
|
"demoLinks": [],
|
|
51
|
-
"trainingLinks": [
|
|
57
|
+
"trainingLinks": [
|
|
58
|
+
{
|
|
59
|
+
"title": "Itential Academy",
|
|
60
|
+
"link": "https://www.itential.com/itential-academy/"
|
|
61
|
+
}
|
|
62
|
+
],
|
|
52
63
|
"faqLink": "https://docs.itential.com/opensource/docs/troubleshooting-an-adapter",
|
|
53
64
|
"contributeLink": "https://gitlab.com/itentialopensource/adapters/contributing-guide",
|
|
54
65
|
"issueLink": "https://itential.atlassian.net/servicedesk/customer/portals",
|
|
55
66
|
"webLink": "https://www.itential.com/adapters/aws-cloud-formation/",
|
|
56
67
|
"vendorLink": "https://aws.amazon.com/",
|
|
57
|
-
"productLink": "",
|
|
58
|
-
"apiLinks": [
|
|
68
|
+
"productLink": "https://aws.amazon.com/cloudformation/",
|
|
69
|
+
"apiLinks": [
|
|
70
|
+
{
|
|
71
|
+
"title": "AWS CloudFormation API Documentation",
|
|
72
|
+
"link": "https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/Welcome.html",
|
|
73
|
+
"public": true
|
|
74
|
+
}
|
|
75
|
+
]
|
|
59
76
|
},
|
|
60
77
|
"relatedItems": {
|
|
61
78
|
"adapters": [],
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itentialopensource/adapter-aws_cloudformation",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "This adapter integrates with system described as: Aws_cloudformation.",
|
|
5
5
|
"main": "adapter.js",
|
|
6
6
|
"wizardVersion": "2.44.7",
|
|
7
|
-
"engineVersion": "1.67.
|
|
7
|
+
"engineVersion": "1.67.20",
|
|
8
8
|
"adapterType": "http",
|
|
9
9
|
"scripts": {
|
|
10
10
|
"artifactize": "npm i && node utils/packModificationScript.js",
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
"test:baseunit": "mocha test/unit/adapterBaseTestUnit.js --LOG=error",
|
|
16
16
|
"test:unit": "mocha test/unit/adapterTestUnit.js --LOG=error",
|
|
17
17
|
"test:integration": "mocha test/integration/adapterTestIntegration.js --LOG=error",
|
|
18
|
-
"test:cover": "nyc --reporter html --reporter text mocha --reporter dot test/*",
|
|
19
18
|
"test": "npm run test:baseunit && npm run test:unit && npm run test:integration",
|
|
20
19
|
"adapter:install": "npm i && node utils/tbScript.js install",
|
|
21
20
|
"adapter:checkMigrate": "node utils/checkMigrate.js",
|
|
@@ -45,21 +44,21 @@
|
|
|
45
44
|
],
|
|
46
45
|
"license": "Apache-2.0",
|
|
47
46
|
"engines": {
|
|
48
|
-
"node": ">=
|
|
47
|
+
"node": ">= 14.0.0",
|
|
49
48
|
"npm": ">= 6.0.0"
|
|
50
49
|
},
|
|
51
50
|
"repository": {
|
|
52
51
|
"type": "git",
|
|
53
|
-
"url": "git@gitlab.com:itentialopensource/adapters/
|
|
52
|
+
"url": "git@gitlab.com:itentialopensource/adapters/adapter-aws_cloudformation.git"
|
|
54
53
|
},
|
|
55
54
|
"author": "Itential",
|
|
56
|
-
"homepage": "https://gitlab.com/itentialopensource/adapters/
|
|
55
|
+
"homepage": "https://gitlab.com/itentialopensource/adapters/adapter-aws_cloudformation#readme",
|
|
57
56
|
"dependencies": {
|
|
58
|
-
"@itentialopensource/adapter-utils": "^5.
|
|
57
|
+
"@itentialopensource/adapter-utils": "^5.5.0",
|
|
59
58
|
"acorn": "^8.10.0",
|
|
60
59
|
"ajv": "^8.12.0",
|
|
61
60
|
"aws4": "^1.9.0",
|
|
62
|
-
"axios": "^1.6.
|
|
61
|
+
"axios": "^1.6.8",
|
|
63
62
|
"commander": "^11.0.0",
|
|
64
63
|
"dns-lookup-promise": "^1.0.4",
|
|
65
64
|
"fs-extra": "^11.1.1",
|
|
@@ -67,7 +66,6 @@
|
|
|
67
66
|
"mocha": "^10.3.0",
|
|
68
67
|
"mocha-param": "^2.0.1",
|
|
69
68
|
"mongodb": "^4.16.0",
|
|
70
|
-
"nyc": "^15.1.0",
|
|
71
69
|
"ping": "^0.4.4",
|
|
72
70
|
"prompts": "^2.4.2",
|
|
73
71
|
"readline-sync": "^1.4.10",
|
package/propertiesSchema.json
CHANGED
|
@@ -969,6 +969,11 @@
|
|
|
969
969
|
"devicebroker": {
|
|
970
970
|
"type": "object",
|
|
971
971
|
"properties": {
|
|
972
|
+
"enabled": {
|
|
973
|
+
"type": "boolean",
|
|
974
|
+
"description": "Whether or not the device broker calls have been mapped",
|
|
975
|
+
"default": false
|
|
976
|
+
},
|
|
972
977
|
"getDevice": {
|
|
973
978
|
"type": "array",
|
|
974
979
|
"description": "Broker call(s) to getDevice",
|
|
Binary file
|
package/report/adapterInfo.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.2.
|
|
3
|
-
"configLines":
|
|
2
|
+
"version": "0.2.10",
|
|
3
|
+
"configLines": 13223,
|
|
4
4
|
"scriptLines": 1783,
|
|
5
5
|
"codeLines": 11578,
|
|
6
|
-
"testLines":
|
|
6
|
+
"testLines": 7182,
|
|
7
7
|
"testCases": 345,
|
|
8
|
-
"totalCodeLines":
|
|
8
|
+
"totalCodeLines": 20543,
|
|
9
9
|
"wfTasks": 163
|
|
10
10
|
}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
{
|
|
2
|
+
"errors": [],
|
|
3
|
+
"statistics": [
|
|
4
|
+
{
|
|
5
|
+
"owner": "errorJson",
|
|
6
|
+
"description": "New adapter errors available for use",
|
|
7
|
+
"value": 0
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"owner": "errorJson",
|
|
11
|
+
"description": "Adapter errors no longer available for use",
|
|
12
|
+
"value": 0
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"owner": "errorJson",
|
|
16
|
+
"description": "Adapter errors that have been updated (e.g. recommendation changes)",
|
|
17
|
+
"value": 31
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"owner": "packageJson",
|
|
21
|
+
"description": "Number of production dependencies",
|
|
22
|
+
"value": 16
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"owner": "packageJson",
|
|
26
|
+
"description": "Number of development dependencies",
|
|
27
|
+
"value": 6
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"owner": "packageJson",
|
|
31
|
+
"description": "Number of npm scripts",
|
|
32
|
+
"value": 21
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"owner": "packageJson",
|
|
36
|
+
"description": "Runtime Library dependency",
|
|
37
|
+
"value": "^5.5.0"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"owner": "propertiesSchemaJson",
|
|
41
|
+
"description": "Adapter properties defined in the propertiesSchema file",
|
|
42
|
+
"value": 81
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"owner": "markdown",
|
|
46
|
+
"description": "Number of lines in the README.md",
|
|
47
|
+
"value": 344
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"owner": "markdown",
|
|
51
|
+
"description": "Number of lines in the SUMMARY.md",
|
|
52
|
+
"value": 9
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"owner": "markdown",
|
|
56
|
+
"description": "Number of lines in the PROPERTIES.md",
|
|
57
|
+
"value": 647
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"owner": "markdown",
|
|
61
|
+
"description": "Number of lines in the TROUBLESHOOT.md",
|
|
62
|
+
"value": 48
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"owner": "markdown",
|
|
66
|
+
"description": "Number of lines in the ENHANCE.md",
|
|
67
|
+
"value": 70
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"owner": "markdown",
|
|
71
|
+
"description": "Number of lines in the BROKER.md",
|
|
72
|
+
"value": 70
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"owner": "unitTestJS",
|
|
76
|
+
"description": "Number of lines of code in unit tests",
|
|
77
|
+
"value": 3355
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"owner": "unitTestJS",
|
|
81
|
+
"description": "Number of unit tests",
|
|
82
|
+
"value": 197
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"owner": "integrationTestJS",
|
|
86
|
+
"description": "Number of lines of code in integration tests",
|
|
87
|
+
"value": 2575
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"owner": "integrationTestJS",
|
|
91
|
+
"description": "Number of integration tests",
|
|
92
|
+
"value": 78
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"owner": "staticFile",
|
|
96
|
+
"description": "Number of lines of code in adapterBase.js",
|
|
97
|
+
"value": 1453
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"owner": "staticFile",
|
|
101
|
+
"description": "Number of static files added",
|
|
102
|
+
"value": 36
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"owner": "Overall",
|
|
106
|
+
"description": "Total lines of Code",
|
|
107
|
+
"value": 7383
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"owner": "Overall",
|
|
111
|
+
"description": "Total Tests",
|
|
112
|
+
"value": 275
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"owner": "Overall",
|
|
116
|
+
"description": "Total Files",
|
|
117
|
+
"value": 6
|
|
118
|
+
}
|
|
119
|
+
]
|
|
120
|
+
}
|