Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

350 lines
9.1 KiB
Markdown
Raw Permalink Normal View History

Launch Learn (#552) * adds initial pass at pulumi in operations learn module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updating pulumi in operations with meta images and minor index updates Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds policy as code * initial add of pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add draft for pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix draft status on tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Initial commit for pulumi fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add fundamentals starting point * feat(fundamentals): update all content with more learning content and patch things to be clearer * fix(fundamentals): patch up issues with export doc in other docs * fix(fundamentals): patch up fundamentals to match fix to proxy in code * feat(clouds): add new modules for fundamentals * feat(images): add images for fundamentals * Add learn index page diagram and description * Add modules section title * feat(learn meta): update images and metadata for learn now that everything is merged * feat(learn layout): update learn layout * fix(langfile): patch the python part to show dunders * feat(learn): add more updates to learn to smooth the pathways * Some updates for pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix typo in new project for fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add the aws tutorials and work on the others * add testing module Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add more testing stuff Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Scaffold azure fundamentals tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add more for aws and add gcp starters * feat(learn): add the lang features module stubs and patch up a bit * WIP azure tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * removes source control, adds references to boba shop app Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images, congratulations Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images to webhooks module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates image links, flavor text Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates pulumi operations index Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * Update pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update with secrets Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update secrets topic Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add back the meta for azure and update docs with aws * feat(fundamentals): add cleanup * fix(links): patch the links for the access tokens for Pulumi * fix(feedback): incorporate any remaining feedback from Lee Z. and Aaron for Fundamentals * fix(envvar): add the env var call for the patch to the tutorial app * fix(practice): update metadata, fix links, and clean up text in Practice * fix(fixup): forgot to save the last one; small fixup * update diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * fix(wording): update wording per feedback * fix(wording): update wording in practice based on feedback * fix(naming): fix the name in the layout * some tweaks to diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * Change learn nav items (#679) * fix(tests): start fixing the tests tutorial * fix(ops): run initial pass through ops to do some more cleanup after reviews * feat(cloud): remove cloud fundamentals from this branch for later updates * fix(webhooks): update webhooks to start adding boba shop * fix(testing): work on testing file * feat(webhooks): add more content to the webhooks Learn module and tie into boba shop * fix(cicd): fix the ci/cd module since we can't get the boba shop in there right now * fix(accesscontrol): fix up access control to make it clearer about the boba shop app * fix(pac): fix up the policy-as-code to add the tea shop and clean up the examples * fix(link): patch link in practice ending * fix(learn-ops): remove operations per review (bumping to another branch for later) * fix(testing): rewrite testing unit to be less generic * fix(chooser): fix the chooser for the python test examples in Learn * fix(cleanup): clean up the images and rename based on feedback and reviews with only two pathways * fix(wording): patch wording based on missed review * fix(image): hide learn pathway image for now until more pathways are built * fix(menu): patch the menu order to match the current one * fix(css): call class .card instead of .learn-card * feat(feedback): add feedback widget (interim) to Learn * fix(glossary): move glossary links everywhere to footnotes * Update themes/default/content/learn/building-with-pulumi/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * revert(clean): accidental add of a collision * fix(bots): fix bots call on index * fix(rename): rename topics to tutorials in layouts * fix(review): update based on review (initial run-through; more coming) * fix(consistency): update wording to be consistent * fix(lint): fix linting errors * revert(conflict): revert accidental add of conflicted file * fix(lint): fix lint errors re metadata length * Update themes/default/content/learn/pulumi-fundamentals/create-docker-images/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(review): update to match review suggestions * fix(review): finish updating based on review suggestions * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(derp): add missing quotation mark Co-authored-by: Kat Cosgrove <kat.cosgrove@gmail.com> Co-authored-by: Laura Santamaria <laura@nimbinatus.com> Co-authored-by: Zack Chase <zachary@pulumi.com> Co-authored-by: susanev <susan.ra.evans@gmail.com> Co-authored-by: Christian Nunciato <c@nunciato.org>
2021-11-08 16:04:20 -06:00
---
2023-03-14 11:25:48 -07:00
title_tag: Understanding Stack Outputs | Learn Pulumi
Launch Learn (#552) * adds initial pass at pulumi in operations learn module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updating pulumi in operations with meta images and minor index updates Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds policy as code * initial add of pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add draft for pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix draft status on tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Initial commit for pulumi fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add fundamentals starting point * feat(fundamentals): update all content with more learning content and patch things to be clearer * fix(fundamentals): patch up issues with export doc in other docs * fix(fundamentals): patch up fundamentals to match fix to proxy in code * feat(clouds): add new modules for fundamentals * feat(images): add images for fundamentals * Add learn index page diagram and description * Add modules section title * feat(learn meta): update images and metadata for learn now that everything is merged * feat(learn layout): update learn layout * fix(langfile): patch the python part to show dunders * feat(learn): add more updates to learn to smooth the pathways * Some updates for pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix typo in new project for fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add the aws tutorials and work on the others * add testing module Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add more testing stuff Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Scaffold azure fundamentals tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add more for aws and add gcp starters * feat(learn): add the lang features module stubs and patch up a bit * WIP azure tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * removes source control, adds references to boba shop app Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images, congratulations Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images to webhooks module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates image links, flavor text Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates pulumi operations index Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * Update pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update with secrets Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update secrets topic Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add back the meta for azure and update docs with aws * feat(fundamentals): add cleanup * fix(links): patch the links for the access tokens for Pulumi * fix(feedback): incorporate any remaining feedback from Lee Z. and Aaron for Fundamentals * fix(envvar): add the env var call for the patch to the tutorial app * fix(practice): update metadata, fix links, and clean up text in Practice * fix(fixup): forgot to save the last one; small fixup * update diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * fix(wording): update wording per feedback * fix(wording): update wording in practice based on feedback * fix(naming): fix the name in the layout * some tweaks to diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * Change learn nav items (#679) * fix(tests): start fixing the tests tutorial * fix(ops): run initial pass through ops to do some more cleanup after reviews * feat(cloud): remove cloud fundamentals from this branch for later updates * fix(webhooks): update webhooks to start adding boba shop * fix(testing): work on testing file * feat(webhooks): add more content to the webhooks Learn module and tie into boba shop * fix(cicd): fix the ci/cd module since we can't get the boba shop in there right now * fix(accesscontrol): fix up access control to make it clearer about the boba shop app * fix(pac): fix up the policy-as-code to add the tea shop and clean up the examples * fix(link): patch link in practice ending * fix(learn-ops): remove operations per review (bumping to another branch for later) * fix(testing): rewrite testing unit to be less generic * fix(chooser): fix the chooser for the python test examples in Learn * fix(cleanup): clean up the images and rename based on feedback and reviews with only two pathways * fix(wording): patch wording based on missed review * fix(image): hide learn pathway image for now until more pathways are built * fix(menu): patch the menu order to match the current one * fix(css): call class .card instead of .learn-card * feat(feedback): add feedback widget (interim) to Learn * fix(glossary): move glossary links everywhere to footnotes * Update themes/default/content/learn/building-with-pulumi/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * revert(clean): accidental add of a collision * fix(bots): fix bots call on index * fix(rename): rename topics to tutorials in layouts * fix(review): update based on review (initial run-through; more coming) * fix(consistency): update wording to be consistent * fix(lint): fix linting errors * revert(conflict): revert accidental add of conflicted file * fix(lint): fix lint errors re metadata length * Update themes/default/content/learn/pulumi-fundamentals/create-docker-images/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(review): update to match review suggestions * fix(review): finish updating based on review suggestions * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(derp): add missing quotation mark Co-authored-by: Kat Cosgrove <kat.cosgrove@gmail.com> Co-authored-by: Laura Santamaria <laura@nimbinatus.com> Co-authored-by: Zack Chase <zachary@pulumi.com> Co-authored-by: susanev <susan.ra.evans@gmail.com> Co-authored-by: Christian Nunciato <c@nunciato.org>
2021-11-08 16:04:20 -06:00
title: "Understanding Stack Outputs"
layout: topic
date: 2021-09-20T08:33:26-05:00
draft: false
description: Learn how to share values from a stack to other places.
2023-03-14 11:25:48 -07:00
meta_desc: Learn what stack outputs are, how to retrieve stack outputs using the Pulumi CLI, and how to configure a stack in this tutorial.
Launch Learn (#552) * adds initial pass at pulumi in operations learn module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updating pulumi in operations with meta images and minor index updates Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds policy as code * initial add of pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add draft for pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix draft status on tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Initial commit for pulumi fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add fundamentals starting point * feat(fundamentals): update all content with more learning content and patch things to be clearer * fix(fundamentals): patch up issues with export doc in other docs * fix(fundamentals): patch up fundamentals to match fix to proxy in code * feat(clouds): add new modules for fundamentals * feat(images): add images for fundamentals * Add learn index page diagram and description * Add modules section title * feat(learn meta): update images and metadata for learn now that everything is merged * feat(learn layout): update learn layout * fix(langfile): patch the python part to show dunders * feat(learn): add more updates to learn to smooth the pathways * Some updates for pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix typo in new project for fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add the aws tutorials and work on the others * add testing module Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add more testing stuff Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Scaffold azure fundamentals tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add more for aws and add gcp starters * feat(learn): add the lang features module stubs and patch up a bit * WIP azure tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * removes source control, adds references to boba shop app Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images, congratulations Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images to webhooks module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates image links, flavor text Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates pulumi operations index Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * Update pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update with secrets Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update secrets topic Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add back the meta for azure and update docs with aws * feat(fundamentals): add cleanup * fix(links): patch the links for the access tokens for Pulumi * fix(feedback): incorporate any remaining feedback from Lee Z. and Aaron for Fundamentals * fix(envvar): add the env var call for the patch to the tutorial app * fix(practice): update metadata, fix links, and clean up text in Practice * fix(fixup): forgot to save the last one; small fixup * update diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * fix(wording): update wording per feedback * fix(wording): update wording in practice based on feedback * fix(naming): fix the name in the layout * some tweaks to diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * Change learn nav items (#679) * fix(tests): start fixing the tests tutorial * fix(ops): run initial pass through ops to do some more cleanup after reviews * feat(cloud): remove cloud fundamentals from this branch for later updates * fix(webhooks): update webhooks to start adding boba shop * fix(testing): work on testing file * feat(webhooks): add more content to the webhooks Learn module and tie into boba shop * fix(cicd): fix the ci/cd module since we can't get the boba shop in there right now * fix(accesscontrol): fix up access control to make it clearer about the boba shop app * fix(pac): fix up the policy-as-code to add the tea shop and clean up the examples * fix(link): patch link in practice ending * fix(learn-ops): remove operations per review (bumping to another branch for later) * fix(testing): rewrite testing unit to be less generic * fix(chooser): fix the chooser for the python test examples in Learn * fix(cleanup): clean up the images and rename based on feedback and reviews with only two pathways * fix(wording): patch wording based on missed review * fix(image): hide learn pathway image for now until more pathways are built * fix(menu): patch the menu order to match the current one * fix(css): call class .card instead of .learn-card * feat(feedback): add feedback widget (interim) to Learn * fix(glossary): move glossary links everywhere to footnotes * Update themes/default/content/learn/building-with-pulumi/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * revert(clean): accidental add of a collision * fix(bots): fix bots call on index * fix(rename): rename topics to tutorials in layouts * fix(review): update based on review (initial run-through; more coming) * fix(consistency): update wording to be consistent * fix(lint): fix linting errors * revert(conflict): revert accidental add of conflicted file * fix(lint): fix lint errors re metadata length * Update themes/default/content/learn/pulumi-fundamentals/create-docker-images/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(review): update to match review suggestions * fix(review): finish updating based on review suggestions * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(derp): add missing quotation mark Co-authored-by: Kat Cosgrove <kat.cosgrove@gmail.com> Co-authored-by: Laura Santamaria <laura@nimbinatus.com> Co-authored-by: Zack Chase <zachary@pulumi.com> Co-authored-by: susanev <susan.ra.evans@gmail.com> Co-authored-by: Christian Nunciato <c@nunciato.org>
2021-11-08 16:04:20 -06:00
index: 2
estimated_time: 10
meta_image: meta.png
authors:
- matt-stratton
---
We've created some resources. Now, let's see how we can use outputs outside of
Pulumi. In this part, we're going to explore _stack outputs_. Stack outputs
are, as you might guess, the values exported from any given stack. These values
are shown during an update, can be retrieved with the Pulumi CLI, and are
displayed in the [Pulumi Service](https://app.pulumi.com) once you've exported
Launch Learn (#552) * adds initial pass at pulumi in operations learn module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updating pulumi in operations with meta images and minor index updates Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds policy as code * initial add of pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add draft for pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix draft status on tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Initial commit for pulumi fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add fundamentals starting point * feat(fundamentals): update all content with more learning content and patch things to be clearer * fix(fundamentals): patch up issues with export doc in other docs * fix(fundamentals): patch up fundamentals to match fix to proxy in code * feat(clouds): add new modules for fundamentals * feat(images): add images for fundamentals * Add learn index page diagram and description * Add modules section title * feat(learn meta): update images and metadata for learn now that everything is merged * feat(learn layout): update learn layout * fix(langfile): patch the python part to show dunders * feat(learn): add more updates to learn to smooth the pathways * Some updates for pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix typo in new project for fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add the aws tutorials and work on the others * add testing module Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add more testing stuff Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Scaffold azure fundamentals tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add more for aws and add gcp starters * feat(learn): add the lang features module stubs and patch up a bit * WIP azure tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * removes source control, adds references to boba shop app Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images, congratulations Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images to webhooks module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates image links, flavor text Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates pulumi operations index Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * Update pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update with secrets Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update secrets topic Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add back the meta for azure and update docs with aws * feat(fundamentals): add cleanup * fix(links): patch the links for the access tokens for Pulumi * fix(feedback): incorporate any remaining feedback from Lee Z. and Aaron for Fundamentals * fix(envvar): add the env var call for the patch to the tutorial app * fix(practice): update metadata, fix links, and clean up text in Practice * fix(fixup): forgot to save the last one; small fixup * update diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * fix(wording): update wording per feedback * fix(wording): update wording in practice based on feedback * fix(naming): fix the name in the layout * some tweaks to diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * Change learn nav items (#679) * fix(tests): start fixing the tests tutorial * fix(ops): run initial pass through ops to do some more cleanup after reviews * feat(cloud): remove cloud fundamentals from this branch for later updates * fix(webhooks): update webhooks to start adding boba shop * fix(testing): work on testing file * feat(webhooks): add more content to the webhooks Learn module and tie into boba shop * fix(cicd): fix the ci/cd module since we can't get the boba shop in there right now * fix(accesscontrol): fix up access control to make it clearer about the boba shop app * fix(pac): fix up the policy-as-code to add the tea shop and clean up the examples * fix(link): patch link in practice ending * fix(learn-ops): remove operations per review (bumping to another branch for later) * fix(testing): rewrite testing unit to be less generic * fix(chooser): fix the chooser for the python test examples in Learn * fix(cleanup): clean up the images and rename based on feedback and reviews with only two pathways * fix(wording): patch wording based on missed review * fix(image): hide learn pathway image for now until more pathways are built * fix(menu): patch the menu order to match the current one * fix(css): call class .card instead of .learn-card * feat(feedback): add feedback widget (interim) to Learn * fix(glossary): move glossary links everywhere to footnotes * Update themes/default/content/learn/building-with-pulumi/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * revert(clean): accidental add of a collision * fix(bots): fix bots call on index * fix(rename): rename topics to tutorials in layouts * fix(review): update based on review (initial run-through; more coming) * fix(consistency): update wording to be consistent * fix(lint): fix linting errors * revert(conflict): revert accidental add of conflicted file * fix(lint): fix lint errors re metadata length * Update themes/default/content/learn/pulumi-fundamentals/create-docker-images/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(review): update to match review suggestions * fix(review): finish updating based on review suggestions * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(derp): add missing quotation mark Co-authored-by: Kat Cosgrove <kat.cosgrove@gmail.com> Co-authored-by: Laura Santamaria <laura@nimbinatus.com> Co-authored-by: Zack Chase <zachary@pulumi.com> Co-authored-by: susanev <susan.ra.evans@gmail.com> Co-authored-by: Christian Nunciato <c@nunciato.org>
2021-11-08 16:04:20 -06:00
them. Example values include resource IDs, computed IP addresses, and DNS names.
They're extremely useful when you want to run commands with the CLI that
reference those values. Note, though, that stack outputs are for the current
stack only. If you want to get values from another stack, you want to use stack
references, which bridge different stacks through inter-stack dependencies.
Typically, you will pass some value from your resources into the output, but to
illustrate how stack outputs work, we will set some stack outputs manually:
At the end of the {{< langfile >}} file of `my-first-app`, add the following line:
Launch Learn (#552) * adds initial pass at pulumi in operations learn module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updating pulumi in operations with meta images and minor index updates Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds policy as code * initial add of pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add draft for pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix draft status on tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Initial commit for pulumi fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add fundamentals starting point * feat(fundamentals): update all content with more learning content and patch things to be clearer * fix(fundamentals): patch up issues with export doc in other docs * fix(fundamentals): patch up fundamentals to match fix to proxy in code * feat(clouds): add new modules for fundamentals * feat(images): add images for fundamentals * Add learn index page diagram and description * Add modules section title * feat(learn meta): update images and metadata for learn now that everything is merged * feat(learn layout): update learn layout * fix(langfile): patch the python part to show dunders * feat(learn): add more updates to learn to smooth the pathways * Some updates for pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix typo in new project for fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add the aws tutorials and work on the others * add testing module Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add more testing stuff Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Scaffold azure fundamentals tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add more for aws and add gcp starters * feat(learn): add the lang features module stubs and patch up a bit * WIP azure tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * removes source control, adds references to boba shop app Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images, congratulations Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images to webhooks module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates image links, flavor text Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates pulumi operations index Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * Update pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update with secrets Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update secrets topic Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add back the meta for azure and update docs with aws * feat(fundamentals): add cleanup * fix(links): patch the links for the access tokens for Pulumi * fix(feedback): incorporate any remaining feedback from Lee Z. and Aaron for Fundamentals * fix(envvar): add the env var call for the patch to the tutorial app * fix(practice): update metadata, fix links, and clean up text in Practice * fix(fixup): forgot to save the last one; small fixup * update diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * fix(wording): update wording per feedback * fix(wording): update wording in practice based on feedback * fix(naming): fix the name in the layout * some tweaks to diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * Change learn nav items (#679) * fix(tests): start fixing the tests tutorial * fix(ops): run initial pass through ops to do some more cleanup after reviews * feat(cloud): remove cloud fundamentals from this branch for later updates * fix(webhooks): update webhooks to start adding boba shop * fix(testing): work on testing file * feat(webhooks): add more content to the webhooks Learn module and tie into boba shop * fix(cicd): fix the ci/cd module since we can't get the boba shop in there right now * fix(accesscontrol): fix up access control to make it clearer about the boba shop app * fix(pac): fix up the policy-as-code to add the tea shop and clean up the examples * fix(link): patch link in practice ending * fix(learn-ops): remove operations per review (bumping to another branch for later) * fix(testing): rewrite testing unit to be less generic * fix(chooser): fix the chooser for the python test examples in Learn * fix(cleanup): clean up the images and rename based on feedback and reviews with only two pathways * fix(wording): patch wording based on missed review * fix(image): hide learn pathway image for now until more pathways are built * fix(menu): patch the menu order to match the current one * fix(css): call class .card instead of .learn-card * feat(feedback): add feedback widget (interim) to Learn * fix(glossary): move glossary links everywhere to footnotes * Update themes/default/content/learn/building-with-pulumi/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * revert(clean): accidental add of a collision * fix(bots): fix bots call on index * fix(rename): rename topics to tutorials in layouts * fix(review): update based on review (initial run-through; more coming) * fix(consistency): update wording to be consistent * fix(lint): fix linting errors * revert(conflict): revert accidental add of conflicted file * fix(lint): fix lint errors re metadata length * Update themes/default/content/learn/pulumi-fundamentals/create-docker-images/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(review): update to match review suggestions * fix(review): finish updating based on review suggestions * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(derp): add missing quotation mark Co-authored-by: Kat Cosgrove <kat.cosgrove@gmail.com> Co-authored-by: Laura Santamaria <laura@nimbinatus.com> Co-authored-by: Zack Chase <zachary@pulumi.com> Co-authored-by: susanev <susan.ra.evans@gmail.com> Co-authored-by: Christian Nunciato <c@nunciato.org>
2021-11-08 16:04:20 -06:00
{{< chooser language "typescript,python,go,csharp,yaml" / >}}
Launch Learn (#552) * adds initial pass at pulumi in operations learn module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updating pulumi in operations with meta images and minor index updates Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds policy as code * initial add of pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add draft for pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix draft status on tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Initial commit for pulumi fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add fundamentals starting point * feat(fundamentals): update all content with more learning content and patch things to be clearer * fix(fundamentals): patch up issues with export doc in other docs * fix(fundamentals): patch up fundamentals to match fix to proxy in code * feat(clouds): add new modules for fundamentals * feat(images): add images for fundamentals * Add learn index page diagram and description * Add modules section title * feat(learn meta): update images and metadata for learn now that everything is merged * feat(learn layout): update learn layout * fix(langfile): patch the python part to show dunders * feat(learn): add more updates to learn to smooth the pathways * Some updates for pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix typo in new project for fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add the aws tutorials and work on the others * add testing module Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add more testing stuff Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Scaffold azure fundamentals tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add more for aws and add gcp starters * feat(learn): add the lang features module stubs and patch up a bit * WIP azure tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * removes source control, adds references to boba shop app Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images, congratulations Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images to webhooks module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates image links, flavor text Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates pulumi operations index Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * Update pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update with secrets Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update secrets topic Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add back the meta for azure and update docs with aws * feat(fundamentals): add cleanup * fix(links): patch the links for the access tokens for Pulumi * fix(feedback): incorporate any remaining feedback from Lee Z. and Aaron for Fundamentals * fix(envvar): add the env var call for the patch to the tutorial app * fix(practice): update metadata, fix links, and clean up text in Practice * fix(fixup): forgot to save the last one; small fixup * update diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * fix(wording): update wording per feedback * fix(wording): update wording in practice based on feedback * fix(naming): fix the name in the layout * some tweaks to diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * Change learn nav items (#679) * fix(tests): start fixing the tests tutorial * fix(ops): run initial pass through ops to do some more cleanup after reviews * feat(cloud): remove cloud fundamentals from this branch for later updates * fix(webhooks): update webhooks to start adding boba shop * fix(testing): work on testing file * feat(webhooks): add more content to the webhooks Learn module and tie into boba shop * fix(cicd): fix the ci/cd module since we can't get the boba shop in there right now * fix(accesscontrol): fix up access control to make it clearer about the boba shop app * fix(pac): fix up the policy-as-code to add the tea shop and clean up the examples * fix(link): patch link in practice ending * fix(learn-ops): remove operations per review (bumping to another branch for later) * fix(testing): rewrite testing unit to be less generic * fix(chooser): fix the chooser for the python test examples in Learn * fix(cleanup): clean up the images and rename based on feedback and reviews with only two pathways * fix(wording): patch wording based on missed review * fix(image): hide learn pathway image for now until more pathways are built * fix(menu): patch the menu order to match the current one * fix(css): call class .card instead of .learn-card * feat(feedback): add feedback widget (interim) to Learn * fix(glossary): move glossary links everywhere to footnotes * Update themes/default/content/learn/building-with-pulumi/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * revert(clean): accidental add of a collision * fix(bots): fix bots call on index * fix(rename): rename topics to tutorials in layouts * fix(review): update based on review (initial run-through; more coming) * fix(consistency): update wording to be consistent * fix(lint): fix linting errors * revert(conflict): revert accidental add of conflicted file * fix(lint): fix lint errors re metadata length * Update themes/default/content/learn/pulumi-fundamentals/create-docker-images/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(review): update to match review suggestions * fix(review): finish updating based on review suggestions * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(derp): add missing quotation mark Co-authored-by: Kat Cosgrove <kat.cosgrove@gmail.com> Co-authored-by: Laura Santamaria <laura@nimbinatus.com> Co-authored-by: Zack Chase <zachary@pulumi.com> Co-authored-by: susanev <susan.ra.evans@gmail.com> Co-authored-by: Christian Nunciato <c@nunciato.org>
2021-11-08 16:04:20 -06:00
{{% choosable language typescript %}}
```typescript
export const url = pulumi.interpolate`http://localhost:${frontendPort}`;
Launch Learn (#552) * adds initial pass at pulumi in operations learn module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updating pulumi in operations with meta images and minor index updates Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds policy as code * initial add of pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add draft for pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix draft status on tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Initial commit for pulumi fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add fundamentals starting point * feat(fundamentals): update all content with more learning content and patch things to be clearer * fix(fundamentals): patch up issues with export doc in other docs * fix(fundamentals): patch up fundamentals to match fix to proxy in code * feat(clouds): add new modules for fundamentals * feat(images): add images for fundamentals * Add learn index page diagram and description * Add modules section title * feat(learn meta): update images and metadata for learn now that everything is merged * feat(learn layout): update learn layout * fix(langfile): patch the python part to show dunders * feat(learn): add more updates to learn to smooth the pathways * Some updates for pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix typo in new project for fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add the aws tutorials and work on the others * add testing module Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add more testing stuff Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Scaffold azure fundamentals tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add more for aws and add gcp starters * feat(learn): add the lang features module stubs and patch up a bit * WIP azure tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * removes source control, adds references to boba shop app Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images, congratulations Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images to webhooks module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates image links, flavor text Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates pulumi operations index Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * Update pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update with secrets Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update secrets topic Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add back the meta for azure and update docs with aws * feat(fundamentals): add cleanup * fix(links): patch the links for the access tokens for Pulumi * fix(feedback): incorporate any remaining feedback from Lee Z. and Aaron for Fundamentals * fix(envvar): add the env var call for the patch to the tutorial app * fix(practice): update metadata, fix links, and clean up text in Practice * fix(fixup): forgot to save the last one; small fixup * update diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * fix(wording): update wording per feedback * fix(wording): update wording in practice based on feedback * fix(naming): fix the name in the layout * some tweaks to diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * Change learn nav items (#679) * fix(tests): start fixing the tests tutorial * fix(ops): run initial pass through ops to do some more cleanup after reviews * feat(cloud): remove cloud fundamentals from this branch for later updates * fix(webhooks): update webhooks to start adding boba shop * fix(testing): work on testing file * feat(webhooks): add more content to the webhooks Learn module and tie into boba shop * fix(cicd): fix the ci/cd module since we can't get the boba shop in there right now * fix(accesscontrol): fix up access control to make it clearer about the boba shop app * fix(pac): fix up the policy-as-code to add the tea shop and clean up the examples * fix(link): patch link in practice ending * fix(learn-ops): remove operations per review (bumping to another branch for later) * fix(testing): rewrite testing unit to be less generic * fix(chooser): fix the chooser for the python test examples in Learn * fix(cleanup): clean up the images and rename based on feedback and reviews with only two pathways * fix(wording): patch wording based on missed review * fix(image): hide learn pathway image for now until more pathways are built * fix(menu): patch the menu order to match the current one * fix(css): call class .card instead of .learn-card * feat(feedback): add feedback widget (interim) to Learn * fix(glossary): move glossary links everywhere to footnotes * Update themes/default/content/learn/building-with-pulumi/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * revert(clean): accidental add of a collision * fix(bots): fix bots call on index * fix(rename): rename topics to tutorials in layouts * fix(review): update based on review (initial run-through; more coming) * fix(consistency): update wording to be consistent * fix(lint): fix linting errors * revert(conflict): revert accidental add of conflicted file * fix(lint): fix lint errors re metadata length * Update themes/default/content/learn/pulumi-fundamentals/create-docker-images/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(review): update to match review suggestions * fix(review): finish updating based on review suggestions * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(derp): add missing quotation mark Co-authored-by: Kat Cosgrove <kat.cosgrove@gmail.com> Co-authored-by: Laura Santamaria <laura@nimbinatus.com> Co-authored-by: Zack Chase <zachary@pulumi.com> Co-authored-by: susanev <susan.ra.evans@gmail.com> Co-authored-by: Christian Nunciato <c@nunciato.org>
2021-11-08 16:04:20 -06:00
```
{{% /choosable %}}
{{% choosable language python %}}
```python
pulumi.export("url", pulumi.Output.format("http://localhost:{0}", frontend_port))
Launch Learn (#552) * adds initial pass at pulumi in operations learn module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updating pulumi in operations with meta images and minor index updates Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds policy as code * initial add of pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add draft for pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix draft status on tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Initial commit for pulumi fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add fundamentals starting point * feat(fundamentals): update all content with more learning content and patch things to be clearer * fix(fundamentals): patch up issues with export doc in other docs * fix(fundamentals): patch up fundamentals to match fix to proxy in code * feat(clouds): add new modules for fundamentals * feat(images): add images for fundamentals * Add learn index page diagram and description * Add modules section title * feat(learn meta): update images and metadata for learn now that everything is merged * feat(learn layout): update learn layout * fix(langfile): patch the python part to show dunders * feat(learn): add more updates to learn to smooth the pathways * Some updates for pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix typo in new project for fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add the aws tutorials and work on the others * add testing module Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add more testing stuff Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Scaffold azure fundamentals tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add more for aws and add gcp starters * feat(learn): add the lang features module stubs and patch up a bit * WIP azure tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * removes source control, adds references to boba shop app Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images, congratulations Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images to webhooks module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates image links, flavor text Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates pulumi operations index Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * Update pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update with secrets Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update secrets topic Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add back the meta for azure and update docs with aws * feat(fundamentals): add cleanup * fix(links): patch the links for the access tokens for Pulumi * fix(feedback): incorporate any remaining feedback from Lee Z. and Aaron for Fundamentals * fix(envvar): add the env var call for the patch to the tutorial app * fix(practice): update metadata, fix links, and clean up text in Practice * fix(fixup): forgot to save the last one; small fixup * update diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * fix(wording): update wording per feedback * fix(wording): update wording in practice based on feedback * fix(naming): fix the name in the layout * some tweaks to diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * Change learn nav items (#679) * fix(tests): start fixing the tests tutorial * fix(ops): run initial pass through ops to do some more cleanup after reviews * feat(cloud): remove cloud fundamentals from this branch for later updates * fix(webhooks): update webhooks to start adding boba shop * fix(testing): work on testing file * feat(webhooks): add more content to the webhooks Learn module and tie into boba shop * fix(cicd): fix the ci/cd module since we can't get the boba shop in there right now * fix(accesscontrol): fix up access control to make it clearer about the boba shop app * fix(pac): fix up the policy-as-code to add the tea shop and clean up the examples * fix(link): patch link in practice ending * fix(learn-ops): remove operations per review (bumping to another branch for later) * fix(testing): rewrite testing unit to be less generic * fix(chooser): fix the chooser for the python test examples in Learn * fix(cleanup): clean up the images and rename based on feedback and reviews with only two pathways * fix(wording): patch wording based on missed review * fix(image): hide learn pathway image for now until more pathways are built * fix(menu): patch the menu order to match the current one * fix(css): call class .card instead of .learn-card * feat(feedback): add feedback widget (interim) to Learn * fix(glossary): move glossary links everywhere to footnotes * Update themes/default/content/learn/building-with-pulumi/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * revert(clean): accidental add of a collision * fix(bots): fix bots call on index * fix(rename): rename topics to tutorials in layouts * fix(review): update based on review (initial run-through; more coming) * fix(consistency): update wording to be consistent * fix(lint): fix linting errors * revert(conflict): revert accidental add of conflicted file * fix(lint): fix lint errors re metadata length * Update themes/default/content/learn/pulumi-fundamentals/create-docker-images/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(review): update to match review suggestions * fix(review): finish updating based on review suggestions * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(derp): add missing quotation mark Co-authored-by: Kat Cosgrove <kat.cosgrove@gmail.com> Co-authored-by: Laura Santamaria <laura@nimbinatus.com> Co-authored-by: Zack Chase <zachary@pulumi.com> Co-authored-by: susanev <susan.ra.evans@gmail.com> Co-authored-by: Christian Nunciato <c@nunciato.org>
2021-11-08 16:04:20 -06:00
```
{{% /choosable %}}
{{% choosable language go %}}
```go
ctx.Export("url", pulumi.Sprintf("http://localhost:%v", frontendPort))
```
Note that you'll want to insert this just before the last `return nil` statement.
{{% /choosable %}}
{{% choosable language csharp %}}
```csharp
return new Dictionary<string, object?>
{
["url"] = Output.Format($"http://localhost:{frontendPort}")
};
```
Add this return statement to the end of the deployment function.
{{% /choosable %}}
{{% choosable language yaml %}}
```yaml
outputs:
url: http://localhost:${frontendPort}
```
Replace the existing `outputs: {}` line with this code.
{{% /choosable %}}
Launch Learn (#552) * adds initial pass at pulumi in operations learn module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updating pulumi in operations with meta images and minor index updates Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds policy as code * initial add of pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add draft for pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix draft status on tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Initial commit for pulumi fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add fundamentals starting point * feat(fundamentals): update all content with more learning content and patch things to be clearer * fix(fundamentals): patch up issues with export doc in other docs * fix(fundamentals): patch up fundamentals to match fix to proxy in code * feat(clouds): add new modules for fundamentals * feat(images): add images for fundamentals * Add learn index page diagram and description * Add modules section title * feat(learn meta): update images and metadata for learn now that everything is merged * feat(learn layout): update learn layout * fix(langfile): patch the python part to show dunders * feat(learn): add more updates to learn to smooth the pathways * Some updates for pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix typo in new project for fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add the aws tutorials and work on the others * add testing module Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add more testing stuff Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Scaffold azure fundamentals tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add more for aws and add gcp starters * feat(learn): add the lang features module stubs and patch up a bit * WIP azure tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * removes source control, adds references to boba shop app Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images, congratulations Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images to webhooks module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates image links, flavor text Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates pulumi operations index Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * Update pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update with secrets Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update secrets topic Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add back the meta for azure and update docs with aws * feat(fundamentals): add cleanup * fix(links): patch the links for the access tokens for Pulumi * fix(feedback): incorporate any remaining feedback from Lee Z. and Aaron for Fundamentals * fix(envvar): add the env var call for the patch to the tutorial app * fix(practice): update metadata, fix links, and clean up text in Practice * fix(fixup): forgot to save the last one; small fixup * update diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * fix(wording): update wording per feedback * fix(wording): update wording in practice based on feedback * fix(naming): fix the name in the layout * some tweaks to diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * Change learn nav items (#679) * fix(tests): start fixing the tests tutorial * fix(ops): run initial pass through ops to do some more cleanup after reviews * feat(cloud): remove cloud fundamentals from this branch for later updates * fix(webhooks): update webhooks to start adding boba shop * fix(testing): work on testing file * feat(webhooks): add more content to the webhooks Learn module and tie into boba shop * fix(cicd): fix the ci/cd module since we can't get the boba shop in there right now * fix(accesscontrol): fix up access control to make it clearer about the boba shop app * fix(pac): fix up the policy-as-code to add the tea shop and clean up the examples * fix(link): patch link in practice ending * fix(learn-ops): remove operations per review (bumping to another branch for later) * fix(testing): rewrite testing unit to be less generic * fix(chooser): fix the chooser for the python test examples in Learn * fix(cleanup): clean up the images and rename based on feedback and reviews with only two pathways * fix(wording): patch wording based on missed review * fix(image): hide learn pathway image for now until more pathways are built * fix(menu): patch the menu order to match the current one * fix(css): call class .card instead of .learn-card * feat(feedback): add feedback widget (interim) to Learn * fix(glossary): move glossary links everywhere to footnotes * Update themes/default/content/learn/building-with-pulumi/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * revert(clean): accidental add of a collision * fix(bots): fix bots call on index * fix(rename): rename topics to tutorials in layouts * fix(review): update based on review (initial run-through; more coming) * fix(consistency): update wording to be consistent * fix(lint): fix linting errors * revert(conflict): revert accidental add of conflicted file * fix(lint): fix lint errors re metadata length * Update themes/default/content/learn/pulumi-fundamentals/create-docker-images/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(review): update to match review suggestions * fix(review): finish updating based on review suggestions * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(derp): add missing quotation mark Co-authored-by: Kat Cosgrove <kat.cosgrove@gmail.com> Co-authored-by: Laura Santamaria <laura@nimbinatus.com> Co-authored-by: Zack Chase <zachary@pulumi.com> Co-authored-by: susanev <susan.ra.evans@gmail.com> Co-authored-by: Christian Nunciato <c@nunciato.org>
2021-11-08 16:04:20 -06:00
Now, run `pulumi up -y`
```bash
$ pulumi up
Previewing update (dev)
View Live: https://app.pulumi.com/***/my-first-app/dev/previews/...
...
Updating (dev)
View Live: https://app.pulumi.com/***/my-first-app/dev/updates/3
...
Launch Learn (#552) * adds initial pass at pulumi in operations learn module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updating pulumi in operations with meta images and minor index updates Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds policy as code * initial add of pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add draft for pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix draft status on tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Initial commit for pulumi fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add fundamentals starting point * feat(fundamentals): update all content with more learning content and patch things to be clearer * fix(fundamentals): patch up issues with export doc in other docs * fix(fundamentals): patch up fundamentals to match fix to proxy in code * feat(clouds): add new modules for fundamentals * feat(images): add images for fundamentals * Add learn index page diagram and description * Add modules section title * feat(learn meta): update images and metadata for learn now that everything is merged * feat(learn layout): update learn layout * fix(langfile): patch the python part to show dunders * feat(learn): add more updates to learn to smooth the pathways * Some updates for pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix typo in new project for fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add the aws tutorials and work on the others * add testing module Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add more testing stuff Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Scaffold azure fundamentals tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add more for aws and add gcp starters * feat(learn): add the lang features module stubs and patch up a bit * WIP azure tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * removes source control, adds references to boba shop app Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images, congratulations Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images to webhooks module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates image links, flavor text Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates pulumi operations index Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * Update pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update with secrets Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update secrets topic Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add back the meta for azure and update docs with aws * feat(fundamentals): add cleanup * fix(links): patch the links for the access tokens for Pulumi * fix(feedback): incorporate any remaining feedback from Lee Z. and Aaron for Fundamentals * fix(envvar): add the env var call for the patch to the tutorial app * fix(practice): update metadata, fix links, and clean up text in Practice * fix(fixup): forgot to save the last one; small fixup * update diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * fix(wording): update wording per feedback * fix(wording): update wording in practice based on feedback * fix(naming): fix the name in the layout * some tweaks to diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * Change learn nav items (#679) * fix(tests): start fixing the tests tutorial * fix(ops): run initial pass through ops to do some more cleanup after reviews * feat(cloud): remove cloud fundamentals from this branch for later updates * fix(webhooks): update webhooks to start adding boba shop * fix(testing): work on testing file * feat(webhooks): add more content to the webhooks Learn module and tie into boba shop * fix(cicd): fix the ci/cd module since we can't get the boba shop in there right now * fix(accesscontrol): fix up access control to make it clearer about the boba shop app * fix(pac): fix up the policy-as-code to add the tea shop and clean up the examples * fix(link): patch link in practice ending * fix(learn-ops): remove operations per review (bumping to another branch for later) * fix(testing): rewrite testing unit to be less generic * fix(chooser): fix the chooser for the python test examples in Learn * fix(cleanup): clean up the images and rename based on feedback and reviews with only two pathways * fix(wording): patch wording based on missed review * fix(image): hide learn pathway image for now until more pathways are built * fix(menu): patch the menu order to match the current one * fix(css): call class .card instead of .learn-card * feat(feedback): add feedback widget (interim) to Learn * fix(glossary): move glossary links everywhere to footnotes * Update themes/default/content/learn/building-with-pulumi/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * revert(clean): accidental add of a collision * fix(bots): fix bots call on index * fix(rename): rename topics to tutorials in layouts * fix(review): update based on review (initial run-through; more coming) * fix(consistency): update wording to be consistent * fix(lint): fix linting errors * revert(conflict): revert accidental add of conflicted file * fix(lint): fix lint errors re metadata length * Update themes/default/content/learn/pulumi-fundamentals/create-docker-images/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(review): update to match review suggestions * fix(review): finish updating based on review suggestions * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(derp): add missing quotation mark Co-authored-by: Kat Cosgrove <kat.cosgrove@gmail.com> Co-authored-by: Laura Santamaria <laura@nimbinatus.com> Co-authored-by: Zack Chase <zachary@pulumi.com> Co-authored-by: susanev <susan.ra.evans@gmail.com> Co-authored-by: Christian Nunciato <c@nunciato.org>
2021-11-08 16:04:20 -06:00
pulumi:pulumi:Stack my-first-app-dev running
pulumi:pulumi:Stack my-first-app-dev
Launch Learn (#552) * adds initial pass at pulumi in operations learn module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updating pulumi in operations with meta images and minor index updates Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds policy as code * initial add of pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add draft for pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix draft status on tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Initial commit for pulumi fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add fundamentals starting point * feat(fundamentals): update all content with more learning content and patch things to be clearer * fix(fundamentals): patch up issues with export doc in other docs * fix(fundamentals): patch up fundamentals to match fix to proxy in code * feat(clouds): add new modules for fundamentals * feat(images): add images for fundamentals * Add learn index page diagram and description * Add modules section title * feat(learn meta): update images and metadata for learn now that everything is merged * feat(learn layout): update learn layout * fix(langfile): patch the python part to show dunders * feat(learn): add more updates to learn to smooth the pathways * Some updates for pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix typo in new project for fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add the aws tutorials and work on the others * add testing module Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add more testing stuff Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Scaffold azure fundamentals tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add more for aws and add gcp starters * feat(learn): add the lang features module stubs and patch up a bit * WIP azure tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * removes source control, adds references to boba shop app Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images, congratulations Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images to webhooks module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates image links, flavor text Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates pulumi operations index Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * Update pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update with secrets Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update secrets topic Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add back the meta for azure and update docs with aws * feat(fundamentals): add cleanup * fix(links): patch the links for the access tokens for Pulumi * fix(feedback): incorporate any remaining feedback from Lee Z. and Aaron for Fundamentals * fix(envvar): add the env var call for the patch to the tutorial app * fix(practice): update metadata, fix links, and clean up text in Practice * fix(fixup): forgot to save the last one; small fixup * update diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * fix(wording): update wording per feedback * fix(wording): update wording in practice based on feedback * fix(naming): fix the name in the layout * some tweaks to diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * Change learn nav items (#679) * fix(tests): start fixing the tests tutorial * fix(ops): run initial pass through ops to do some more cleanup after reviews * feat(cloud): remove cloud fundamentals from this branch for later updates * fix(webhooks): update webhooks to start adding boba shop * fix(testing): work on testing file * feat(webhooks): add more content to the webhooks Learn module and tie into boba shop * fix(cicd): fix the ci/cd module since we can't get the boba shop in there right now * fix(accesscontrol): fix up access control to make it clearer about the boba shop app * fix(pac): fix up the policy-as-code to add the tea shop and clean up the examples * fix(link): patch link in practice ending * fix(learn-ops): remove operations per review (bumping to another branch for later) * fix(testing): rewrite testing unit to be less generic * fix(chooser): fix the chooser for the python test examples in Learn * fix(cleanup): clean up the images and rename based on feedback and reviews with only two pathways * fix(wording): patch wording based on missed review * fix(image): hide learn pathway image for now until more pathways are built * fix(menu): patch the menu order to match the current one * fix(css): call class .card instead of .learn-card * feat(feedback): add feedback widget (interim) to Learn * fix(glossary): move glossary links everywhere to footnotes * Update themes/default/content/learn/building-with-pulumi/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * revert(clean): accidental add of a collision * fix(bots): fix bots call on index * fix(rename): rename topics to tutorials in layouts * fix(review): update based on review (initial run-through; more coming) * fix(consistency): update wording to be consistent * fix(lint): fix linting errors * revert(conflict): revert accidental add of conflicted file * fix(lint): fix lint errors re metadata length * Update themes/default/content/learn/pulumi-fundamentals/create-docker-images/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(review): update to match review suggestions * fix(review): finish updating based on review suggestions * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(derp): add missing quotation mark Co-authored-by: Kat Cosgrove <kat.cosgrove@gmail.com> Co-authored-by: Laura Santamaria <laura@nimbinatus.com> Co-authored-by: Zack Chase <zachary@pulumi.com> Co-authored-by: susanev <susan.ra.evans@gmail.com> Co-authored-by: Christian Nunciato <c@nunciato.org>
2021-11-08 16:04:20 -06:00
Outputs:
url: "http://localhost:3001"
Launch Learn (#552) * adds initial pass at pulumi in operations learn module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updating pulumi in operations with meta images and minor index updates Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds policy as code * initial add of pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add draft for pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix draft status on tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Initial commit for pulumi fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add fundamentals starting point * feat(fundamentals): update all content with more learning content and patch things to be clearer * fix(fundamentals): patch up issues with export doc in other docs * fix(fundamentals): patch up fundamentals to match fix to proxy in code * feat(clouds): add new modules for fundamentals * feat(images): add images for fundamentals * Add learn index page diagram and description * Add modules section title * feat(learn meta): update images and metadata for learn now that everything is merged * feat(learn layout): update learn layout * fix(langfile): patch the python part to show dunders * feat(learn): add more updates to learn to smooth the pathways * Some updates for pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix typo in new project for fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add the aws tutorials and work on the others * add testing module Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add more testing stuff Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Scaffold azure fundamentals tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add more for aws and add gcp starters * feat(learn): add the lang features module stubs and patch up a bit * WIP azure tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * removes source control, adds references to boba shop app Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images, congratulations Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images to webhooks module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates image links, flavor text Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates pulumi operations index Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * Update pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update with secrets Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update secrets topic Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add back the meta for azure and update docs with aws * feat(fundamentals): add cleanup * fix(links): patch the links for the access tokens for Pulumi * fix(feedback): incorporate any remaining feedback from Lee Z. and Aaron for Fundamentals * fix(envvar): add the env var call for the patch to the tutorial app * fix(practice): update metadata, fix links, and clean up text in Practice * fix(fixup): forgot to save the last one; small fixup * update diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * fix(wording): update wording per feedback * fix(wording): update wording in practice based on feedback * fix(naming): fix the name in the layout * some tweaks to diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * Change learn nav items (#679) * fix(tests): start fixing the tests tutorial * fix(ops): run initial pass through ops to do some more cleanup after reviews * feat(cloud): remove cloud fundamentals from this branch for later updates * fix(webhooks): update webhooks to start adding boba shop * fix(testing): work on testing file * feat(webhooks): add more content to the webhooks Learn module and tie into boba shop * fix(cicd): fix the ci/cd module since we can't get the boba shop in there right now * fix(accesscontrol): fix up access control to make it clearer about the boba shop app * fix(pac): fix up the policy-as-code to add the tea shop and clean up the examples * fix(link): patch link in practice ending * fix(learn-ops): remove operations per review (bumping to another branch for later) * fix(testing): rewrite testing unit to be less generic * fix(chooser): fix the chooser for the python test examples in Learn * fix(cleanup): clean up the images and rename based on feedback and reviews with only two pathways * fix(wording): patch wording based on missed review * fix(image): hide learn pathway image for now until more pathways are built * fix(menu): patch the menu order to match the current one * fix(css): call class .card instead of .learn-card * feat(feedback): add feedback widget (interim) to Learn * fix(glossary): move glossary links everywhere to footnotes * Update themes/default/content/learn/building-with-pulumi/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * revert(clean): accidental add of a collision * fix(bots): fix bots call on index * fix(rename): rename topics to tutorials in layouts * fix(review): update based on review (initial run-through; more coming) * fix(consistency): update wording to be consistent * fix(lint): fix linting errors * revert(conflict): revert accidental add of conflicted file * fix(lint): fix lint errors re metadata length * Update themes/default/content/learn/pulumi-fundamentals/create-docker-images/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(review): update to match review suggestions * fix(review): finish updating based on review suggestions * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(derp): add missing quotation mark Co-authored-by: Kat Cosgrove <kat.cosgrove@gmail.com> Co-authored-by: Laura Santamaria <laura@nimbinatus.com> Co-authored-by: Zack Chase <zachary@pulumi.com> Co-authored-by: susanev <susan.ra.evans@gmail.com> Co-authored-by: Christian Nunciato <c@nunciato.org>
2021-11-08 16:04:20 -06:00
...
```
Notice that there is now a stack output for the value of the key `url`.
We can also get this value by running `pulumi stack output <key>` on any
particular stack.
```bash
$ pulumi stack output url
http://localhost:3001
```
And we can use this in the `curl` command to check our website:
```bash
$ curl $(pulumi stack output url)
```
## Making a stack configurable
One of the main reasons to use stacks is to have different configurations
between them. In this example, we will set a configuration that varies between
our `dev` and `staging` stacks and set it programmatically.
First, we need to define the configuration. We have already set this in the
`dev` stack in the Fundamentals tutorial. Let's take a look! Make sure the
`dev` stack is active:
```bash
$ pulumi stack select dev
```
2023-01-10 10:55:14 -08:00
Now, run the following command to get the values for this stack's configuration:
Launch Learn (#552) * adds initial pass at pulumi in operations learn module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updating pulumi in operations with meta images and minor index updates Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds policy as code * initial add of pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add draft for pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix draft status on tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Initial commit for pulumi fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add fundamentals starting point * feat(fundamentals): update all content with more learning content and patch things to be clearer * fix(fundamentals): patch up issues with export doc in other docs * fix(fundamentals): patch up fundamentals to match fix to proxy in code * feat(clouds): add new modules for fundamentals * feat(images): add images for fundamentals * Add learn index page diagram and description * Add modules section title * feat(learn meta): update images and metadata for learn now that everything is merged * feat(learn layout): update learn layout * fix(langfile): patch the python part to show dunders * feat(learn): add more updates to learn to smooth the pathways * Some updates for pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix typo in new project for fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add the aws tutorials and work on the others * add testing module Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add more testing stuff Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Scaffold azure fundamentals tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add more for aws and add gcp starters * feat(learn): add the lang features module stubs and patch up a bit * WIP azure tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * removes source control, adds references to boba shop app Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images, congratulations Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images to webhooks module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates image links, flavor text Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates pulumi operations index Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * Update pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update with secrets Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update secrets topic Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add back the meta for azure and update docs with aws * feat(fundamentals): add cleanup * fix(links): patch the links for the access tokens for Pulumi * fix(feedback): incorporate any remaining feedback from Lee Z. and Aaron for Fundamentals * fix(envvar): add the env var call for the patch to the tutorial app * fix(practice): update metadata, fix links, and clean up text in Practice * fix(fixup): forgot to save the last one; small fixup * update diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * fix(wording): update wording per feedback * fix(wording): update wording in practice based on feedback * fix(naming): fix the name in the layout * some tweaks to diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * Change learn nav items (#679) * fix(tests): start fixing the tests tutorial * fix(ops): run initial pass through ops to do some more cleanup after reviews * feat(cloud): remove cloud fundamentals from this branch for later updates * fix(webhooks): update webhooks to start adding boba shop * fix(testing): work on testing file * feat(webhooks): add more content to the webhooks Learn module and tie into boba shop * fix(cicd): fix the ci/cd module since we can't get the boba shop in there right now * fix(accesscontrol): fix up access control to make it clearer about the boba shop app * fix(pac): fix up the policy-as-code to add the tea shop and clean up the examples * fix(link): patch link in practice ending * fix(learn-ops): remove operations per review (bumping to another branch for later) * fix(testing): rewrite testing unit to be less generic * fix(chooser): fix the chooser for the python test examples in Learn * fix(cleanup): clean up the images and rename based on feedback and reviews with only two pathways * fix(wording): patch wording based on missed review * fix(image): hide learn pathway image for now until more pathways are built * fix(menu): patch the menu order to match the current one * fix(css): call class .card instead of .learn-card * feat(feedback): add feedback widget (interim) to Learn * fix(glossary): move glossary links everywhere to footnotes * Update themes/default/content/learn/building-with-pulumi/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * revert(clean): accidental add of a collision * fix(bots): fix bots call on index * fix(rename): rename topics to tutorials in layouts * fix(review): update based on review (initial run-through; more coming) * fix(consistency): update wording to be consistent * fix(lint): fix linting errors * revert(conflict): revert accidental add of conflicted file * fix(lint): fix lint errors re metadata length * Update themes/default/content/learn/pulumi-fundamentals/create-docker-images/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(review): update to match review suggestions * fix(review): finish updating based on review suggestions * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(derp): add missing quotation mark Co-authored-by: Kat Cosgrove <kat.cosgrove@gmail.com> Co-authored-by: Laura Santamaria <laura@nimbinatus.com> Co-authored-by: Zack Chase <zachary@pulumi.com> Co-authored-by: susanev <susan.ra.evans@gmail.com> Co-authored-by: Christian Nunciato <c@nunciato.org>
2021-11-08 16:04:20 -06:00
{{% choosable language typescript %}}
```bash
$ pulumi config
KEY VALUE
backendPort 3000
database cart
frontendPort 3001
mongoHost mongodb://mongo:27017
mongoPort 27017
nodeEnvironment development
protocol http://
```
Let's set the configuration for the `staging` stack. We'll use the same values
as `dev`, except the `frontendPort` will be set to `3002`.
```bash
$ pulumi stack select staging
$ pulumi config set frontendPort 3002
$ pulumi config set backendPort 3000
$ pulumi config set mongoPort 27017
$ pulumi config set mongoHost mongodb://mongo:27017
$ pulumi config set database cart
$ pulumi config set nodeEnvironment development
$ pulumi config set protocol http://
```
You should have two new files in your directory now: `Pulumi.dev.yaml` and
`Pulumi.staging.yaml`. If you take a look at them, you'll see each one has the
value for `frontendPort` set (along with some other values we set in the
Fundamentals tutorial):
```bash
$ cat Pulumi.staging.yaml
config:
my-first-app:backendPort: "3000"
my-first-app:database: cart
my-first-app:frontendPort: "3002"
my-first-app:mongoHost: mongodb://mongo:27017
my-first-app:mongoPort: "27017"
my-first-app:nodeEnvironment: development
my-first-app:protocol: http://
```
{{% /choosable %}}
{{% choosable language python %}}
Launch Learn (#552) * adds initial pass at pulumi in operations learn module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updating pulumi in operations with meta images and minor index updates Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds policy as code * initial add of pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add draft for pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix draft status on tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Initial commit for pulumi fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add fundamentals starting point * feat(fundamentals): update all content with more learning content and patch things to be clearer * fix(fundamentals): patch up issues with export doc in other docs * fix(fundamentals): patch up fundamentals to match fix to proxy in code * feat(clouds): add new modules for fundamentals * feat(images): add images for fundamentals * Add learn index page diagram and description * Add modules section title * feat(learn meta): update images and metadata for learn now that everything is merged * feat(learn layout): update learn layout * fix(langfile): patch the python part to show dunders * feat(learn): add more updates to learn to smooth the pathways * Some updates for pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix typo in new project for fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add the aws tutorials and work on the others * add testing module Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add more testing stuff Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Scaffold azure fundamentals tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add more for aws and add gcp starters * feat(learn): add the lang features module stubs and patch up a bit * WIP azure tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * removes source control, adds references to boba shop app Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images, congratulations Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images to webhooks module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates image links, flavor text Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates pulumi operations index Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * Update pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update with secrets Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update secrets topic Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add back the meta for azure and update docs with aws * feat(fundamentals): add cleanup * fix(links): patch the links for the access tokens for Pulumi * fix(feedback): incorporate any remaining feedback from Lee Z. and Aaron for Fundamentals * fix(envvar): add the env var call for the patch to the tutorial app * fix(practice): update metadata, fix links, and clean up text in Practice * fix(fixup): forgot to save the last one; small fixup * update diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * fix(wording): update wording per feedback * fix(wording): update wording in practice based on feedback * fix(naming): fix the name in the layout * some tweaks to diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * Change learn nav items (#679) * fix(tests): start fixing the tests tutorial * fix(ops): run initial pass through ops to do some more cleanup after reviews * feat(cloud): remove cloud fundamentals from this branch for later updates * fix(webhooks): update webhooks to start adding boba shop * fix(testing): work on testing file * feat(webhooks): add more content to the webhooks Learn module and tie into boba shop * fix(cicd): fix the ci/cd module since we can't get the boba shop in there right now * fix(accesscontrol): fix up access control to make it clearer about the boba shop app * fix(pac): fix up the policy-as-code to add the tea shop and clean up the examples * fix(link): patch link in practice ending * fix(learn-ops): remove operations per review (bumping to another branch for later) * fix(testing): rewrite testing unit to be less generic * fix(chooser): fix the chooser for the python test examples in Learn * fix(cleanup): clean up the images and rename based on feedback and reviews with only two pathways * fix(wording): patch wording based on missed review * fix(image): hide learn pathway image for now until more pathways are built * fix(menu): patch the menu order to match the current one * fix(css): call class .card instead of .learn-card * feat(feedback): add feedback widget (interim) to Learn * fix(glossary): move glossary links everywhere to footnotes * Update themes/default/content/learn/building-with-pulumi/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * revert(clean): accidental add of a collision * fix(bots): fix bots call on index * fix(rename): rename topics to tutorials in layouts * fix(review): update based on review (initial run-through; more coming) * fix(consistency): update wording to be consistent * fix(lint): fix linting errors * revert(conflict): revert accidental add of conflicted file * fix(lint): fix lint errors re metadata length * Update themes/default/content/learn/pulumi-fundamentals/create-docker-images/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(review): update to match review suggestions * fix(review): finish updating based on review suggestions * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(derp): add missing quotation mark Co-authored-by: Kat Cosgrove <kat.cosgrove@gmail.com> Co-authored-by: Laura Santamaria <laura@nimbinatus.com> Co-authored-by: Zack Chase <zachary@pulumi.com> Co-authored-by: susanev <susan.ra.evans@gmail.com> Co-authored-by: Christian Nunciato <c@nunciato.org>
2021-11-08 16:04:20 -06:00
```bash
$ pulumi config
KEY VALUE
backend_port 3000
database cart
frontend_port 3001
mongo_host mongodb://mongo:27017
mongo_port 27017
node_environment development
protocol http://
Launch Learn (#552) * adds initial pass at pulumi in operations learn module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updating pulumi in operations with meta images and minor index updates Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds policy as code * initial add of pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add draft for pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix draft status on tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Initial commit for pulumi fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add fundamentals starting point * feat(fundamentals): update all content with more learning content and patch things to be clearer * fix(fundamentals): patch up issues with export doc in other docs * fix(fundamentals): patch up fundamentals to match fix to proxy in code * feat(clouds): add new modules for fundamentals * feat(images): add images for fundamentals * Add learn index page diagram and description * Add modules section title * feat(learn meta): update images and metadata for learn now that everything is merged * feat(learn layout): update learn layout * fix(langfile): patch the python part to show dunders * feat(learn): add more updates to learn to smooth the pathways * Some updates for pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix typo in new project for fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add the aws tutorials and work on the others * add testing module Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add more testing stuff Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Scaffold azure fundamentals tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add more for aws and add gcp starters * feat(learn): add the lang features module stubs and patch up a bit * WIP azure tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * removes source control, adds references to boba shop app Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images, congratulations Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images to webhooks module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates image links, flavor text Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates pulumi operations index Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * Update pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update with secrets Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update secrets topic Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add back the meta for azure and update docs with aws * feat(fundamentals): add cleanup * fix(links): patch the links for the access tokens for Pulumi * fix(feedback): incorporate any remaining feedback from Lee Z. and Aaron for Fundamentals * fix(envvar): add the env var call for the patch to the tutorial app * fix(practice): update metadata, fix links, and clean up text in Practice * fix(fixup): forgot to save the last one; small fixup * update diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * fix(wording): update wording per feedback * fix(wording): update wording in practice based on feedback * fix(naming): fix the name in the layout * some tweaks to diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * Change learn nav items (#679) * fix(tests): start fixing the tests tutorial * fix(ops): run initial pass through ops to do some more cleanup after reviews * feat(cloud): remove cloud fundamentals from this branch for later updates * fix(webhooks): update webhooks to start adding boba shop * fix(testing): work on testing file * feat(webhooks): add more content to the webhooks Learn module and tie into boba shop * fix(cicd): fix the ci/cd module since we can't get the boba shop in there right now * fix(accesscontrol): fix up access control to make it clearer about the boba shop app * fix(pac): fix up the policy-as-code to add the tea shop and clean up the examples * fix(link): patch link in practice ending * fix(learn-ops): remove operations per review (bumping to another branch for later) * fix(testing): rewrite testing unit to be less generic * fix(chooser): fix the chooser for the python test examples in Learn * fix(cleanup): clean up the images and rename based on feedback and reviews with only two pathways * fix(wording): patch wording based on missed review * fix(image): hide learn pathway image for now until more pathways are built * fix(menu): patch the menu order to match the current one * fix(css): call class .card instead of .learn-card * feat(feedback): add feedback widget (interim) to Learn * fix(glossary): move glossary links everywhere to footnotes * Update themes/default/content/learn/building-with-pulumi/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * revert(clean): accidental add of a collision * fix(bots): fix bots call on index * fix(rename): rename topics to tutorials in layouts * fix(review): update based on review (initial run-through; more coming) * fix(consistency): update wording to be consistent * fix(lint): fix linting errors * revert(conflict): revert accidental add of conflicted file * fix(lint): fix lint errors re metadata length * Update themes/default/content/learn/pulumi-fundamentals/create-docker-images/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(review): update to match review suggestions * fix(review): finish updating based on review suggestions * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(derp): add missing quotation mark Co-authored-by: Kat Cosgrove <kat.cosgrove@gmail.com> Co-authored-by: Laura Santamaria <laura@nimbinatus.com> Co-authored-by: Zack Chase <zachary@pulumi.com> Co-authored-by: susanev <susan.ra.evans@gmail.com> Co-authored-by: Christian Nunciato <c@nunciato.org>
2021-11-08 16:04:20 -06:00
```
Let's set the configuration for the `staging` stack. We'll use the same values
as `dev`, except the `frontend_port` will be set to `3002`.
```bash
$ pulumi stack select staging
$ pulumi config set frontend_port 3002
$ pulumi config set backend_port 3000
$ pulumi config set mongo_port 27017
$ pulumi config set mongo_host mongodb://mongo:27017
$ pulumi config set database cart
$ pulumi config set node_environment development
$ pulumi config set protocol http://
Launch Learn (#552) * adds initial pass at pulumi in operations learn module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updating pulumi in operations with meta images and minor index updates Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds policy as code * initial add of pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add draft for pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix draft status on tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Initial commit for pulumi fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add fundamentals starting point * feat(fundamentals): update all content with more learning content and patch things to be clearer * fix(fundamentals): patch up issues with export doc in other docs * fix(fundamentals): patch up fundamentals to match fix to proxy in code * feat(clouds): add new modules for fundamentals * feat(images): add images for fundamentals * Add learn index page diagram and description * Add modules section title * feat(learn meta): update images and metadata for learn now that everything is merged * feat(learn layout): update learn layout * fix(langfile): patch the python part to show dunders * feat(learn): add more updates to learn to smooth the pathways * Some updates for pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix typo in new project for fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add the aws tutorials and work on the others * add testing module Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add more testing stuff Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Scaffold azure fundamentals tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add more for aws and add gcp starters * feat(learn): add the lang features module stubs and patch up a bit * WIP azure tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * removes source control, adds references to boba shop app Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images, congratulations Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images to webhooks module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates image links, flavor text Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates pulumi operations index Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * Update pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update with secrets Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update secrets topic Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add back the meta for azure and update docs with aws * feat(fundamentals): add cleanup * fix(links): patch the links for the access tokens for Pulumi * fix(feedback): incorporate any remaining feedback from Lee Z. and Aaron for Fundamentals * fix(envvar): add the env var call for the patch to the tutorial app * fix(practice): update metadata, fix links, and clean up text in Practice * fix(fixup): forgot to save the last one; small fixup * update diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * fix(wording): update wording per feedback * fix(wording): update wording in practice based on feedback * fix(naming): fix the name in the layout * some tweaks to diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * Change learn nav items (#679) * fix(tests): start fixing the tests tutorial * fix(ops): run initial pass through ops to do some more cleanup after reviews * feat(cloud): remove cloud fundamentals from this branch for later updates * fix(webhooks): update webhooks to start adding boba shop * fix(testing): work on testing file * feat(webhooks): add more content to the webhooks Learn module and tie into boba shop * fix(cicd): fix the ci/cd module since we can't get the boba shop in there right now * fix(accesscontrol): fix up access control to make it clearer about the boba shop app * fix(pac): fix up the policy-as-code to add the tea shop and clean up the examples * fix(link): patch link in practice ending * fix(learn-ops): remove operations per review (bumping to another branch for later) * fix(testing): rewrite testing unit to be less generic * fix(chooser): fix the chooser for the python test examples in Learn * fix(cleanup): clean up the images and rename based on feedback and reviews with only two pathways * fix(wording): patch wording based on missed review * fix(image): hide learn pathway image for now until more pathways are built * fix(menu): patch the menu order to match the current one * fix(css): call class .card instead of .learn-card * feat(feedback): add feedback widget (interim) to Learn * fix(glossary): move glossary links everywhere to footnotes * Update themes/default/content/learn/building-with-pulumi/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * revert(clean): accidental add of a collision * fix(bots): fix bots call on index * fix(rename): rename topics to tutorials in layouts * fix(review): update based on review (initial run-through; more coming) * fix(consistency): update wording to be consistent * fix(lint): fix linting errors * revert(conflict): revert accidental add of conflicted file * fix(lint): fix lint errors re metadata length * Update themes/default/content/learn/pulumi-fundamentals/create-docker-images/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(review): update to match review suggestions * fix(review): finish updating based on review suggestions * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(derp): add missing quotation mark Co-authored-by: Kat Cosgrove <kat.cosgrove@gmail.com> Co-authored-by: Laura Santamaria <laura@nimbinatus.com> Co-authored-by: Zack Chase <zachary@pulumi.com> Co-authored-by: susanev <susan.ra.evans@gmail.com> Co-authored-by: Christian Nunciato <c@nunciato.org>
2021-11-08 16:04:20 -06:00
```
You should have two new files in your directory now: `Pulumi.dev.yaml` and
`Pulumi.staging.yaml`. If you take a look at them, you'll see each one has the
value for `frontend_port` set (along with some other values we set in the
Fundamentals tutorial):
```bash
$ cat Pulumi.staging.yaml
Launch Learn (#552) * adds initial pass at pulumi in operations learn module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updating pulumi in operations with meta images and minor index updates Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds policy as code * initial add of pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add draft for pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix draft status on tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Initial commit for pulumi fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add fundamentals starting point * feat(fundamentals): update all content with more learning content and patch things to be clearer * fix(fundamentals): patch up issues with export doc in other docs * fix(fundamentals): patch up fundamentals to match fix to proxy in code * feat(clouds): add new modules for fundamentals * feat(images): add images for fundamentals * Add learn index page diagram and description * Add modules section title * feat(learn meta): update images and metadata for learn now that everything is merged * feat(learn layout): update learn layout * fix(langfile): patch the python part to show dunders * feat(learn): add more updates to learn to smooth the pathways * Some updates for pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix typo in new project for fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add the aws tutorials and work on the others * add testing module Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add more testing stuff Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Scaffold azure fundamentals tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add more for aws and add gcp starters * feat(learn): add the lang features module stubs and patch up a bit * WIP azure tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * removes source control, adds references to boba shop app Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images, congratulations Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images to webhooks module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates image links, flavor text Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates pulumi operations index Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * Update pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update with secrets Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update secrets topic Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add back the meta for azure and update docs with aws * feat(fundamentals): add cleanup * fix(links): patch the links for the access tokens for Pulumi * fix(feedback): incorporate any remaining feedback from Lee Z. and Aaron for Fundamentals * fix(envvar): add the env var call for the patch to the tutorial app * fix(practice): update metadata, fix links, and clean up text in Practice * fix(fixup): forgot to save the last one; small fixup * update diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * fix(wording): update wording per feedback * fix(wording): update wording in practice based on feedback * fix(naming): fix the name in the layout * some tweaks to diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * Change learn nav items (#679) * fix(tests): start fixing the tests tutorial * fix(ops): run initial pass through ops to do some more cleanup after reviews * feat(cloud): remove cloud fundamentals from this branch for later updates * fix(webhooks): update webhooks to start adding boba shop * fix(testing): work on testing file * feat(webhooks): add more content to the webhooks Learn module and tie into boba shop * fix(cicd): fix the ci/cd module since we can't get the boba shop in there right now * fix(accesscontrol): fix up access control to make it clearer about the boba shop app * fix(pac): fix up the policy-as-code to add the tea shop and clean up the examples * fix(link): patch link in practice ending * fix(learn-ops): remove operations per review (bumping to another branch for later) * fix(testing): rewrite testing unit to be less generic * fix(chooser): fix the chooser for the python test examples in Learn * fix(cleanup): clean up the images and rename based on feedback and reviews with only two pathways * fix(wording): patch wording based on missed review * fix(image): hide learn pathway image for now until more pathways are built * fix(menu): patch the menu order to match the current one * fix(css): call class .card instead of .learn-card * feat(feedback): add feedback widget (interim) to Learn * fix(glossary): move glossary links everywhere to footnotes * Update themes/default/content/learn/building-with-pulumi/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * revert(clean): accidental add of a collision * fix(bots): fix bots call on index * fix(rename): rename topics to tutorials in layouts * fix(review): update based on review (initial run-through; more coming) * fix(consistency): update wording to be consistent * fix(lint): fix linting errors * revert(conflict): revert accidental add of conflicted file * fix(lint): fix lint errors re metadata length * Update themes/default/content/learn/pulumi-fundamentals/create-docker-images/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(review): update to match review suggestions * fix(review): finish updating based on review suggestions * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(derp): add missing quotation mark Co-authored-by: Kat Cosgrove <kat.cosgrove@gmail.com> Co-authored-by: Laura Santamaria <laura@nimbinatus.com> Co-authored-by: Zack Chase <zachary@pulumi.com> Co-authored-by: susanev <susan.ra.evans@gmail.com> Co-authored-by: Christian Nunciato <c@nunciato.org>
2021-11-08 16:04:20 -06:00
config:
my-first-app:backend_port: "3000"
my-first-app:database: cart
my-first-app:frontend_port: "3002"
Launch Learn (#552) * adds initial pass at pulumi in operations learn module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updating pulumi in operations with meta images and minor index updates Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds policy as code * initial add of pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add draft for pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix draft status on tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Initial commit for pulumi fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add fundamentals starting point * feat(fundamentals): update all content with more learning content and patch things to be clearer * fix(fundamentals): patch up issues with export doc in other docs * fix(fundamentals): patch up fundamentals to match fix to proxy in code * feat(clouds): add new modules for fundamentals * feat(images): add images for fundamentals * Add learn index page diagram and description * Add modules section title * feat(learn meta): update images and metadata for learn now that everything is merged * feat(learn layout): update learn layout * fix(langfile): patch the python part to show dunders * feat(learn): add more updates to learn to smooth the pathways * Some updates for pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix typo in new project for fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add the aws tutorials and work on the others * add testing module Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add more testing stuff Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Scaffold azure fundamentals tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add more for aws and add gcp starters * feat(learn): add the lang features module stubs and patch up a bit * WIP azure tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * removes source control, adds references to boba shop app Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images, congratulations Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images to webhooks module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates image links, flavor text Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates pulumi operations index Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * Update pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update with secrets Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update secrets topic Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add back the meta for azure and update docs with aws * feat(fundamentals): add cleanup * fix(links): patch the links for the access tokens for Pulumi * fix(feedback): incorporate any remaining feedback from Lee Z. and Aaron for Fundamentals * fix(envvar): add the env var call for the patch to the tutorial app * fix(practice): update metadata, fix links, and clean up text in Practice * fix(fixup): forgot to save the last one; small fixup * update diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * fix(wording): update wording per feedback * fix(wording): update wording in practice based on feedback * fix(naming): fix the name in the layout * some tweaks to diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * Change learn nav items (#679) * fix(tests): start fixing the tests tutorial * fix(ops): run initial pass through ops to do some more cleanup after reviews * feat(cloud): remove cloud fundamentals from this branch for later updates * fix(webhooks): update webhooks to start adding boba shop * fix(testing): work on testing file * feat(webhooks): add more content to the webhooks Learn module and tie into boba shop * fix(cicd): fix the ci/cd module since we can't get the boba shop in there right now * fix(accesscontrol): fix up access control to make it clearer about the boba shop app * fix(pac): fix up the policy-as-code to add the tea shop and clean up the examples * fix(link): patch link in practice ending * fix(learn-ops): remove operations per review (bumping to another branch for later) * fix(testing): rewrite testing unit to be less generic * fix(chooser): fix the chooser for the python test examples in Learn * fix(cleanup): clean up the images and rename based on feedback and reviews with only two pathways * fix(wording): patch wording based on missed review * fix(image): hide learn pathway image for now until more pathways are built * fix(menu): patch the menu order to match the current one * fix(css): call class .card instead of .learn-card * feat(feedback): add feedback widget (interim) to Learn * fix(glossary): move glossary links everywhere to footnotes * Update themes/default/content/learn/building-with-pulumi/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * revert(clean): accidental add of a collision * fix(bots): fix bots call on index * fix(rename): rename topics to tutorials in layouts * fix(review): update based on review (initial run-through; more coming) * fix(consistency): update wording to be consistent * fix(lint): fix linting errors * revert(conflict): revert accidental add of conflicted file * fix(lint): fix lint errors re metadata length * Update themes/default/content/learn/pulumi-fundamentals/create-docker-images/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(review): update to match review suggestions * fix(review): finish updating based on review suggestions * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(derp): add missing quotation mark Co-authored-by: Kat Cosgrove <kat.cosgrove@gmail.com> Co-authored-by: Laura Santamaria <laura@nimbinatus.com> Co-authored-by: Zack Chase <zachary@pulumi.com> Co-authored-by: susanev <susan.ra.evans@gmail.com> Co-authored-by: Christian Nunciato <c@nunciato.org>
2021-11-08 16:04:20 -06:00
my-first-app:mongo_host: mongodb://mongo:27017
my-first-app:mongo_port: "27017"
my-first-app:node_environment: development
my-first-app:protocol: http://
```
{{% /choosable %}}
{{% choosable language go %}}
```bash
$ pulumi config
KEY VALUE
backendPort 3000
database cart
frontendPort 3001
mongoHost mongodb://mongo:27017
mongoPort 27017
nodeEnvironment development
protocol http://
```
Let's set the configuration for the `staging` stack. We'll use the same values as `dev`, except the `frontendPort` will be set to `3002`.
```bash
$ pulumi stack select staging
$ pulumi config set frontendPort 3002
$ pulumi config set backendPort 3000
$ pulumi config set mongoPort 27017
$ pulumi config set mongoHost mongodb://mongo:27017
$ pulumi config set database cart
$ pulumi config set nodeEnvironment development
$ pulumi config set protocol http://
```
You should have two new files in your directory now: `Pulumi.dev.yaml` and
`Pulumi.staging.yaml`. If you take a look at them, you'll see each one has the
value for `frontendPort` set (along with some other values we set in the
Fundamentals tutorial):
```bash
$ cat Pulumi.staging.yaml
config:
my-first-app:backendPort: "3000"
my-first-app:database: cart
my-first-app:frontendPort: "3002"
my-first-app:mongoHost: mongodb://mongo:27017
my-first-app:mongoPort: "27017"
my-first-app:nodeEnvironment: development
my-first-app:protocol: http://
```
{{% /choosable %}}
{{% choosable language yaml %}}
```bash
$ pulumi config
KEY VALUE
backendPort 3000
database cart
frontendPort 3001
mongoHost mongodb://mongo:27017
mongoPort 27017
nodeEnvironment development
protocol http://
```
Let's set the configuration for the `staging` stack. We'll use the same values
as `dev`, except the `frontendPort` will be set to `3002`.
```bash
$ pulumi stack select staging
$ pulumi config set frontendPort 3002
$ pulumi config set backendPort 3000
$ pulumi config set mongoPort 27017
$ pulumi config set mongoHost mongodb://mongo:27017
$ pulumi config set database cart
$ pulumi config set nodeEnvironment development
$ pulumi config set protocol http://
```
You should have two new files in your directory now: `Pulumi.dev.yaml` and
`Pulumi.staging.yaml`. If you take a look at them, you'll see each one has the
value for `frontendPort` set (along with some other values we set in the
Fundamentals tutorial):
```bash
$ cat Pulumi.staging.yaml
config:
my-first-app:backendPort: "3000"
my-first-app:database: cart
my-first-app:frontendPort: "3002"
my-first-app:mongoHost: mongodb://mongo:27017
my-first-app:mongoPort: "27017"
my-first-app:nodeEnvironment: development
my-first-app:protocol: http://
Launch Learn (#552) * adds initial pass at pulumi in operations learn module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updating pulumi in operations with meta images and minor index updates Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds policy as code * initial add of pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add draft for pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix draft status on tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Initial commit for pulumi fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add fundamentals starting point * feat(fundamentals): update all content with more learning content and patch things to be clearer * fix(fundamentals): patch up issues with export doc in other docs * fix(fundamentals): patch up fundamentals to match fix to proxy in code * feat(clouds): add new modules for fundamentals * feat(images): add images for fundamentals * Add learn index page diagram and description * Add modules section title * feat(learn meta): update images and metadata for learn now that everything is merged * feat(learn layout): update learn layout * fix(langfile): patch the python part to show dunders * feat(learn): add more updates to learn to smooth the pathways * Some updates for pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix typo in new project for fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add the aws tutorials and work on the others * add testing module Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add more testing stuff Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Scaffold azure fundamentals tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add more for aws and add gcp starters * feat(learn): add the lang features module stubs and patch up a bit * WIP azure tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * removes source control, adds references to boba shop app Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images, congratulations Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images to webhooks module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates image links, flavor text Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates pulumi operations index Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * Update pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update with secrets Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update secrets topic Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add back the meta for azure and update docs with aws * feat(fundamentals): add cleanup * fix(links): patch the links for the access tokens for Pulumi * fix(feedback): incorporate any remaining feedback from Lee Z. and Aaron for Fundamentals * fix(envvar): add the env var call for the patch to the tutorial app * fix(practice): update metadata, fix links, and clean up text in Practice * fix(fixup): forgot to save the last one; small fixup * update diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * fix(wording): update wording per feedback * fix(wording): update wording in practice based on feedback * fix(naming): fix the name in the layout * some tweaks to diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * Change learn nav items (#679) * fix(tests): start fixing the tests tutorial * fix(ops): run initial pass through ops to do some more cleanup after reviews * feat(cloud): remove cloud fundamentals from this branch for later updates * fix(webhooks): update webhooks to start adding boba shop * fix(testing): work on testing file * feat(webhooks): add more content to the webhooks Learn module and tie into boba shop * fix(cicd): fix the ci/cd module since we can't get the boba shop in there right now * fix(accesscontrol): fix up access control to make it clearer about the boba shop app * fix(pac): fix up the policy-as-code to add the tea shop and clean up the examples * fix(link): patch link in practice ending * fix(learn-ops): remove operations per review (bumping to another branch for later) * fix(testing): rewrite testing unit to be less generic * fix(chooser): fix the chooser for the python test examples in Learn * fix(cleanup): clean up the images and rename based on feedback and reviews with only two pathways * fix(wording): patch wording based on missed review * fix(image): hide learn pathway image for now until more pathways are built * fix(menu): patch the menu order to match the current one * fix(css): call class .card instead of .learn-card * feat(feedback): add feedback widget (interim) to Learn * fix(glossary): move glossary links everywhere to footnotes * Update themes/default/content/learn/building-with-pulumi/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * revert(clean): accidental add of a collision * fix(bots): fix bots call on index * fix(rename): rename topics to tutorials in layouts * fix(review): update based on review (initial run-through; more coming) * fix(consistency): update wording to be consistent * fix(lint): fix linting errors * revert(conflict): revert accidental add of conflicted file * fix(lint): fix lint errors re metadata length * Update themes/default/content/learn/pulumi-fundamentals/create-docker-images/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(review): update to match review suggestions * fix(review): finish updating based on review suggestions * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(derp): add missing quotation mark Co-authored-by: Kat Cosgrove <kat.cosgrove@gmail.com> Co-authored-by: Laura Santamaria <laura@nimbinatus.com> Co-authored-by: Zack Chase <zachary@pulumi.com> Co-authored-by: susanev <susan.ra.evans@gmail.com> Co-authored-by: Christian Nunciato <c@nunciato.org>
2021-11-08 16:04:20 -06:00
```
{{% /choosable %}}
Launch Learn (#552) * adds initial pass at pulumi in operations learn module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updating pulumi in operations with meta images and minor index updates Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds policy as code * initial add of pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add draft for pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix draft status on tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Initial commit for pulumi fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add fundamentals starting point * feat(fundamentals): update all content with more learning content and patch things to be clearer * fix(fundamentals): patch up issues with export doc in other docs * fix(fundamentals): patch up fundamentals to match fix to proxy in code * feat(clouds): add new modules for fundamentals * feat(images): add images for fundamentals * Add learn index page diagram and description * Add modules section title * feat(learn meta): update images and metadata for learn now that everything is merged * feat(learn layout): update learn layout * fix(langfile): patch the python part to show dunders * feat(learn): add more updates to learn to smooth the pathways * Some updates for pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix typo in new project for fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add the aws tutorials and work on the others * add testing module Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add more testing stuff Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Scaffold azure fundamentals tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add more for aws and add gcp starters * feat(learn): add the lang features module stubs and patch up a bit * WIP azure tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * removes source control, adds references to boba shop app Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images, congratulations Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images to webhooks module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates image links, flavor text Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates pulumi operations index Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * Update pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update with secrets Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update secrets topic Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add back the meta for azure and update docs with aws * feat(fundamentals): add cleanup * fix(links): patch the links for the access tokens for Pulumi * fix(feedback): incorporate any remaining feedback from Lee Z. and Aaron for Fundamentals * fix(envvar): add the env var call for the patch to the tutorial app * fix(practice): update metadata, fix links, and clean up text in Practice * fix(fixup): forgot to save the last one; small fixup * update diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * fix(wording): update wording per feedback * fix(wording): update wording in practice based on feedback * fix(naming): fix the name in the layout * some tweaks to diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * Change learn nav items (#679) * fix(tests): start fixing the tests tutorial * fix(ops): run initial pass through ops to do some more cleanup after reviews * feat(cloud): remove cloud fundamentals from this branch for later updates * fix(webhooks): update webhooks to start adding boba shop * fix(testing): work on testing file * feat(webhooks): add more content to the webhooks Learn module and tie into boba shop * fix(cicd): fix the ci/cd module since we can't get the boba shop in there right now * fix(accesscontrol): fix up access control to make it clearer about the boba shop app * fix(pac): fix up the policy-as-code to add the tea shop and clean up the examples * fix(link): patch link in practice ending * fix(learn-ops): remove operations per review (bumping to another branch for later) * fix(testing): rewrite testing unit to be less generic * fix(chooser): fix the chooser for the python test examples in Learn * fix(cleanup): clean up the images and rename based on feedback and reviews with only two pathways * fix(wording): patch wording based on missed review * fix(image): hide learn pathway image for now until more pathways are built * fix(menu): patch the menu order to match the current one * fix(css): call class .card instead of .learn-card * feat(feedback): add feedback widget (interim) to Learn * fix(glossary): move glossary links everywhere to footnotes * Update themes/default/content/learn/building-with-pulumi/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * revert(clean): accidental add of a collision * fix(bots): fix bots call on index * fix(rename): rename topics to tutorials in layouts * fix(review): update based on review (initial run-through; more coming) * fix(consistency): update wording to be consistent * fix(lint): fix linting errors * revert(conflict): revert accidental add of conflicted file * fix(lint): fix lint errors re metadata length * Update themes/default/content/learn/pulumi-fundamentals/create-docker-images/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(review): update to match review suggestions * fix(review): finish updating based on review suggestions * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(derp): add missing quotation mark Co-authored-by: Kat Cosgrove <kat.cosgrove@gmail.com> Co-authored-by: Laura Santamaria <laura@nimbinatus.com> Co-authored-by: Zack Chase <zachary@pulumi.com> Co-authored-by: susanev <susan.ra.evans@gmail.com> Co-authored-by: Christian Nunciato <c@nunciato.org>
2021-11-08 16:04:20 -06:00
Now, if you run `pulumi up` while in the `staging` stack, we should see that the
frontend port is now set to `3002`:
```bash
2023-10-18 10:35:57 +02:00
$ pulumi up
Previewing update (staging)
...
...
Outputs:
url: "http://localhost:3002"
...
Launch Learn (#552) * adds initial pass at pulumi in operations learn module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updating pulumi in operations with meta images and minor index updates Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds policy as code * initial add of pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add draft for pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix draft status on tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Initial commit for pulumi fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add fundamentals starting point * feat(fundamentals): update all content with more learning content and patch things to be clearer * fix(fundamentals): patch up issues with export doc in other docs * fix(fundamentals): patch up fundamentals to match fix to proxy in code * feat(clouds): add new modules for fundamentals * feat(images): add images for fundamentals * Add learn index page diagram and description * Add modules section title * feat(learn meta): update images and metadata for learn now that everything is merged * feat(learn layout): update learn layout * fix(langfile): patch the python part to show dunders * feat(learn): add more updates to learn to smooth the pathways * Some updates for pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix typo in new project for fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add the aws tutorials and work on the others * add testing module Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add more testing stuff Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Scaffold azure fundamentals tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add more for aws and add gcp starters * feat(learn): add the lang features module stubs and patch up a bit * WIP azure tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * removes source control, adds references to boba shop app Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images, congratulations Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images to webhooks module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates image links, flavor text Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates pulumi operations index Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * Update pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update with secrets Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update secrets topic Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add back the meta for azure and update docs with aws * feat(fundamentals): add cleanup * fix(links): patch the links for the access tokens for Pulumi * fix(feedback): incorporate any remaining feedback from Lee Z. and Aaron for Fundamentals * fix(envvar): add the env var call for the patch to the tutorial app * fix(practice): update metadata, fix links, and clean up text in Practice * fix(fixup): forgot to save the last one; small fixup * update diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * fix(wording): update wording per feedback * fix(wording): update wording in practice based on feedback * fix(naming): fix the name in the layout * some tweaks to diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * Change learn nav items (#679) * fix(tests): start fixing the tests tutorial * fix(ops): run initial pass through ops to do some more cleanup after reviews * feat(cloud): remove cloud fundamentals from this branch for later updates * fix(webhooks): update webhooks to start adding boba shop * fix(testing): work on testing file * feat(webhooks): add more content to the webhooks Learn module and tie into boba shop * fix(cicd): fix the ci/cd module since we can't get the boba shop in there right now * fix(accesscontrol): fix up access control to make it clearer about the boba shop app * fix(pac): fix up the policy-as-code to add the tea shop and clean up the examples * fix(link): patch link in practice ending * fix(learn-ops): remove operations per review (bumping to another branch for later) * fix(testing): rewrite testing unit to be less generic * fix(chooser): fix the chooser for the python test examples in Learn * fix(cleanup): clean up the images and rename based on feedback and reviews with only two pathways * fix(wording): patch wording based on missed review * fix(image): hide learn pathway image for now until more pathways are built * fix(menu): patch the menu order to match the current one * fix(css): call class .card instead of .learn-card * feat(feedback): add feedback widget (interim) to Learn * fix(glossary): move glossary links everywhere to footnotes * Update themes/default/content/learn/building-with-pulumi/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * revert(clean): accidental add of a collision * fix(bots): fix bots call on index * fix(rename): rename topics to tutorials in layouts * fix(review): update based on review (initial run-through; more coming) * fix(consistency): update wording to be consistent * fix(lint): fix linting errors * revert(conflict): revert accidental add of conflicted file * fix(lint): fix lint errors re metadata length * Update themes/default/content/learn/pulumi-fundamentals/create-docker-images/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(review): update to match review suggestions * fix(review): finish updating based on review suggestions * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(derp): add missing quotation mark Co-authored-by: Kat Cosgrove <kat.cosgrove@gmail.com> Co-authored-by: Laura Santamaria <laura@nimbinatus.com> Co-authored-by: Zack Chase <zachary@pulumi.com> Co-authored-by: susanev <susan.ra.evans@gmail.com> Co-authored-by: Christian Nunciato <c@nunciato.org>
2021-11-08 16:04:20 -06:00
```
Next up, we'll explore how to share outputs with other stacks. Let's go!