pulumi/pkg/backend/httpstate
Joe Duffy dcb92a284a Add --esc-config flag to pulumi new
This change adds a flag to the `pulumi new` command, --esc-config,
which redirects all standard `pulumi config` commands to use ESC
rather than the typical stack config file behavior. This is just a
prototype and does some magic with respect to the naming convention
for environments as they relate to stacks, rather than storing some
metadata on the stack itself. It also immediately performs any
configuration changes via ESC, unlike the standard configuration
model whereby config changes are "staged" until the next `pulumi up`
and commit of the resulting stack YAML file into source control.

I also had the idea to create a hierarchy of environments when this
command is used: one org-wide one, then a project-wide one, and then
one per stack, each with the obvious parent/child relationship.
I didn't get to that just yet and it may very well be too much magic.

Nevertheless, this change achieves the very basic desired result of
making ESC back any and all configuration and secrets changes while
using the current CLI nouns and verbs as-is. (Note: I think there's
a bug with respect to secrets decryption...)
2024-05-14 20:50:57 -07:00
..
client allow retries for encrypt/decrypt API calls (#15600) 2024-03-06 08:35:36 +00:00
testdata [snapshot] Use a newer diff package 2023-05-16 12:33:30 -07:00
backend.go Fix nil pointer dereference in pulumi new --ai (#15861) 2024-04-04 15:26:09 +00:00
backend_test.go Support always qualifying stack names (#11081) (#15857) 2024-04-04 10:11:46 +00:00
console.go Add support for a PULUMI_CONSOLE_DOMAIN env var (#4410) 2020-04-17 11:50:00 -07:00
console_test.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
diffs.go Clean up uses of .Error() (#14965) 2023-12-20 15:54:06 +00:00
diffs_post_1.20.go Clean up uses of .Error() (#14965) 2023-12-20 15:54:06 +00:00
diffs_pre_1.20.go [snapshot] Use a newer diff package 2023-05-16 12:33:30 -07:00
doc.go Document Go packages (#6009) 2021-01-11 11:07:59 -07:00
environments.go Add --esc-config flag to pulumi new 2024-05-14 20:50:57 -07:00
mock.go Pass in a header to indicate where the deployment initiated (#15468) 2024-02-20 04:00:01 +00:00
policypack.go improve display for policy packs (#15186) 2024-01-19 13:40:24 +00:00
snapshot.go Always use the snapshot secret manager (#15768) 2024-03-25 10:30:14 +00:00
snapshot_test.go Always use the snapshot secret manager (#15768) 2024-03-25 10:30:14 +00:00
stack.go Support always qualifying stack names (#11081) (#15857) 2024-04-04 10:11:46 +00:00
state.go Exclude internal events from those sent to the service (#14972) 2023-12-21 00:13:04 +00:00
token_source.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
token_source_test.go Use context.Background in tests (#14029) 2023-09-25 12:25:26 +00:00