Comments (1)
FWIW, there is a workaround, which is to wrap the automation api call with a set/unset
os.Setenv("PULUMI_ACCESS_TOKEN", {user's access token})
s, err := auto.UpsertRemoteStackGitSource(ctx,
stackName,
auto.GitRepo{},
auto.RemoteInheritSettings(true),
auto.RemoteEnvVars(map[string]auto.EnvVarValue{
"PULUMI_ACCESS_TOKEN": {Value: os.Getenv("PULUMI_ACCESS_TOKEN"), Secret: true},
}))
os.Unsetenv("PULUMI_ACCESS_TOKEN")
But this can be tricky if the server is processing multiple requests simultaneously since env vars are set globally.
from pulumi.
Related Issues (20)
- Support stateful defaults application for Component Resources HOT 1
- Consider advanced Node JS combinators that opt out of Unwrap HOT 1
- Add a `-env` flag to `refresh`, `preview`, `update`, and `destroy` (and maybe others)
- Unable to use local go SDK HOT 2
- Unable to run `pulumi package add` without pinning a Pulumi version for TS HOT 2
- Add `pulumi state move` to automation api
- pulumi stack change-secrets-provider not working when using KMS provider in conjunction with an ARN for the key HOT 2
- Support `Call` methods on the Provider resource
- Diffs may render in an inconsistent order
- Support `uv` as package manager for Python projects
- pulumi config set should allow map keys with colons : / way to escape colon HOT 2
- Python codegen panics when a resource is called `provider` HOT 2
- Refresh Command Uses Profile Stored in the Stack, Ignoring Values in Pulumi YAML Config File, Leading to Potential Resource Deletion from Stack HOT 1
- Strange error messages when performing `pulumi up` or `pulumi preview` HOT 6
- Python Dynamic Provider in a separate file does not support consuming config
- Following the instructions specified via `pulumi package add` for Go doesn't work HOT 2
- Support `pulumi package add` for arbitrary providers
- Warn when `pulumi package add` is used on non-`terraform-provider` providers
- Engine support for extension parameterization HOT 1
- dotnet codegen fails to generate input/output types when module name is "config" and config keys exist HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pulumi.