Git Product home page Git Product logo

tutorial-pulumi-fundamentals's Introduction

Pulumi Fundamentals Tutorial

The code in this repository is used in conjunction with the Pulumi Learn "Pulumi Fundamentals" pathway. Details and full instructions for using this code are found there.

Prerequisites

You will need the following tools to complete this tutorial:

  • A Pulumi account and token
  • The Pulumi CLI
  • Docker
  • One of the following languages:
    • For the TypeScript/JavaScript version, Node.js 14 or later
    • For the Python version, Python 3.8 or later
    • For the Java version, Java 11 or later and Gradle 7.4 or later
    • For the YAML version, nothing specific!

tutorial-pulumi-fundamentals's People

Contributors

ciroque avatar katcosgrove avatar mattstratton avatar nimbinatus avatar scottslowe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

tutorial-pulumi-fundamentals's Issues

App returns error `Cannot read properties of null` on product click

What happened?

When you go to http://localhost:3001/ and click on any product, the app returns an error.

image

Expected Behavior

No error, product should be displayed.

Steps to reproduce

Click on any product.

Output of pulumi about

CLI
Version 3.55.0
Go Version go1.20
Go Compiler gc

Plugins
NAME VERSION
docker 3.6.1
nodejs unknown

Host
OS Microsoft Windows 11 Education N
Version 10.0.22621 Build 22621
Arch x86_64

This project is written in nodejs: executable='C:\Program Files\nodejs\node.exe' version='v14.19.1'

Current Stack: Rashair/my_first_app/dev

TYPE URN
pulumi:pulumi:Stack urn:pulumi:dev::my_first_app::pulumi:pulumi:Stack::my_first_app-dev
pulumi:providers:docker urn:pulumi:dev::my_first_app::pulumi:providers:docker::default_3_6_1
docker:index/remoteImage:RemoteImage urn:pulumi:dev::my_first_app::docker:index/remoteImage:RemoteImage::backendImage
docker:index/remoteImage:RemoteImage urn:pulumi:dev::my_first_app::docker:index/remoteImage:RemoteImage::mongoImage
docker:index/remoteImage:RemoteImage urn:pulumi:dev::my_first_app::docker:index/remoteImage:RemoteImage::frontendImage
docker:index/network:Network urn:pulumi:dev::my_first_app::docker:index/network:Network::network
docker:index/container:Container urn:pulumi:dev::my_first_app::docker:index/container:Container::mongoContainer
docker:index/container:Container urn:pulumi:dev::my_first_app::docker:index/container:Container::frontendContainer
docker:index/container:Container urn:pulumi:dev::my_first_app::docker:index/container:Container::backendContainer

Found no pending operations associated with dev

Backend
Name pulumi.com
URL https://app.pulumi.com/Rashair
User Rashair
Organizations Rashair

Pulumi locates its logs in C:\Users\przem\AppData\Local\Temp by default
warning: Failed to get information about the Pulumi program's dependencies: found D:\Source\cka\pulumi\my_first_app\package-lock.json but not npm: unable to find program: npm.exe

Additional context

The setup was made by following the tutorial: https://www.pulumi.com/learn/pulumi-fundamentals/configure-and-provision/

Contributing

Vote on this issue by adding a ๐Ÿ‘ reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

Port for frontend is hardcoded

What happened?

I attempted to configure the frontend to listen on a different port (as instructed by the information in the "Building with Pulumi" Learn pathway) and the application stopped working.

Steps to reproduce

Work through the "Pulumi Fundamentals" and "Building with Pulumi" Learn pathways. When working with the staging stack, configure the frontendPort to 3002 as instructed. Although pulumi up will succeed, the application will be unreachable on port 3002.

Expected Behavior

I expected the application to listen on the configured port.

Actual Behavior

The application is hardcoded to only work on port 3001.

Output of pulumi about

N/A

Additional context

None

Contributing

Vote on this issue by adding a ๐Ÿ‘ reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

Mongo image missing linux/amd64 platform

What happened?

following the tutorial my pulumi file didn't work because the mongo container keep crashing, doing some drill down i found the problem being the mongo image is build for linux/amd64/v8 platform, which i believe is the platform for mac m1/m2.

Expected Behavior

mongodb container to run

Steps to reproduce

docker run pulumi/tutorial-pulumi-fundamentals-database-local in a linux platform

Output of pulumi about

CLI
Version 3.63.0
Go Version go1.20.2
Go Compiler gc

Plugins
NAME VERSION
aws 5.35.0
awsx 1.0.2
docker 3.6.1
nodejs unknown

Host
OS ubuntu
Version 22.04
Arch x86_64

This project is written in nodejs: executable='/usr/local/bin/node' version='v18.16.0'

Current Stack: aumoreira/firstProject/dev

TYPE URN
pulumi:pulumi:Stack urn:pulumi:dev::firstProject::pulumi:pulumi:Stack::firstProject-dev
pulumi:providers:docker urn:pulumi:dev::firstProject::pulumi:providers:docker::default_3_6_1
docker:index/remoteImage:RemoteImage urn:pulumi:dev::firstProject::docker:index/remoteImage:RemoteImage::frontendImage
docker:index/remoteImage:RemoteImage urn:pulumi:dev::firstProject::docker:index/remoteImage:RemoteImage::backendImage
docker:index/network:Network urn:pulumi:dev::firstProject::docker:index/network:Network::network
docker:index/remoteImage:RemoteImage urn:pulumi:dev::firstProject::docker:index/remoteImage:RemoteImage::mongoImage
docker:index/container:Container urn:pulumi:dev::firstProject::docker:index/container:Container::frontendContainer

Found no pending operations associated with dev

Backend
Name pulumi.com
URL https://app.pulumi.com/aumoreira
User aumoreira
Organizations aumoreira, learnOrg

Dependencies:
NAME VERSION
@pulumi/aws 5.35.0
@pulumi/awsx 1.0.2
@pulumi/pulumi 3.63.0
@types/node 16.18.23

Pulumi locates its logs in /tmp by default

Additional context

i know i could build the image by myself, i'm just warning because it will break other users that use linux.

Contributing

Vote on this issue by adding a ๐Ÿ‘ reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

Fundamentals tutorial "container exited immediately"

What happened?

Following the Pulumi introduction tutorial I can't get the app running with the default MongoDB image.

Steps to reproduce

After adding the containers step and executing pulumi up I get the following error:

docker:index:Container (mongo_container):
  error: 1 error occurred:
   * container exited immediately

By executing locally the container:

docker run -dit pulumi/tutorial-pulumi-fundamentals-database-local

I notice is not using the same image platform as the backend and frontend images:

WARNING: The requested image's platform (linux/arm64/v8) does not match the detected host platform (linux/amd64) and no specific platform was requested

Expected Behavior

If building the image from this repo I can complete the tutorial but it would be great to update the docker hub image

Actual Behavior

I can't complete the tutorial following the instructions

Versions used

CLI
Version 3.33.2
Go Version go1.17.10
Go Compiler gc

Host
OS ubuntu
Version 22.04
Arch x86_64

Backend
Name pulumi.com

Additional context

No response

Contributing

Vote on this issue by adding a ๐Ÿ‘ reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

Add more details into the root readme

Hello!

  • Vote on this issue by adding a ๐Ÿ‘ reaction
  • If you want to implement this feature, comment to let us know (we'll work with you on design, scheduling, etc.)

Issue details

Can we add more details into the root readme? This is where a user lands when clicking "code repo" from the Learn pathway. Should have a bit more details to avoid confusion

Affected area/feature

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.