@emulates/ec2 0.0.0-stage → 1.0.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/CHANGELOG.md +19 -0
- package/DISCOVERY.md +55 -0
- package/README.md +43 -2
- package/SUPPORT.md +17 -0
- package/dist/chunk-4FI6L6HS.js +818 -0
- package/dist/chunk-4FI6L6HS.js.map +7 -0
- package/dist/chunk-AU4SNKWD.js +7394 -0
- package/dist/chunk-AU4SNKWD.js.map +7 -0
- package/dist/cli.js +19 -0
- package/dist/cli.js.map +7 -0
- package/dist/index.d.ts +899 -0
- package/dist/index.js +15 -0
- package/dist/index.js.map +7 -0
- package/dist/server.d.ts +1359 -0
- package/dist/server.js +12 -0
- package/dist/server.js.map +7 -0
- package/openapi.yaml +40 -0
- package/package.json +161 -4
package/dist/server.js
ADDED
package/openapi.yaml
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
openapi: 3.1.0
|
|
2
|
+
info:
|
|
3
|
+
title: Amazon Elastic Compute Cloud (Emulates subset)
|
|
4
|
+
version: "1.0.0"
|
|
5
|
+
description: AWS protocol transport; README lists the implemented AWS operations.
|
|
6
|
+
servers:
|
|
7
|
+
- url: https://ec2.us-east-1.amazonaws.com
|
|
8
|
+
paths:
|
|
9
|
+
/:
|
|
10
|
+
post:
|
|
11
|
+
operationId: AwsRpc
|
|
12
|
+
x-emulates: { supported: false, reason: Vendor operations are not implemented in this scaffold., parity: { enabled: false, reason: Use the stateful LocalStack scenario runner. } }
|
|
13
|
+
responses: { "200": { description: AWS protocol response }, "400": { description: AWS protocol error } }
|
|
14
|
+
get:
|
|
15
|
+
operationId: AwsQuery
|
|
16
|
+
x-emulates: { supported: false, reason: Vendor operations are not implemented in this scaffold., parity: { enabled: false, reason: Use the stateful LocalStack scenario runner. } }
|
|
17
|
+
responses: { "200": { description: AWS query response } }
|
|
18
|
+
/{path}:
|
|
19
|
+
parameters:
|
|
20
|
+
- { name: path, in: path, required: true, schema: { type: string } }
|
|
21
|
+
get:
|
|
22
|
+
operationId: AwsRestGet
|
|
23
|
+
x-emulates: { supported: false, reason: Vendor operations are not implemented in this scaffold., parity: { enabled: false, reason: Use the stateful LocalStack scenario runner. } }
|
|
24
|
+
responses: { "200": { description: AWS REST response } }
|
|
25
|
+
put:
|
|
26
|
+
operationId: AwsRestPut
|
|
27
|
+
x-emulates: { supported: false, reason: Vendor operations are not implemented in this scaffold., parity: { enabled: false, reason: Use the stateful LocalStack scenario runner. } }
|
|
28
|
+
responses: { "200": { description: AWS REST response } }
|
|
29
|
+
post:
|
|
30
|
+
operationId: AwsRestPost
|
|
31
|
+
x-emulates: { supported: false, reason: Vendor operations are not implemented in this scaffold., parity: { enabled: false, reason: Use the stateful LocalStack scenario runner. } }
|
|
32
|
+
responses: { "200": { description: AWS REST response } }
|
|
33
|
+
patch:
|
|
34
|
+
operationId: AwsRestPatch
|
|
35
|
+
x-emulates: { supported: false, reason: Vendor operations are not implemented in this scaffold., parity: { enabled: false, reason: Use the stateful LocalStack scenario runner. } }
|
|
36
|
+
responses: { "200": { description: AWS REST response } }
|
|
37
|
+
delete:
|
|
38
|
+
operationId: AwsRestDelete
|
|
39
|
+
x-emulates: { supported: false, reason: Vendor operations are not implemented in this scaffold., parity: { enabled: false, reason: Use the stateful LocalStack scenario runner. } }
|
|
40
|
+
responses: { "200": { description: AWS REST response } }
|
package/package.json
CHANGED
|
@@ -1,6 +1,163 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@emulates/ec2",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Work-in-progress Amazon Elastic Compute Cloud transport scaffold; vendor operations are not implemented.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"sideEffects": false,
|
|
8
|
+
"files": [
|
|
9
|
+
"dist",
|
|
10
|
+
"README.md",
|
|
11
|
+
"CHANGELOG.md",
|
|
12
|
+
"DISCOVERY.md",
|
|
13
|
+
"SUPPORT.md",
|
|
14
|
+
"openapi.yaml"
|
|
15
|
+
],
|
|
16
|
+
"main": "./dist/index.js",
|
|
17
|
+
"types": "./dist/index.d.ts",
|
|
18
|
+
"exports": {
|
|
19
|
+
".": {
|
|
20
|
+
"types": "./dist/index.d.ts",
|
|
21
|
+
"default": "./dist/index.js"
|
|
22
|
+
},
|
|
23
|
+
"./server": {
|
|
24
|
+
"types": "./dist/server.d.ts",
|
|
25
|
+
"default": "./dist/server.js"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"bin": {
|
|
29
|
+
"emulates-ec2": "./dist/cli.js"
|
|
30
|
+
},
|
|
31
|
+
"publishConfig": {
|
|
32
|
+
"access": "public",
|
|
33
|
+
"provenance": true
|
|
34
|
+
},
|
|
35
|
+
"repository": {
|
|
36
|
+
"type": "git",
|
|
37
|
+
"url": "git+https://github.com/crvouga/emulates.git",
|
|
38
|
+
"directory": "packages/service/ec2"
|
|
39
|
+
},
|
|
40
|
+
"homepage": "https://github.com/crvouga/emulates/tree/main/packages/service/ec2#readme",
|
|
41
|
+
"keywords": [
|
|
42
|
+
"emulates",
|
|
43
|
+
"aws",
|
|
44
|
+
"ec2",
|
|
45
|
+
"emulator"
|
|
46
|
+
],
|
|
47
|
+
"emulates": {
|
|
48
|
+
"runtime": "portable",
|
|
49
|
+
"entries": {
|
|
50
|
+
"server": "node",
|
|
51
|
+
"cli": "node"
|
|
52
|
+
},
|
|
53
|
+
"layer": "service",
|
|
54
|
+
"category": "infrastructure",
|
|
55
|
+
"displayName": "Amazon Elastic Compute Cloud",
|
|
56
|
+
"vendor": {
|
|
57
|
+
"website": "https://aws.amazon.com/",
|
|
58
|
+
"docs": "https://docs.aws.amazon.com/",
|
|
59
|
+
"name": "Amazon Web Services",
|
|
60
|
+
"icon": false,
|
|
61
|
+
"description": "Elastic Compute Cloud public AWS API.",
|
|
62
|
+
"color": "#FF9900"
|
|
63
|
+
},
|
|
64
|
+
"parity": "Scaffold only; no vendor operations implemented or verified",
|
|
65
|
+
"parityTier": "cold",
|
|
66
|
+
"aws": {
|
|
67
|
+
"localstackService": "ec2",
|
|
68
|
+
"plannedOperations": [
|
|
69
|
+
"RunInstances",
|
|
70
|
+
"DescribeInstances",
|
|
71
|
+
"StartInstances",
|
|
72
|
+
"StopInstances",
|
|
73
|
+
"RebootInstances",
|
|
74
|
+
"TerminateInstances",
|
|
75
|
+
"CreateVpc",
|
|
76
|
+
"DescribeVpcs",
|
|
77
|
+
"DeleteVpc",
|
|
78
|
+
"CreateSubnet",
|
|
79
|
+
"DescribeSubnets",
|
|
80
|
+
"DeleteSubnet",
|
|
81
|
+
"CreateSecurityGroup",
|
|
82
|
+
"DescribeSecurityGroups",
|
|
83
|
+
"DeleteSecurityGroup",
|
|
84
|
+
"AuthorizeSecurityGroupIngress",
|
|
85
|
+
"RevokeSecurityGroupIngress",
|
|
86
|
+
"CreateTags",
|
|
87
|
+
"DeleteTags",
|
|
88
|
+
"DescribeTags",
|
|
89
|
+
"CreateKeyPair",
|
|
90
|
+
"DescribeKeyPairs",
|
|
91
|
+
"DeleteKeyPair",
|
|
92
|
+
"CreateVolume",
|
|
93
|
+
"DescribeVolumes",
|
|
94
|
+
"DeleteVolume",
|
|
95
|
+
"AttachVolume",
|
|
96
|
+
"DetachVolume",
|
|
97
|
+
"CreateSnapshot",
|
|
98
|
+
"DescribeSnapshots",
|
|
99
|
+
"DeleteSnapshot",
|
|
100
|
+
"CreateInternetGateway",
|
|
101
|
+
"DescribeInternetGateways",
|
|
102
|
+
"AttachInternetGateway",
|
|
103
|
+
"DetachInternetGateway",
|
|
104
|
+
"DeleteInternetGateway",
|
|
105
|
+
"CreateRouteTable",
|
|
106
|
+
"DescribeRouteTables",
|
|
107
|
+
"DeleteRouteTable",
|
|
108
|
+
"CreateRoute",
|
|
109
|
+
"AssociateRouteTable"
|
|
110
|
+
],
|
|
111
|
+
"operations": []
|
|
112
|
+
},
|
|
113
|
+
"discovery": {
|
|
114
|
+
"guide": "DISCOVERY.md",
|
|
115
|
+
"behavior": "README.md",
|
|
116
|
+
"capabilities": "SUPPORT.md",
|
|
117
|
+
"contract": "openapi.yaml",
|
|
118
|
+
"types": "dist/index.d.ts",
|
|
119
|
+
"oracle": {
|
|
120
|
+
"kind": "Live vendor API or sandbox",
|
|
121
|
+
"command": "bun run parity:service -- ec2",
|
|
122
|
+
"note": "Run from an Emulates checkout; credentials come only from .env.local or GitHub Actions secrets. Missing credentials exit 2."
|
|
123
|
+
},
|
|
124
|
+
"introspection": [
|
|
125
|
+
"GET /__admin/health",
|
|
126
|
+
"GET /__admin",
|
|
127
|
+
"GET /__admin/state",
|
|
128
|
+
"GET /__admin/requests",
|
|
129
|
+
"GET /__admin/metrics",
|
|
130
|
+
"GET /__admin/faults/presets",
|
|
131
|
+
"GET /__admin/ui"
|
|
132
|
+
],
|
|
133
|
+
"reporting": "https://github.com/crvouga/emulates/blob/main/docs/REPORTING_ISSUES.md"
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
"scripts": {
|
|
137
|
+
"generate": "bun ../../openapi/codegen/dist/cli.js",
|
|
138
|
+
"generate:check": "bun ../../openapi/codegen/dist/cli.js --check",
|
|
139
|
+
"openapi:check": "bun ../../openapi/codegen/dist/cli.js --validate",
|
|
140
|
+
"build": "bun ../../../scripts/bundle-service.ts",
|
|
141
|
+
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
142
|
+
"lint": "biome check .",
|
|
143
|
+
"test": "bun test",
|
|
144
|
+
"parity": "bun scripts/parity.ts",
|
|
145
|
+
"portability": "bun ../../../scripts/portability.ts",
|
|
146
|
+
"pack:check": "bun ../../../scripts/pack-check.ts"
|
|
147
|
+
},
|
|
148
|
+
"dependencies": {
|
|
149
|
+
"@emulates/sqlite": "3.0.0"
|
|
150
|
+
},
|
|
151
|
+
"devDependencies": {
|
|
152
|
+
"@emulates/adapter-node": "0.0.0-development",
|
|
153
|
+
"@emulates/core": "0.0.0-development",
|
|
154
|
+
"@emulates/openapi": "0.0.0-development",
|
|
155
|
+
"@emulates/openapi-codegen": "0.1.0",
|
|
156
|
+
"@emulates/openapi-metadata": "0.0.0-development",
|
|
157
|
+
"@emulates/parity": "0.0.0-development",
|
|
158
|
+
"@emulates/service": "0.0.0-development",
|
|
159
|
+
"@emulates/sqlite-client": "0.0.0-development",
|
|
160
|
+
"@emulates/testing": "0.1.0",
|
|
161
|
+
"fast-check": "4.9.0"
|
|
162
|
+
}
|
|
163
|
+
}
|