@intentius/chant-lexicon-pulumi 0.124.97 → 0.124.99
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/adopt.d.ts +0 -1
- package/dist/capability-plugin.d.ts +0 -1
- package/dist/change-set.d.ts +0 -1
- package/dist/changed-units.d.ts +0 -1
- package/dist/check-step.d.ts +0 -1
- package/dist/ci-setup.d.ts +0 -1
- package/dist/codegen/docs-cli.d.ts +0 -1
- package/dist/codegen/docs.d.ts +0 -1
- package/dist/codegen/package.d.ts +0 -1
- package/dist/composites/pulumi-adopt-op.d.ts +0 -1
- package/dist/composites/pulumi-watch-op.d.ts +0 -1
- package/dist/config.d.ts +0 -1
- package/dist/describe-resources.d.ts +0 -1
- package/dist/drift-read.d.ts +0 -1
- package/dist/drift-record.d.ts +0 -1
- package/dist/engine-events.d.ts +0 -1
- package/dist/engine-graph.d.ts +0 -1
- package/dist/exit-codes.d.ts +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/init-templates.d.ts +0 -1
- package/dist/integrity.json +2 -2
- package/dist/lint/audit-catalog.d.ts +0 -1
- package/dist/lint/post-synth/index.d.ts +0 -1
- package/dist/lint/post-synth/member-read-helpers.d.ts +0 -1
- package/dist/lint/post-synth/pul001.d.ts +0 -1
- package/dist/lint/post-synth/pul002.d.ts +0 -1
- package/dist/lint/post-synth/pul003.d.ts +0 -1
- package/dist/lint/post-synth/pul004.d.ts +0 -1
- package/dist/lint/post-synth/pul005.d.ts +0 -1
- package/dist/lint/post-synth/pul006.d.ts +0 -1
- package/dist/lint/post-synth/pul007.d.ts +0 -1
- package/dist/lint/post-synth/pul008.d.ts +0 -1
- package/dist/lint/post-synth/pul009.d.ts +0 -1
- package/dist/lint/post-synth/pul010.d.ts +0 -1
- package/dist/lint/post-synth/pul011.d.ts +0 -1
- package/dist/lint/post-synth/pul012.d.ts +0 -1
- package/dist/lint/post-synth/pul013.d.ts +0 -1
- package/dist/lint/post-synth/pul014.d.ts +0 -1
- package/dist/lint/post-synth/pul015.d.ts +0 -1
- package/dist/lint/rules/index.d.ts +0 -1
- package/dist/lint/rules/member-dir-absolute.d.ts +0 -1
- package/dist/lock-rows.d.ts +0 -1
- package/dist/lsp/completions.d.ts +0 -1
- package/dist/lsp/documents.d.ts +0 -1
- package/dist/lsp/hover.d.ts +0 -1
- package/dist/lsp/keys.d.ts +0 -1
- package/dist/lsp/object-path.d.ts +0 -1
- package/dist/lsp/yaml-cursor.d.ts +0 -1
- package/dist/manifest.json +1 -1
- package/dist/member-engine.d.ts +0 -1
- package/dist/member-outputs.d.ts +0 -1
- package/dist/op/activities/index.d.ts +0 -1
- package/dist/op/activities/pulumi-adopt.d.ts +0 -1
- package/dist/op/activities/pulumi.d.ts +0 -1
- package/dist/op/activity-contracts.d.ts +0 -1
- package/dist/op/builders.d.ts +0 -1
- package/dist/package-cli.d.ts +0 -1
- package/dist/plan-shape.d.ts +0 -1
- package/dist/planned-output-changes.d.ts +0 -1
- package/dist/plugin.d.ts +0 -1
- package/dist/plunge-timings.d.ts +0 -1
- package/dist/preview-tips.d.ts +0 -1
- package/dist/pulumi-up.d.ts +0 -1
- package/dist/release-copy.d.ts +0 -1
- package/dist/review-stack.d.ts +0 -1
- package/dist/run.d.ts +0 -1
- package/dist/serializer.d.ts +0 -1
- package/dist/stack-export-snapshot.d.ts +0 -1
- package/dist/stack-ops.d.ts +0 -1
- package/dist/stack-outputs.d.ts +0 -1
- package/dist/stack-references.d.ts +0 -1
- package/dist/trace-facts.d.ts +0 -1
- package/dist/values.d.ts +0 -1
- package/dist/workspace-member.d.ts +0 -1
- package/package.json +3 -4
- package/dist/adopt.d.ts.map +0 -1
- package/dist/capability-plugin.d.ts.map +0 -1
- package/dist/change-set.d.ts.map +0 -1
- package/dist/changed-units.d.ts.map +0 -1
- package/dist/check-step.d.ts.map +0 -1
- package/dist/ci-setup.d.ts.map +0 -1
- package/dist/codegen/docs-cli.d.ts.map +0 -1
- package/dist/codegen/docs.d.ts.map +0 -1
- package/dist/codegen/package.d.ts.map +0 -1
- package/dist/composites/pulumi-adopt-op.d.ts.map +0 -1
- package/dist/composites/pulumi-watch-op.d.ts.map +0 -1
- package/dist/config.d.ts.map +0 -1
- package/dist/describe-resources.d.ts.map +0 -1
- package/dist/drift-read.d.ts.map +0 -1
- package/dist/drift-record.d.ts.map +0 -1
- package/dist/engine-events.d.ts.map +0 -1
- package/dist/engine-graph.d.ts.map +0 -1
- package/dist/exit-codes.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/init-templates.d.ts.map +0 -1
- package/dist/lint/audit-catalog.d.ts.map +0 -1
- package/dist/lint/post-synth/index.d.ts.map +0 -1
- package/dist/lint/post-synth/member-read-helpers.d.ts.map +0 -1
- package/dist/lint/post-synth/pul001.d.ts.map +0 -1
- package/dist/lint/post-synth/pul002.d.ts.map +0 -1
- package/dist/lint/post-synth/pul003.d.ts.map +0 -1
- package/dist/lint/post-synth/pul004.d.ts.map +0 -1
- package/dist/lint/post-synth/pul005.d.ts.map +0 -1
- package/dist/lint/post-synth/pul006.d.ts.map +0 -1
- package/dist/lint/post-synth/pul007.d.ts.map +0 -1
- package/dist/lint/post-synth/pul008.d.ts.map +0 -1
- package/dist/lint/post-synth/pul009.d.ts.map +0 -1
- package/dist/lint/post-synth/pul010.d.ts.map +0 -1
- package/dist/lint/post-synth/pul011.d.ts.map +0 -1
- package/dist/lint/post-synth/pul012.d.ts.map +0 -1
- package/dist/lint/post-synth/pul013.d.ts.map +0 -1
- package/dist/lint/post-synth/pul014.d.ts.map +0 -1
- package/dist/lint/post-synth/pul015.d.ts.map +0 -1
- package/dist/lint/rules/index.d.ts.map +0 -1
- package/dist/lint/rules/member-dir-absolute.d.ts.map +0 -1
- package/dist/lock-rows.d.ts.map +0 -1
- package/dist/lsp/completions.d.ts.map +0 -1
- package/dist/lsp/documents.d.ts.map +0 -1
- package/dist/lsp/hover.d.ts.map +0 -1
- package/dist/lsp/keys.d.ts.map +0 -1
- package/dist/lsp/object-path.d.ts.map +0 -1
- package/dist/lsp/yaml-cursor.d.ts.map +0 -1
- package/dist/member-engine.d.ts.map +0 -1
- package/dist/member-outputs.d.ts.map +0 -1
- package/dist/op/activities/index.d.ts.map +0 -1
- package/dist/op/activities/pulumi-adopt.d.ts.map +0 -1
- package/dist/op/activities/pulumi.d.ts.map +0 -1
- package/dist/op/activity-contracts.d.ts.map +0 -1
- package/dist/op/builders.d.ts.map +0 -1
- package/dist/package-cli.d.ts.map +0 -1
- package/dist/plan-shape.d.ts.map +0 -1
- package/dist/planned-output-changes.d.ts.map +0 -1
- package/dist/plugin.d.ts.map +0 -1
- package/dist/plunge-timings.d.ts.map +0 -1
- package/dist/preview-tips.d.ts.map +0 -1
- package/dist/pulumi-up.d.ts.map +0 -1
- package/dist/release-copy.d.ts.map +0 -1
- package/dist/review-stack.d.ts.map +0 -1
- package/dist/run.d.ts.map +0 -1
- package/dist/serializer.d.ts.map +0 -1
- package/dist/stack-export-snapshot.d.ts.map +0 -1
- package/dist/stack-ops.d.ts.map +0 -1
- package/dist/stack-outputs.d.ts.map +0 -1
- package/dist/stack-references.d.ts.map +0 -1
- package/dist/trace-facts.d.ts.map +0 -1
- package/dist/values.d.ts.map +0 -1
- package/dist/workspace-member.d.ts.map +0 -1
- package/src/adopt.ts +0 -202
- package/src/capability-plugin.ts +0 -34
- package/src/change-set.test.ts +0 -245
- package/src/change-set.ts +0 -508
- package/src/changed-units.test.ts +0 -87
- package/src/changed-units.ts +0 -96
- package/src/check-step.test.ts +0 -191
- package/src/check-step.ts +0 -316
- package/src/ci-setup.test.ts +0 -234
- package/src/ci-setup.ts +0 -224
- package/src/codegen/docs-cli.ts +0 -4
- package/src/codegen/docs.ts +0 -58
- package/src/codegen/package.ts +0 -63
- package/src/composites/pulumi-adopt-op.test.ts +0 -258
- package/src/composites/pulumi-adopt-op.ts +0 -193
- package/src/composites/pulumi-watch-op.test.ts +0 -42
- package/src/composites/pulumi-watch-op.ts +0 -85
- package/src/config.ts +0 -43
- package/src/describe-resources.test.ts +0 -112
- package/src/describe-resources.ts +0 -118
- package/src/drift-read.test.ts +0 -178
- package/src/drift-read.ts +0 -94
- package/src/drift-record.test.ts +0 -197
- package/src/drift-record.ts +0 -326
- package/src/engine-events.test.ts +0 -160
- package/src/engine-events.ts +0 -395
- package/src/engine-graph.test.ts +0 -141
- package/src/engine-graph.ts +0 -149
- package/src/exit-codes.test.ts +0 -21
- package/src/exit-codes.ts +0 -71
- package/src/index.ts +0 -139
- package/src/init-templates.ts +0 -85
- package/src/lint/audit-catalog.test.ts +0 -33
- package/src/lint/audit-catalog.ts +0 -174
- package/src/lint/post-synth/index.ts +0 -35
- package/src/lint/post-synth/member-read-helpers.ts +0 -122
- package/src/lint/post-synth/post-synth.test.ts +0 -245
- package/src/lint/post-synth/pul001.ts +0 -38
- package/src/lint/post-synth/pul002.ts +0 -38
- package/src/lint/post-synth/pul003.ts +0 -43
- package/src/lint/post-synth/pul004.ts +0 -32
- package/src/lint/post-synth/pul005.ts +0 -31
- package/src/lint/post-synth/pul006.ts +0 -31
- package/src/lint/post-synth/pul007.ts +0 -35
- package/src/lint/post-synth/pul008.ts +0 -35
- package/src/lint/post-synth/pul009.ts +0 -32
- package/src/lint/post-synth/pul010.ts +0 -42
- package/src/lint/post-synth/pul011.ts +0 -38
- package/src/lint/post-synth/pul012.ts +0 -35
- package/src/lint/post-synth/pul013.ts +0 -35
- package/src/lint/post-synth/pul014.ts +0 -32
- package/src/lint/post-synth/pul015.ts +0 -39
- package/src/lint/rules/index.ts +0 -7
- package/src/lint/rules/member-dir-absolute.test.ts +0 -37
- package/src/lint/rules/member-dir-absolute.ts +0 -83
- package/src/lock-rows.test.ts +0 -60
- package/src/lock-rows.ts +0 -56
- package/src/lsp/completions.test.ts +0 -69
- package/src/lsp/completions.ts +0 -119
- package/src/lsp/documents.ts +0 -48
- package/src/lsp/hover.test.ts +0 -56
- package/src/lsp/hover.ts +0 -83
- package/src/lsp/keys.ts +0 -169
- package/src/lsp/object-path.ts +0 -71
- package/src/lsp/yaml-cursor.ts +0 -85
- package/src/member-engine.test.ts +0 -112
- package/src/member-engine.ts +0 -97
- package/src/member-outputs.test.ts +0 -339
- package/src/member-outputs.ts +0 -157
- package/src/op/activities/index.ts +0 -36
- package/src/op/activities/pulumi-adopt.ts +0 -345
- package/src/op/activities/pulumi.ts +0 -136
- package/src/op/activity-contracts.ts +0 -129
- package/src/op/builders.ts +0 -67
- package/src/package-cli.ts +0 -14
- package/src/plan-shape.test.ts +0 -91
- package/src/plan-shape.ts +0 -105
- package/src/planned-output-changes.test.ts +0 -85
- package/src/planned-output-changes.ts +0 -141
- package/src/plugin.test.ts +0 -96
- package/src/plugin.ts +0 -272
- package/src/plunge-timings.test.ts +0 -241
- package/src/plunge-timings.ts +0 -115
- package/src/plunge-up-failed.test.ts +0 -54
- package/src/pr-note.test.ts +0 -87
- package/src/preview-generated.test.ts +0 -124
- package/src/preview-tips.test.ts +0 -134
- package/src/preview-tips.ts +0 -128
- package/src/pulumi-up.test.ts +0 -581
- package/src/pulumi-up.ts +0 -1102
- package/src/pulumi-urn-node.test.ts +0 -94
- package/src/release-copy.test.ts +0 -162
- package/src/release-copy.ts +0 -223
- package/src/review-stack.test.ts +0 -254
- package/src/review-stack.ts +0 -266
- package/src/run-plan-flags.test.ts +0 -53
- package/src/run.test.ts +0 -540
- package/src/run.ts +0 -1129
- package/src/serializer.test.ts +0 -9
- package/src/serializer.ts +0 -15
- package/src/skills/chant-pulumi-plunge.md +0 -51
- package/src/skills/chant-pulumi-stack-export.md +0 -54
- package/src/skills/chant-pulumi.md +0 -83
- package/src/stack-export-snapshot.test.ts +0 -192
- package/src/stack-export-snapshot.ts +0 -312
- package/src/stack-ops.fake-binary.test.ts +0 -323
- package/src/stack-ops.test.ts +0 -511
- package/src/stack-ops.ts +0 -1082
- package/src/stack-outputs.ts +0 -66
- package/src/stack-references.test.ts +0 -96
- package/src/stack-references.ts +0 -110
- package/src/testdata/plunge-drift/README.md +0 -10
- package/src/testdata/plunge-drift/assets-drifted.ndjson +0 -3
- package/src/testdata/plunge-drift/component-unsupported.ndjson +0 -3
- package/src/testdata/plunge-drift/role-in-sync.ndjson +0 -3
- package/src/testdata/plunge-drift/settled-empty.ndjson +0 -2
- package/src/testdata/plunge-graph/Pulumi.yaml +0 -4
- package/src/testdata/plunge-graph/README.md +0 -12
- package/src/testdata/plunge-graph/engine-graph.json +0 -158
- package/src/testdata/plunge-graph/stack-export.json +0 -49
- package/src/testdata/plunge-member/Pulumi.yaml +0 -4
- package/src/testdata/plunge-member/README.md +0 -3
- package/src/testdata/plunge-member/stack-export.json +0 -480
- package/src/testdata/plunge-outputs/Pulumi.yaml +0 -9
- package/src/testdata/plunge-outputs/README.md +0 -7
- package/src/testdata/plunge-outputs/stack-export.json +0 -2003
- package/src/testdata/plunge-outputs/stack-output.json +0 -19
- package/src/testdata/pulumi-member/Pulumi.yaml +0 -2
- package/src/testdata/pulumi-member/README.md +0 -50
- package/src/testdata/pulumi-member/recording/Pulumi.dev.yaml +0 -19
- package/src/testdata/pulumi-member/recording/Pulumi.yaml +0 -7
- package/src/testdata/pulumi-member/recording/index.js +0 -47
- package/src/testdata/pulumi-member/recording/package-lock.json +0 -2707
- package/src/testdata/pulumi-member/recording/package.json +0 -9
- package/src/testdata/pulumi-member/stack-export.json +0 -746
- package/src/testdata/pulumi-outputs/Pulumi.yaml +0 -7
- package/src/testdata/pulumi-outputs/README.md +0 -9
- package/src/testdata/pulumi-outputs/preview-replaced.json +0 -2894
- package/src/testdata/pulumi-outputs/preview-settled.json +0 -2894
- package/src/testdata/pulumi-outputs/stack-export.json +0 -1919
- package/src/testdata/pulumi-outputs/stack-output.json +0 -19
- package/src/testdata/pulumi-preview/Pulumi.yaml +0 -7
- package/src/testdata/pulumi-preview/README.md +0 -9
- package/src/testdata/pulumi-preview/preview-create.json +0 -992
- package/src/testdata/pulumi-preview/preview.json +0 -2894
- package/src/testdata/pulumi-preview/stack-export.json +0 -1919
- package/src/testdata/pulumi-refresh/Pulumi.yaml +0 -7
- package/src/testdata/pulumi-refresh/README.md +0 -14
- package/src/testdata/pulumi-refresh/all.json +0 -3742
- package/src/testdata/pulumi-refresh/bucket-edited.json +0 -468
- package/src/testdata/pulumi-refresh/policy-deleted.json +0 -95
- package/src/testdata/pulumi-refresh/queue-edited.json +0 -250
- package/src/testdata/pulumi-refresh/role-same.json +0 -242
- package/src/testdata/pulumi-refresh/secret-edited.json +0 -247
- package/src/testdata/pulumi-refresh/stack-export.json +0 -1907
- package/src/testdata/pulumi-stream/README.md +0 -16
- package/src/testdata/pulumi-stream/preview-stream.ndjson +0 -42
- package/src/testdata/pulumi-stream/up-failed-plunge.ndjson +0 -5
- package/src/testdata/pulumi-unexported/Pulumi.yaml +0 -2
- package/src/testdata/pulumi-urn-node/Pulumi.yaml +0 -7
- package/src/testdata/pulumi-urn-node/README.md +0 -9
- package/src/testdata/pulumi-urn-node/preview.json +0 -2894
- package/src/testdata/pulumi-urn-node/stack-export.json +0 -1919
- package/src/trace-facts.test.ts +0 -38
- package/src/trace-facts.ts +0 -83
- package/src/values.ts +0 -147
- package/src/workspace-kinds.test.ts +0 -47
- package/src/workspace-member.test.ts +0 -127
- package/src/workspace-member.ts +0 -304
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"appRoleArn": "arn:aws:iam::000000000000:role/rec-pl-app",
|
|
3
|
-
"dbPasswordParameter": "/rec-pl/db-password",
|
|
4
|
-
"dbPasswordValue": "[secret]",
|
|
5
|
-
"docsBucketName": "rec-pl-docs-assets",
|
|
6
|
-
"docsTopicArn": "arn:aws:sns:us-east-1:000000000000:docs-notify-313a6f6",
|
|
7
|
-
"eventsQueueUrl": "https://sqs.us-east-1.amazonaws.com/000000000000/events-76012a7",
|
|
8
|
-
"securityGroupId": "sg-da81cce71ddba2dc7",
|
|
9
|
-
"siteBucketName": "rec-pl-site",
|
|
10
|
-
"sitePolicyBucket": "rec-pl-site",
|
|
11
|
-
"vpcId": "vpc-ba868f5b",
|
|
12
|
-
"vpcParameterName": "/rec-pl/vpc/vpc-ba868f5b",
|
|
13
|
-
"westAlertsArn": "arn:aws:sns:us-west-2:000000000000:rec-pl-alerts-west",
|
|
14
|
-
"workerQueueUrls": [
|
|
15
|
-
"https://sqs.us-east-1.amazonaws.com/000000000000/worker-0-c8f235a",
|
|
16
|
-
"https://sqs.us-east-1.amazonaws.com/000000000000/worker-1-312dbe7",
|
|
17
|
-
"https://sqs.us-east-1.amazonaws.com/000000000000/worker-2-34e8acf"
|
|
18
|
-
]
|
|
19
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
# pulumi-member
|
|
2
|
-
|
|
3
|
-
`stack-export.json` is the stdout of `plunge stack export` after one real `plunge up` of the program in
|
|
4
|
-
`recording/` (project `app`, stack `dev`), recorded on 2026-10-26 for INTENTIUS/chant#4507. Nobody edits it by
|
|
5
|
-
hand; re-record it with the commands below.
|
|
6
|
-
|
|
7
|
-
- Tool: plunge v0.1.0-dev.0 (pulumi-compatible v3.272.0), built from INTENTIUS/plunge `integration/engine-ship` at
|
|
8
|
-
d7653de7f5. The export's manifest says v3.272.0.
|
|
9
|
-
- Provider: pulumi-aws 7.51.1 (`@pulumi/aws` 7.51.1, `@pulumi/pulumi` 3.272.0; `recording/package-lock.json`).
|
|
10
|
-
- Emulator: floci, `ghcr.io/lex00/floci@sha256:5ec92ae8046445d62c0009590dd09f04560886e5a5ef31248cb3fcc09b2961ec`
|
|
11
|
-
(choudoufu `live/floci-image`), on localhost:4566. Nothing ran against AWS.
|
|
12
|
-
- Program: `recording/` at the chant commit that added this README. It is written for this fixture, not taken
|
|
13
|
-
from the plunge corpus.
|
|
14
|
-
|
|
15
|
-
The program declares an S3 bucket `assets`, an IAM role `web`, an IAM role policy `webReadsAssets` that reads
|
|
16
|
-
both (its policy is a secret, so the export holds it as ciphertext), and a `my:mod:Web` component `web-app` whose
|
|
17
|
-
child is a Lambda function `handler` (floci serves Lambda) that depends on the role. The physical names carry
|
|
18
|
-
the prefix `rec-r2-4507`. The program is JavaScript so chant's tsc, which includes all of `src/`, never compiles it.
|
|
19
|
-
|
|
20
|
-
The hand-written export this replaces also had `webReadsAssets` depend on a bucket `elsewhere` that was not in
|
|
21
|
-
the export. A real export cannot say that, so `workspace-member.test.ts` builds that case from a copy of this file.
|
|
22
|
-
|
|
23
|
-
`Pulumi.yaml` beside the export (no backend URL, so the member's engine is pulumi) is what the tests read; the
|
|
24
|
-
recorded program's own `Pulumi.yaml` is in `recording/`.
|
|
25
|
-
|
|
26
|
-
## Commands
|
|
27
|
-
|
|
28
|
-
Run from `recording/`, with no real AWS, Azure, GCP or Pulumi Cloud credentials in the environment
|
|
29
|
-
(`<scratch>` is an empty scratch directory, `<plunge-dir>` holds the plunge binary and its language hosts):
|
|
30
|
-
|
|
31
|
-
```sh
|
|
32
|
-
export AWS_ACCESS_KEY_ID=test AWS_SECRET_ACCESS_KEY=test AWS_REGION=us-east-1 AWS_DEFAULT_REGION=us-east-1
|
|
33
|
-
export PULUMI_CONFIG_PASSPHRASE=plunge-baseline PULUMI_SKIP_UPDATE_CHECK=true
|
|
34
|
-
export PLUNGE_CLOUDCONTROL_ENDPOINT=http://localhost:4566
|
|
35
|
-
export PULUMI_BACKEND_URL=plunge+file://<scratch>
|
|
36
|
-
export PATH=<plunge-dir>:$PATH
|
|
37
|
-
npm ci
|
|
38
|
-
plunge stack init dev --secrets-provider passphrase
|
|
39
|
-
plunge up --yes --stack dev
|
|
40
|
-
plunge stack export --stack dev > ../stack-export.json
|
|
41
|
-
plunge destroy --yes --stack dev
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
`Pulumi.dev.yaml` points every AWS endpoint the program uses at localhost:4566 and skips the credential, account
|
|
45
|
-
and region checks. `PLUNGE_CLOUDCONTROL_ENDPOINT` points plunge's own Cloud Control listing at floci too; without
|
|
46
|
-
it plunge sends its marker listing to AWS's Cloud Control endpoint.
|
|
47
|
-
|
|
48
|
-
`plunge up` printed one warning: the sweep reported the Lambda function
|
|
49
|
-
(`arn:aws:lambda:us-east-1:000000000000:function:rec-r2-4507-handler`) as an unrecorded marked object, though the
|
|
50
|
-
stack records it under the id `rec-r2-4507-handler`.
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
# Stack "dev": every AWS call goes to the floci emulator on localhost:4566,
|
|
2
|
-
# never to AWS. The fake key pair and the skip flags keep the provider off
|
|
3
|
-
# STS and the metadata API.
|
|
4
|
-
config:
|
|
5
|
-
aws:region: us-east-1
|
|
6
|
-
aws:accessKey: test
|
|
7
|
-
aws:secretKey: test
|
|
8
|
-
aws:skipCredentialsValidation: "true"
|
|
9
|
-
aws:skipRequestingAccountId: "true"
|
|
10
|
-
aws:skipRegionValidation: "true"
|
|
11
|
-
aws:skipMetadataApiCheck: "true"
|
|
12
|
-
aws:s3UsePathStyle: "true"
|
|
13
|
-
aws:endpoints:
|
|
14
|
-
- iam: http://localhost:4566
|
|
15
|
-
lambda: http://localhost:4566
|
|
16
|
-
s3: http://localhost:4566
|
|
17
|
-
sts: http://localhost:4566
|
|
18
|
-
app:prefix: rec-r2-4507
|
|
19
|
-
encryptionsalt: v1:Y/YWurRa9Mo=:v1:cjCIZyL6ibZHCdGz:txjo2VYqashu2EUZuQqkL5yY43jnvw==
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
// The program behind lexicons/pulumi/src/testdata/pulumi-member/stack-export.json
|
|
2
|
-
// (INTENTIUS/chant#4507). It is plain JavaScript so chant's tsc, which
|
|
3
|
-
// includes everything under src/, never compiles it. It runs against the
|
|
4
|
-
// floci emulator only; the README one directory up has the commands.
|
|
5
|
-
"use strict";
|
|
6
|
-
const pulumi = require("@pulumi/pulumi");
|
|
7
|
-
const aws = require("@pulumi/aws");
|
|
8
|
-
|
|
9
|
-
const prefix = new pulumi.Config("app").get("prefix") ?? "rec-r2-4507";
|
|
10
|
-
|
|
11
|
-
const assets = new aws.s3.Bucket("assets", { bucket: `${prefix}-assets` });
|
|
12
|
-
|
|
13
|
-
const web = new aws.iam.Role("web", {
|
|
14
|
-
name: `${prefix}-web`,
|
|
15
|
-
assumeRolePolicy: JSON.stringify({
|
|
16
|
-
Version: "2012-10-17",
|
|
17
|
-
Statement: [{ Effect: "Allow", Action: "sts:AssumeRole", Principal: { Service: "lambda.amazonaws.com" } }],
|
|
18
|
-
}),
|
|
19
|
-
});
|
|
20
|
-
|
|
21
|
-
// The policy is a secret, so the export carries it as ciphertext and the
|
|
22
|
-
// graph tests can check that inputs never reach a node.
|
|
23
|
-
new aws.iam.RolePolicy("webReadsAssets", {
|
|
24
|
-
role: web.id,
|
|
25
|
-
policy: pulumi.secret(pulumi.jsonStringify({
|
|
26
|
-
Version: "2012-10-17",
|
|
27
|
-
Statement: [{ Effect: "Allow", Action: ["s3:GetObject"], Resource: [pulumi.interpolate`${assets.arn}/*`] }],
|
|
28
|
-
})),
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
class Web extends pulumi.ComponentResource {
|
|
32
|
-
constructor(name, args, opts) {
|
|
33
|
-
super("my:mod:Web", name, {}, opts);
|
|
34
|
-
new aws.lambda.Function("handler", {
|
|
35
|
-
name: `${prefix}-handler`,
|
|
36
|
-
role: args.role.arn,
|
|
37
|
-
runtime: "nodejs20.x",
|
|
38
|
-
handler: "index.handler",
|
|
39
|
-
code: new pulumi.asset.AssetArchive({
|
|
40
|
-
"index.js": new pulumi.asset.StringAsset("exports.handler = async () => ({ statusCode: 200 });\n"),
|
|
41
|
-
}),
|
|
42
|
-
}, { parent: this });
|
|
43
|
-
this.registerOutputs({});
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
new Web("web-app", { role: web });
|