Jordi
Jordi

Reputation: 23277

Pulumi: empty stack

I'm getting this output when I want to list my current stack:

enter image description here

I don't quite figure out why it's getting me this message.

This is my project:

enter image description here

Here you have code:

import * as k8s from "@pulumi/kubernetes";

const appLabels = { app: "nginx" };
const deployment = new k8s.apps.v1.Deployment("nginx", {
    spec: {
        selector: { matchLabels: appLabels },
        replicas: 1,
        template: {
            metadata: { labels: appLabels },
            spec: { containers: [{ name: "nginx", image: "nginx" }] }
        }
    }
});
export const name = deployment.metadata.apply(m => m.name);

I've tried to up current resources:

enter image description here

Upvotes: 0

Views: 369

Answers (1)

4c74356b41
4c74356b41

Reputation: 72191

because you didnt create any resources with pulumi up yet. pulumi stack only displays information about current stack state. after you run pulumi up and accept to create resources pulumi stack will show you that the resource is created.

Upvotes: 5

Related Questions