pulumi/pkg/backend
Pat Gavlin 4d3b82cb9f
[cli] Add support for environments (#14140)
These changes add support for ESC environments to the Pulumi CLI. This
involves two major changes:

- Support for the `env` subcommand
- Support for the `environment` stanza in stack config files

The former reuses the command from `esc` itself with a little
rebranding.

The latter adds support to stack config files for an `environment`
property of the form:

```yaml
environment:
  - list
  - of
  - environment
  - names
```

If this property is present in a stack's config file, the CLI will open
the and merge the listed environments during `pulumi up` et. al. If an
object-valued `pulumiConfig` property is present in the opened
environment, its values will be merged on top of the stack's config
prior to whatever operation is to be performed. If an object-valued
`environmentVariables` property is present inthe opened environment, its
values will be published as environment variables prior to the Pulumi
operation. Any values in the open environment's `pulumiConfig` or
`environmentVariables` that are marked as secret will be encrypted in
the resulting config and will be filtered from the command's logs.
2023-10-10 01:35:39 +00:00
..
display Policy remediations feature (#14080) 2023-10-09 18:31:17 +00:00
filestate Add SelfManaged env vars (#14015) 2023-09-25 14:07:46 +00:00
httpstate [cli] Add support for environments (#14140) 2023-10-10 01:35:39 +00:00
state [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
apply.go Policy remediations feature (#14080) 2023-10-09 18:31:17 +00:00
apply_test.go Move sdk/go/common/display to /pkg/display (#13954) 2023-09-18 11:01:28 +00:00
backend.go [cli] Add support for environments (#14140) 2023-10-10 01:35:39 +00:00
backend_test.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
cancellation_scope.go Move cancellation_scope to backend 2023-05-09 13:01:42 +01:00
doc.go Document Go packages (#6009) 2021-01-11 11:07:59 -07:00
errors.go Add a link to docs for the 409 Conflict error message (#3207) 2019-09-10 13:25:08 -07:00
mock.go [cli] Add support for environments (#14140) 2023-10-10 01:35:39 +00:00
policypack.go [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
query.go Replace result.Result in Query with error (#13939) 2023-09-20 15:43:46 +00:00
snapshot.go Remove boolean var that was always true (#13991) 2023-09-20 06:01:58 +00:00
snapshot_test.go Move SecretsManager from SnapshotPersister to SnapshotManager (#13976) 2023-09-19 18:31:56 +00:00
stack.go Move sdk/go/common/display to /pkg/display (#13954) 2023-09-18 11:01:28 +00:00
updates.go Move sdk/go/common/display to /pkg/display (#13954) 2023-09-18 11:01:28 +00:00
watch.go Don't pass a second SecretsProvider to backend.Watch 2023-05-08 20:38:40 +01:00