@intentius/chant-lexicon-aws 0.15.2 → 0.16.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/dist/generated/index.d.ts +11 -0
- package/dist/generated/index.d.ts.map +1 -1
- package/dist/integrity.json +4 -4
- package/dist/live-attrs.d.ts +4 -0
- package/dist/live-attrs.d.ts.map +1 -0
- package/dist/manifest.json +1 -1
- package/dist/meta.json +118 -11
- package/dist/op/activities/aws-apply.d.ts +76 -0
- package/dist/op/activities/aws-apply.d.ts.map +1 -0
- package/dist/op/activities/floci.d.ts +11 -19
- package/dist/op/activities/floci.d.ts.map +1 -1
- package/dist/op/activities/index.d.ts +5 -1
- package/dist/op/activities/index.d.ts.map +1 -1
- package/dist/plugin.d.ts.map +1 -1
- package/dist/reference-catalog.d.ts +14 -0
- package/dist/reference-catalog.d.ts.map +1 -0
- package/dist/types/index.d.ts +174 -19
- package/package.json +2 -2
- package/src/generated/index.d.ts +174 -19
- package/src/generated/index.ts +13 -2
- package/src/generated/lexicon-aws.json +118 -11
- package/src/live-attrs.test.ts +54 -0
- package/src/live-attrs.ts +40 -0
- package/src/op/activities/aws-apply.test.ts +143 -0
- package/src/op/activities/aws-apply.ts +194 -0
- package/src/op/activities/floci.ts +49 -91
- package/src/op/activities/index.ts +22 -1
- package/src/plugin.ts +13 -0
- package/src/reference-catalog.test.ts +74 -0
- package/src/reference-catalog.ts +82 -0
package/dist/integrity.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"algorithm": "sha256",
|
|
3
3
|
"artifacts": {
|
|
4
|
-
"manifest.json": "
|
|
5
|
-
"meta.json": "
|
|
6
|
-
"types/index.d.ts": "
|
|
4
|
+
"manifest.json": "4282939cf051b4da7ca9e313ccb46b0630a416bebd2a7b936ec4ec7c39c038f5",
|
|
5
|
+
"meta.json": "db6740cf5f9f4905356254ed1e7ae0d1a085a2654b39b88f05430d6b5bdeec45",
|
|
6
|
+
"types/index.d.ts": "ab992861cae92b9457e0f50126d40af6d4bf201080cdd39c1141c9e064871f23",
|
|
7
7
|
"rules/hardcoded-region.ts": "5a0eaf7ab391231fe6cd51426ece29539cb4b36f31c8dd060956638fed55722a",
|
|
8
8
|
"rules/iam-wildcard.ts": "135d7217d278fef50939e605c5da32603ba35674b8c4b5c4d66a06c77903e945",
|
|
9
9
|
"rules/s3-encryption.ts": "c4f9f8aa8dc382ed98c7b04e820a600590cc75335a8db2e087cbfbfe4003d09e",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"skills/chant-aws.md": "4d65eb160e001f2af42eb7c622a5b498c2fd1f5afbd6c8155615c010fb265c63",
|
|
41
41
|
"skills/chant-aws-eks.md": "8789255709ff004ad0a875fd5999edcdc66fc6e33d710db058d9f42703bcfdfe"
|
|
42
42
|
},
|
|
43
|
-
"composite": "
|
|
43
|
+
"composite": "ba439338cdd841a058d4496befb469671da386616c8525554fc3df56514d4365"
|
|
44
44
|
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ExportedTemplate } from "@intentius/chant/lexicon";
|
|
2
|
+
/** logical id → resolved properties (references become bare logical-id strings). */
|
|
3
|
+
export declare function resolveTemplateAttrs(template: ExportedTemplate): Record<string, Record<string, unknown>>;
|
|
4
|
+
//# sourceMappingURL=live-attrs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"live-attrs.d.ts","sourceRoot":"","sources":["../src/live-attrs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAgCjE,oFAAoF;AACpF,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAMxG"}
|
package/dist/manifest.json
CHANGED
package/dist/meta.json
CHANGED
|
@@ -8672,6 +8672,16 @@
|
|
|
8672
8672
|
"kind": "property",
|
|
8673
8673
|
"lexicon": "aws"
|
|
8674
8674
|
},
|
|
8675
|
+
"AzureProviderConfiguration": {
|
|
8676
|
+
"resourceType": "AWS::SecurityHub::Connector.AzureProviderConfiguration",
|
|
8677
|
+
"kind": "property",
|
|
8678
|
+
"lexicon": "aws"
|
|
8679
|
+
},
|
|
8680
|
+
"AzureScopeConfiguration": {
|
|
8681
|
+
"resourceType": "AWS::SecurityHub::Connector.AzureScopeConfiguration",
|
|
8682
|
+
"kind": "property",
|
|
8683
|
+
"lexicon": "aws"
|
|
8684
|
+
},
|
|
8675
8685
|
"B2BICapability": {
|
|
8676
8686
|
"resourceType": "AWS::B2BI::Capability",
|
|
8677
8687
|
"kind": "resource",
|
|
@@ -18201,6 +18211,9 @@
|
|
|
18201
18211
|
"resourceType": "AWS::Config::ConformancePack",
|
|
18202
18212
|
"kind": "resource",
|
|
18203
18213
|
"lexicon": "aws",
|
|
18214
|
+
"attrs": {
|
|
18215
|
+
"ConformancePackArn": "ConformancePackArn"
|
|
18216
|
+
},
|
|
18204
18217
|
"propertyConstraints": {
|
|
18205
18218
|
"ConformancePackName": {
|
|
18206
18219
|
"pattern": "[a-zA-Z][-a-zA-Z0-9]*",
|
|
@@ -18235,13 +18248,23 @@
|
|
|
18235
18248
|
],
|
|
18236
18249
|
"primaryIdentifier": [
|
|
18237
18250
|
"ConformancePackName"
|
|
18238
|
-
]
|
|
18251
|
+
],
|
|
18252
|
+
"tagging": {
|
|
18253
|
+
"taggable": true,
|
|
18254
|
+
"tagOnCreate": true,
|
|
18255
|
+
"tagUpdatable": true
|
|
18256
|
+
}
|
|
18239
18257
|
},
|
|
18240
18258
|
"ConformancePack_ConformancePackInputParameter": {
|
|
18241
18259
|
"resourceType": "AWS::Config::ConformancePack.ConformancePackInputParameter",
|
|
18242
18260
|
"kind": "property",
|
|
18243
18261
|
"lexicon": "aws"
|
|
18244
18262
|
},
|
|
18263
|
+
"ConformancePack_Tag": {
|
|
18264
|
+
"resourceType": "AWS::Config::ConformancePack.Tag",
|
|
18265
|
+
"kind": "property",
|
|
18266
|
+
"lexicon": "aws"
|
|
18267
|
+
},
|
|
18245
18268
|
"ConnectAction": {
|
|
18246
18269
|
"resourceType": "AWS::SES::ReceiptRule.ConnectAction",
|
|
18247
18270
|
"kind": "property",
|
|
@@ -19800,7 +19823,10 @@
|
|
|
19800
19823
|
"ConnectorStatus": "ConnectorStatus",
|
|
19801
19824
|
"LastUpdatedAt": "LastUpdatedAt",
|
|
19802
19825
|
"LastCheckedAt": "LastCheckedAt",
|
|
19803
|
-
"CreatedAt": "CreatedAt"
|
|
19826
|
+
"CreatedAt": "CreatedAt",
|
|
19827
|
+
"EnablementStatus": "EnablementStatus",
|
|
19828
|
+
"EnablementStatusReason": "EnablementStatusReason",
|
|
19829
|
+
"Issues": "Issues"
|
|
19804
19830
|
},
|
|
19805
19831
|
"propertyConstraints": {
|
|
19806
19832
|
"Name": {
|
|
@@ -19818,14 +19844,6 @@
|
|
|
19818
19844
|
"minLength": 20,
|
|
19819
19845
|
"maxLength": 2048
|
|
19820
19846
|
},
|
|
19821
|
-
"ConnectorStatus": {
|
|
19822
|
-
"enum": [
|
|
19823
|
-
"CONNECTED",
|
|
19824
|
-
"FAILED_TO_CONNECT",
|
|
19825
|
-
"PENDING_AUTHORIZATION",
|
|
19826
|
-
"PENDING_CONFIGURATION"
|
|
19827
|
-
]
|
|
19828
|
-
},
|
|
19829
19847
|
"ConnectorArn": {
|
|
19830
19848
|
"pattern": "^arn:aws\\S*:securityhub:[a-z0-9-]+:[0-9]{12}:connectorv2/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
|
|
19831
19849
|
},
|
|
@@ -19836,7 +19854,8 @@
|
|
|
19836
19854
|
"createOnly": [
|
|
19837
19855
|
"Name",
|
|
19838
19856
|
"KmsKeyArn",
|
|
19839
|
-
"Provider/ServiceNow/InstanceName"
|
|
19857
|
+
"Provider/ServiceNow/InstanceName",
|
|
19858
|
+
"Provider/Azure/AWSConfigConnectorArn"
|
|
19840
19859
|
],
|
|
19841
19860
|
"primaryIdentifier": [
|
|
19842
19861
|
"ConnectorArn"
|
|
@@ -19847,6 +19866,11 @@
|
|
|
19847
19866
|
"tagUpdatable": true
|
|
19848
19867
|
}
|
|
19849
19868
|
},
|
|
19869
|
+
"ConnectorV2_HealthIssue": {
|
|
19870
|
+
"resourceType": "AWS::SecurityHub::ConnectorV2.HealthIssue",
|
|
19871
|
+
"kind": "property",
|
|
19872
|
+
"lexicon": "aws"
|
|
19873
|
+
},
|
|
19850
19874
|
"ConnectorVpcLatticeEgressConfig": {
|
|
19851
19875
|
"resourceType": "AWS::Transfer::Connector.ConnectorVpcLatticeEgressConfig",
|
|
19852
19876
|
"kind": "property",
|
|
@@ -87621,6 +87645,63 @@
|
|
|
87621
87645
|
"kind": "property",
|
|
87622
87646
|
"lexicon": "aws"
|
|
87623
87647
|
},
|
|
87648
|
+
"SecurityHubConnector": {
|
|
87649
|
+
"resourceType": "AWS::SecurityHub::Connector",
|
|
87650
|
+
"kind": "resource",
|
|
87651
|
+
"lexicon": "aws",
|
|
87652
|
+
"attrs": {
|
|
87653
|
+
"ConnectorArn": "ConnectorArn",
|
|
87654
|
+
"ConnectorId": "ConnectorId",
|
|
87655
|
+
"ConnectorStatus": "ConnectorStatus",
|
|
87656
|
+
"Message": "Message",
|
|
87657
|
+
"LastCheckedAt": "LastCheckedAt",
|
|
87658
|
+
"CreatedAt": "CreatedAt",
|
|
87659
|
+
"LastUpdatedAt": "LastUpdatedAt",
|
|
87660
|
+
"CreatedBy": "CreatedBy",
|
|
87661
|
+
"EnablementStatus": "EnablementStatus",
|
|
87662
|
+
"Issues": "Issues"
|
|
87663
|
+
},
|
|
87664
|
+
"propertyConstraints": {
|
|
87665
|
+
"ConnectorArn": {
|
|
87666
|
+
"pattern": "^arn:aws\\S*:securityhub:[a-z0-9-]+:[0-9]{12}:connector/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
|
|
87667
|
+
},
|
|
87668
|
+
"ConnectorId": {
|
|
87669
|
+
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
|
|
87670
|
+
}
|
|
87671
|
+
},
|
|
87672
|
+
"createOnly": [
|
|
87673
|
+
"Name",
|
|
87674
|
+
"Provider/Azure/AWSConfigConnectorArn"
|
|
87675
|
+
],
|
|
87676
|
+
"primaryIdentifier": [
|
|
87677
|
+
"ConnectorArn"
|
|
87678
|
+
],
|
|
87679
|
+
"tagging": {
|
|
87680
|
+
"taggable": true,
|
|
87681
|
+
"tagOnCreate": true,
|
|
87682
|
+
"tagUpdatable": true
|
|
87683
|
+
}
|
|
87684
|
+
},
|
|
87685
|
+
"SecurityHubConnector_AzureProviderConfiguration": {
|
|
87686
|
+
"resourceType": "AWS::SecurityHub::Connector.AzureProviderConfiguration",
|
|
87687
|
+
"kind": "property",
|
|
87688
|
+
"lexicon": "aws"
|
|
87689
|
+
},
|
|
87690
|
+
"SecurityHubConnector_AzureScopeConfiguration": {
|
|
87691
|
+
"resourceType": "AWS::SecurityHub::Connector.AzureScopeConfiguration",
|
|
87692
|
+
"kind": "property",
|
|
87693
|
+
"lexicon": "aws"
|
|
87694
|
+
},
|
|
87695
|
+
"SecurityHubConnector_HealthIssue": {
|
|
87696
|
+
"resourceType": "AWS::SecurityHub::Connector.HealthIssue",
|
|
87697
|
+
"kind": "property",
|
|
87698
|
+
"lexicon": "aws"
|
|
87699
|
+
},
|
|
87700
|
+
"SecurityHubConnector_Provider": {
|
|
87701
|
+
"resourceType": "AWS::SecurityHub::Connector.Provider",
|
|
87702
|
+
"kind": "property",
|
|
87703
|
+
"lexicon": "aws"
|
|
87704
|
+
},
|
|
87624
87705
|
"SecurityHubHub": {
|
|
87625
87706
|
"resourceType": "AWS::SecurityHub::Hub",
|
|
87626
87707
|
"kind": "resource",
|
|
@@ -97964,6 +98045,32 @@
|
|
|
97964
98045
|
"kind": "property",
|
|
97965
98046
|
"lexicon": "aws"
|
|
97966
98047
|
},
|
|
98048
|
+
"TransitGatewayPolicyTable": {
|
|
98049
|
+
"resourceType": "AWS::EC2::TransitGatewayPolicyTable",
|
|
98050
|
+
"kind": "resource",
|
|
98051
|
+
"lexicon": "aws",
|
|
98052
|
+
"attrs": {
|
|
98053
|
+
"TransitGatewayPolicyTableId": "TransitGatewayPolicyTableId",
|
|
98054
|
+
"State": "State",
|
|
98055
|
+
"CreationTime": "CreationTime"
|
|
98056
|
+
},
|
|
98057
|
+
"createOnly": [
|
|
98058
|
+
"TransitGatewayId"
|
|
98059
|
+
],
|
|
98060
|
+
"primaryIdentifier": [
|
|
98061
|
+
"TransitGatewayPolicyTableId"
|
|
98062
|
+
],
|
|
98063
|
+
"tagging": {
|
|
98064
|
+
"taggable": true,
|
|
98065
|
+
"tagOnCreate": true,
|
|
98066
|
+
"tagUpdatable": true
|
|
98067
|
+
}
|
|
98068
|
+
},
|
|
98069
|
+
"TransitGatewayPolicyTable_Tag": {
|
|
98070
|
+
"resourceType": "AWS::EC2::TransitGatewayPolicyTable.Tag",
|
|
98071
|
+
"kind": "property",
|
|
98072
|
+
"lexicon": "aws"
|
|
98073
|
+
},
|
|
97967
98074
|
"TransitGatewayRegistration": {
|
|
97968
98075
|
"resourceType": "AWS::NetworkManager::TransitGatewayRegistration",
|
|
97969
98076
|
"kind": "resource",
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
export interface AwsApplyArgs {
|
|
2
|
+
/** Path to a built CloudFormation template (JSON/YAML). */
|
|
3
|
+
templatePath: string;
|
|
4
|
+
/** CloudFormation stack name — the deploy boundary. */
|
|
5
|
+
stackName: string;
|
|
6
|
+
/** CFN endpoint override (e.g. Floci `http://localhost:4566`). Default: real CloudFormation. */
|
|
7
|
+
endpoint?: string;
|
|
8
|
+
/** Region (real CFN host + `Version` context). Default: `us-east-1`. */
|
|
9
|
+
region?: string;
|
|
10
|
+
/** Capabilities to acknowledge. Default: `["CAPABILITY_NAMED_IAM"]`. */
|
|
11
|
+
capabilities?: string[];
|
|
12
|
+
/** Stack-settle timeout in ms. Default: `300000`. */
|
|
13
|
+
timeoutMs?: number;
|
|
14
|
+
/** Poll interval in ms. Default: `3000`. */
|
|
15
|
+
intervalMs?: number;
|
|
16
|
+
}
|
|
17
|
+
/** Injectable CFN transport — a form POST returning the raw XML. Mirrors the az/gcp appliers so tests avoid the network. */
|
|
18
|
+
export type AwsHttp = (url: string, form: Record<string, string>, signal?: AbortSignal) => Promise<{
|
|
19
|
+
status: number;
|
|
20
|
+
text: string;
|
|
21
|
+
}>;
|
|
22
|
+
/** The CloudFormation endpoint URL — the override, or the real regional host. */
|
|
23
|
+
export declare function cfnUrl(endpoint?: string, region?: string): string;
|
|
24
|
+
/** A CFN Query-protocol form body: `Action` + `Version` + params. */
|
|
25
|
+
export declare function cfnForm(action: string, params: Record<string, string>): Record<string, string>;
|
|
26
|
+
/** Capabilities as the CFN `Capabilities.member.N` list params. */
|
|
27
|
+
export declare function capabilityParams(capabilities: string[]): Record<string, string>;
|
|
28
|
+
/**
|
|
29
|
+
* First `<tag>…</tag>` text in a CFN XML response.
|
|
30
|
+
*
|
|
31
|
+
* Assumes flat scalar fields — the CloudFormation Query API returns simple
|
|
32
|
+
* `<StackStatus>…</StackStatus>` style leaves, so `[^<]*` is sufficient. It does
|
|
33
|
+
* NOT handle nested tags or XML entities in the value; if a field ever carries
|
|
34
|
+
* either, replace this with a real XML parser.
|
|
35
|
+
*/
|
|
36
|
+
export declare function xmlField(xml: string, tag: string): string | undefined;
|
|
37
|
+
export declare const stackStatus: (xml: string) => string | undefined;
|
|
38
|
+
export declare const stackId: (xml: string) => string | undefined;
|
|
39
|
+
export declare const cfnErrorMessage: (xml: string) => string | undefined;
|
|
40
|
+
/** A DescribeStacks error for an absent stack (drives create-vs-update). */
|
|
41
|
+
export declare const isStackMissing: (xml: string) => boolean;
|
|
42
|
+
/** The real-AWS UpdateStack no-op error (Floci returns 200 instead). */
|
|
43
|
+
export declare const isNoUpdates: (xml: string) => boolean;
|
|
44
|
+
export declare const isSuccessStatus: (status: string) => boolean;
|
|
45
|
+
export declare const isFailureStatus: (status: string) => boolean;
|
|
46
|
+
/** A settled stack state — success, failure, or deleted. Transient `*_IN_PROGRESS` states aren't. */
|
|
47
|
+
export declare const isTerminalStatus: (status: string) => boolean;
|
|
48
|
+
/** Poll DescribeStacks until the stack reaches a terminal state; returns that status. */
|
|
49
|
+
export declare function waitForStackSettled(url: string, stackName: string, http: AwsHttp, opts: {
|
|
50
|
+
timeoutMs: number;
|
|
51
|
+
intervalMs: number;
|
|
52
|
+
}, signal?: AbortSignal): Promise<string>;
|
|
53
|
+
/**
|
|
54
|
+
* The native AWS applier — deploy a built CloudFormation template by calling the
|
|
55
|
+
* CloudFormation API directly (create-or-update + poll to a settled stack),
|
|
56
|
+
* targeting a local Floci emulator or real AWS by endpoint override. The direct
|
|
57
|
+
* twin of `azApply`/`gcpApply`: it speaks the CloudFormation Query API over HTTP
|
|
58
|
+
* rather than shelling `aws cloudformation deploy` (that CLI path is still
|
|
59
|
+
* available via `nativeApply({ target: "cloudformation" })`). The stack is the
|
|
60
|
+
* ownership boundary, so deletes ride CloudFormation itself — no separate prune.
|
|
61
|
+
* `http` is injectable for tests.
|
|
62
|
+
*/
|
|
63
|
+
export declare function awsApply(args: AwsApplyArgs, signal?: AbortSignal, http?: AwsHttp): Promise<{
|
|
64
|
+
stackName: string;
|
|
65
|
+
status: string;
|
|
66
|
+
action: "created" | "updated" | "unchanged";
|
|
67
|
+
}>;
|
|
68
|
+
/**
|
|
69
|
+
* The inverse of {@link awsApply} — DeleteStack, then poll until the stack is
|
|
70
|
+
* gone. Idempotent: an already-absent stack is a no-op. `http` is injectable.
|
|
71
|
+
*/
|
|
72
|
+
export declare function awsDelete(args: AwsApplyArgs, signal?: AbortSignal, http?: AwsHttp): Promise<{
|
|
73
|
+
stackName: string;
|
|
74
|
+
deleted: boolean;
|
|
75
|
+
}>;
|
|
76
|
+
//# sourceMappingURL=aws-apply.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aws-apply.d.ts","sourceRoot":"","sources":["../../../src/op/activities/aws-apply.ts"],"names":[],"mappings":"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"}
|
|
@@ -20,35 +20,27 @@ export interface FlociDownArgs {
|
|
|
20
20
|
/** Container name to remove. Default: `chant-floci`. */
|
|
21
21
|
name?: string;
|
|
22
22
|
}
|
|
23
|
-
/** `docker ps -q -f name=<name>` — non-empty stdout means the container is running. */
|
|
24
|
-
export declare function flociExistsCommand(name: string): string;
|
|
25
|
-
/** Build the `docker run` command that boots Floci. */
|
|
26
|
-
export declare function flociRunCommand(args: FlociUpArgs): string;
|
|
27
|
-
/** Build the `docker rm -f` command. */
|
|
28
|
-
export declare function flociRmCommand(name: string): string;
|
|
29
|
-
/** The Floci health endpoint URL for a host port. */
|
|
30
|
-
export declare function flociHealthUrl(port: number): string;
|
|
31
|
-
/** The AWS env vars that point the `aws` CLI / SDK at a local Floci endpoint. */
|
|
32
|
-
export declare function flociEnv(port: number, region: string): Record<string, string>;
|
|
33
23
|
/** True once the health body reports the required service (e.g. `"cloudformation"`). */
|
|
34
24
|
export declare function isFlociReady(healthBody: string, service: string): boolean;
|
|
25
|
+
/** The AWS env vars that point the `aws` CLI / SDK at a local Floci endpoint. */
|
|
26
|
+
export declare function flociEnv(port: number, region: string): Record<string, string>;
|
|
27
|
+
export declare const flociExistsCommand: (name: string) => string;
|
|
28
|
+
export declare const flociRmCommand: (name: string) => string;
|
|
29
|
+
export declare const flociHealthUrl: (port: number) => string;
|
|
30
|
+
/** Build the `docker run` command that boots Floci. */
|
|
31
|
+
export declare function flociRunCommand(args?: FlociUpArgs): string;
|
|
35
32
|
/**
|
|
36
33
|
* Boot a local Floci AWS emulator in Docker and point subsequent steps at it.
|
|
37
34
|
*
|
|
38
35
|
* Idempotent: reuses a running container of the same name. Waits for the health
|
|
39
36
|
* endpoint to report `readyService`, then sets `AWS_ENDPOINT_URL` + test creds in
|
|
40
37
|
* the process environment so a following `nativeApply`/`cfn-deploy` targets the
|
|
41
|
-
* emulator. Env injection assumes the in-process
|
|
38
|
+
* emulator. Env injection assumes the in-process local executor; under a
|
|
42
39
|
* distributed Temporal worker, pass the endpoint explicitly instead.
|
|
43
|
-
*
|
|
44
|
-
* Uses longInfra profile — 20m timeout, heartbeat every poll (the image may pull).
|
|
45
40
|
*/
|
|
46
|
-
export declare function flociUp(args
|
|
41
|
+
export declare function flociUp(args?: FlociUpArgs, signal?: AbortSignal): Promise<{
|
|
47
42
|
endpoint: string;
|
|
48
43
|
}>;
|
|
49
|
-
/**
|
|
50
|
-
|
|
51
|
-
* container is already gone. Uses fastIdempotent profile — 5m timeout.
|
|
52
|
-
*/
|
|
53
|
-
export declare function flociDown(args: FlociDownArgs, signal?: AbortSignal): Promise<void>;
|
|
44
|
+
/** Stop and remove the local Floci emulator container (no-op if already gone). */
|
|
45
|
+
export declare function flociDown(args?: FlociDownArgs, signal?: AbortSignal): Promise<void>;
|
|
54
46
|
//# sourceMappingURL=floci.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"floci.d.ts","sourceRoot":"","sources":["../../../src/op/activities/floci.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"floci.d.ts","sourceRoot":"","sources":["../../../src/op/activities/floci.ts"],"names":[],"mappings":"AASA,MAAM,WAAW,WAAW;IAC1B,8CAA8C;IAC9C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,mEAAmE;IACnE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,kDAAkD;IAClD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,+FAA+F;IAC/F,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,wEAAwE;IACxE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,+EAA+E;IAC/E,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,iDAAiD;IACjD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mDAAmD;IACnD,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,aAAa;IAC5B,wDAAwD;IACxD,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,wFAAwF;AACxF,wBAAgB,YAAY,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAEzE;AAED,iFAAiF;AACjF,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAO7E;AAgBD,eAAO,MAAM,kBAAkB,0BAAyB,CAAC;AACzD,eAAO,MAAM,cAAc,0BAAqB,CAAC;AACjD,eAAO,MAAM,cAAc,0BAAqB,CAAC;AAEjD,uDAAuD;AACvD,wBAAgB,eAAe,CAAC,IAAI,GAAE,WAAgB,GAAG,MAAM,CAO9D;AAED;;;;;;;;GAQG;AACH,wBAAsB,OAAO,CAAC,IAAI,GAAE,WAAgB,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC;IAAE,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC,CAgBzG;AAED,kFAAkF;AAClF,wBAAsB,SAAS,CAAC,IAAI,GAAE,aAAkB,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAE7F"}
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* AWS Op activities — resolved by the core activity registry when a project's
|
|
3
3
|
* `chant.config.ts` lists the `aws` lexicon. Contributes the local Floci AWS
|
|
4
|
-
* emulator lifecycle (`flociUp`/`flociDown`)
|
|
4
|
+
* emulator lifecycle (`flociUp`/`flociDown`) and the native CloudFormation
|
|
5
|
+
* applier (`awsApply`), which calls the CloudFormation API directly rather than
|
|
6
|
+
* shelling `aws` — the direct twin of `azApply`/`gcpApply`.
|
|
5
7
|
*/
|
|
6
8
|
export { flociUp, flociDown, flociRunCommand, flociRmCommand, flociExistsCommand, flociHealthUrl, flociEnv, isFlociReady, } from "./floci.js";
|
|
7
9
|
export type { FlociUpArgs, FlociDownArgs } from "./floci.js";
|
|
10
|
+
export { awsApply, awsDelete, waitForStackSettled, cfnUrl, cfnForm, capabilityParams, xmlField, stackStatus, stackId, cfnErrorMessage, isStackMissing, isNoUpdates, isSuccessStatus, isFailureStatus, isTerminalStatus, } from "./aws-apply.js";
|
|
11
|
+
export type { AwsApplyArgs, AwsHttp } from "./aws-apply.js";
|
|
8
12
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/op/activities/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/op/activities/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EACL,OAAO,EACP,SAAS,EACT,eAAe,EACf,cAAc,EACd,kBAAkB,EAClB,cAAc,EACd,QAAQ,EACR,YAAY,GACb,MAAM,SAAS,CAAC;AACjB,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE1D,OAAO,EACL,QAAQ,EACR,SAAS,EACT,mBAAmB,EACnB,MAAM,EACN,OAAO,EACP,gBAAgB,EAChB,QAAQ,EACR,WAAW,EACX,OAAO,EACP,eAAe,EACf,cAAc,EACd,WAAW,EACX,eAAe,EACf,eAAe,EACf,gBAAgB,GACjB,MAAM,aAAa,CAAC;AACrB,YAAY,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC"}
|
package/dist/plugin.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAuF,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAuF,MAAM,0BAA0B,CAAC;AAsBnJ;;;;;GAKG;AACH,eAAO,MAAM,SAAS,EAAE,aAwqBvB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ReferenceCatalog } from "@intentius/chant/lexicon";
|
|
2
|
+
/**
|
|
3
|
+
* AWS reference catalog (#778, epic #776 v1) — how observed AWS resources
|
|
4
|
+
* reference each other, so `chant graph --live` can reconstruct the topology.
|
|
5
|
+
*
|
|
6
|
+
* Keyed to the per-resource describe/export attribute shape (`VpcId`,
|
|
7
|
+
* `SecurityGroups[].GroupId`, `TargetGroupArn`, …), not the thin
|
|
8
|
+
* `describe-stack-resources` metadata. Enough to draw the canonical 3-tier VPC
|
|
9
|
+
* (internet → ALB → ECS service → RDS, with SG attachments). `containment`
|
|
10
|
+
* relations (subnet ∈ VPC) feed #779's boundary boxes; `reference` relations are
|
|
11
|
+
* edges.
|
|
12
|
+
*/
|
|
13
|
+
export declare const awsReferenceCatalog: ReferenceCatalog;
|
|
14
|
+
//# sourceMappingURL=reference-catalog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reference-catalog.d.ts","sourceRoot":"","sources":["../src/reference-catalog.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAEjE;;;;;;;;;;GAUG;AACH,eAAO,MAAM,mBAAmB,EAAE,gBAoEjC,CAAC"}
|