Comments (3)
Can you share the full code snippet that's causing the error? require()
will return a plain type like string
where require_secret
will return that same type wrapped in an Output
. Outputs contain information about secretness that the pulumi engine can propagate across the RPC boundary. If you try to serialize an output (json.dumps) you might see an error like this.
from pulumi-hugo.
Ah understood, thanks. The docs don't make that clear at all IMO:
print(config.require('name'))
print(config.require_secret('dbPassword'))
In this example, we have read back the name and dbPassword configuration variables programmatically. The name is just the string BroomeLLC, while the dbPassword is a secret output value that is encrypted.
Sounds wrong?
from pulumi-hugo.
Yeah, any ouputs need to be printed within an Apply() call. I've updated the title to reflect the issue.
from pulumi-hugo.
Related Issues (20)
- Blog post on Go generics preview HOT 1
- Blog post and docs updates on importing from tfstate HOT 1
- Update What is Infrastructure As Code article HOT 2
- poor navigation experience in the docs concept section HOT 3
- Get Started with Kubernetes go example fails HOT 1
- Identify larger assets and move them to the uploads bucket
- Update home page title HOT 1
- Docs on configuring policies has a code bug
- Go instructions for ECS do not compile HOT 4
- The code example is possibly outdated HOT 3
- Download & Install Pulumi ESC: "other installation methods" and "installation script" repeat once for every OS in nav HOT 3
- `brew update` is missing from ESC installation docs
- ESC CLI Login references pulumi login HOT 2
- Content Enhancement - Add Pulumi-AWS OIDC Example for Pulumi ESC
- Keycloak link in docs points to wrong URL
- ESC installation table of contents has repeated elements HOT 2
- Update .NET documentation to remove v3.1 and v5 reference, add v7. HOT 2
- Workflow failure: Scheduled Jobs: Upgrade Examples HOT 1
- Workflow failure: Scheduled Jobs: Run Tests
- Workflow failure: Scheduled Jobs: Upgrade Examples 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-hugo.