https://pulumi.com logo
Docs
Join the conversationJoin Slack
Channels
announcements
automation-api
aws
azure
blog-posts
built-with-pulumi
cloudengineering
cloudengineering-support
content-share
contribex
contribute
docs
dotnet
finops
general
getting-started
gitlab
golang
google-cloud
hackathon-03-19-2020
hacktoberfest
install
java
jobs
kubernetes
learn-pulumi-events
linen
localstack
multi-language-hackathon
office-hours
oracle-cloud-infrastructure
plugin-framework
pulumi-cdk
pulumi-crosscode
pulumi-deployments
pulumi-kubernetes-operator
pulumi-service
pulumiverse
python
registry
status
testingtesting123
testingtesting321
typescript
welcome
workshops
yaml
Powered by Linen
general
  • f

    future-dawn-71635

    09/15/2022, 12:10 PM
    In a Python unittest, can I get a list of all available outputs?
    pulumi.Output.all
    requires a param of the list of outputs I want. But I would like to assert on all of them: https://github.com/pulumi/examples/blob/master/testing-unit-py/test_ec2.py#L36
  • f

    future-dawn-71635

    09/15/2022, 12:16 PM
    I’m trying to write a VCR-style test in Python to freeze all outputs and prevent regression while refactoring
    l
    • 2
    • 3
  • v

    victorious-toddler-58071

    09/15/2022, 12:42 PM
    Hi! Question on dependencies between micro-stacks/projects/programs. We are discovering Pulumi for large platform automation and are dealing with multi tenant infrastructure & service needs. (many teams, many projects, single foundation) I looks like micro-stack approach is the better fit. I'm looking for the best way on how to manage the dependencies between micro stacks; And how to run pulumi recursively across multiple micro-stacks. Example: Project structure
    ├── infrastructure
    │   ├── foundation (Platform wide Core components [VPC, K8s, ...])
    │   │   ├── main.go
    │   │   ├── Pulumi.yaml
    │   │   ├── Pulumi.dev.yaml
    │   │   ├── Pulumi.staging.yaml
    │   │   └── Pulumi.prod.yaml
    │   ├── solution1 (Solution specific infra components [MongoDB, API Gateway, ...] )
    │   │   ├── main.go
    │   │   ├── Pulumi.yaml
    │   │   ├── Pulumi.dev.yaml
    │   │   ├── Pulumi.staging.yaml
    │   │   └── Pulumi.prod.yaml
    │   ├── solution2 (Solution specific infra components [Postgres, SNS, ...] )
    │   │   ├── main.go
    │   │   ├── Pulumi.yaml
    │   │   ├── Pulumi.dev.yaml
    │   │   ├── Pulumi.staging.yaml
    │   │   └── Pulumi.prod.yaml
    ├── services
    │   ├── foundation (Platform wide Core components [Auth services, IAM services, ...])
    │   │   ├── main.go
    │   │   ├── Pulumi.yaml
    │   │   ├── Pulumi.dev.yaml
    │   │   ├── Pulumi.staging.yaml
    │   │   └── Pulumi.prod.yaml
    │   ├── solution1 (Solution specific services [Custom micro services, ...] )
    │   │   ├── main.go
    │   │   ├── Pulumi.yaml
    │   │   ├── Pulumi.dev.yaml
    │   │   ├── Pulumi.staging.yaml
    │   │   └── Pulumi.prod.yaml
    │   ├── solution2 (Solution specific services  [Custom micro services, ...] )
    │   │   ├── main.go
    │   │   ├── Pulumi.yaml
    │   │   ├── Pulumi.dev.yaml
    │   │   ├── Pulumi.staging.yaml
    │   │   └── Pulumi.prod.yaml
    ...
    In this example above; the infra components from solution 1 & solution 2 can only be deployed once the infra foundation is deployed. Next the service need to go after all infra has completed. last Solution services have to after foundation services. How can i manage this dependencies? And how can i execute a single pulumi command to go and execute/update/destroy all stacks at once in right order?
    s
    e
    • 3
    • 2
  • e

    elegant-zoo-39359

    09/15/2022, 7:14 PM
    Hi, I can't seem to run
    pulumi import
    completely any more - it hangs after displaying the duration, even if i select 'no' to not import - does anyone else get this? v3.39.3
    l
    • 2
    • 4
  • a

    ancient-shampoo-2049

    09/15/2022, 9:40 PM
    Since updating to pulumi v3.39.3 very slow performance during ‘pulumi up’ (the change is adding environment variables to a single AWS CodeBuild). Any suggestions on how to make it faster? This was working just fine in the previous version.
    s
    • 2
    • 25
  • r

    rough-jordan-15935

    09/16/2022, 3:01 AM
    hi im trying to create a lambda layer and im getting this error. why is it happening? i want to create one for pupetter
    l
    • 2
    • 3
  • l

    lively-helmet-97905

    09/16/2022, 3:38 AM
    Question: Which are the differences of Amazon EKS module and Amazon Classic EKS ?. Im a little bit confused of this two versions.
    l
    • 2
    • 1
  • n

    nutritious-postman-78196

    09/16/2022, 9:30 AM
    Hi Pulumi Community, Currently, we are working on a new Pulumi package for creating and managing *Apache APISIX (https://apisix.apache.org/)* resources. The package will be based on the Terraform provider. Can we collaborate with maybe Dev.Rel team to bring this integration to Pulumi registry (https://www.pulumi.com/registry/)? Do you have step-by-step instructions on how to register the package there?
    m
    • 2
    • 4
  • w

    wonderful-spoon-89039

    09/16/2022, 9:35 AM
    Hi I'm trying to build an AKS cluster on azure but some of the configurations in pulumi_azure_native are not available like they're in arm templates. How can i overcome this problem?
    h
    s
    • 3
    • 2
  • c

    curved-rain-57057

    09/16/2022, 10:35 AM
    anyone can assist how to access GCP cluster with python?
  • s

    sparse-gold-10561

    09/16/2022, 2:44 PM
    Someone ran pulumi up manually and creates some resources and didn't commit the code into our Source Control... Is there any way to regenerate the code from the existing pulumi state?
  • s

    sparse-gold-10561

    09/16/2022, 2:45 PM
    will import work here, even though the resource is already managed by pulumi?
    b
    • 2
    • 3
  • d

    delightful-monkey-90700

    09/16/2022, 8:25 PM
    Are there plans to improve management of stack-specific parameters and secrets ? It seems less than half-baked right now.
    s
    m
    +3
    • 6
    • 61
  • b

    brief-jelly-98203

    09/16/2022, 10:28 PM
    Hey y'all, I am creating a bunch of resources through a kubernetes helm chart with pulumi but for some reason it created them the first time but on subsequent runs it wants to create the resources again (these come from the cert manager and rancher helm charts). Is there a way to mark them as created? I tried refresh but it still wants to create them on subsequent
    pulumi up
    runs
    s
    f
    • 3
    • 9
  • s

    strong-helmet-83704

    09/17/2022, 2:53 AM
    I’m not sure why sometimes my outputs are detected as “yaml” - they are not… and this seems to affect the formatting. Is there any way to tell Pulumi that my export is NOT yaml?
    ~ test_output          : (yaml) {
  • f

    flat-journalist-57447

    09/17/2022, 10:37 AM
    hi.. sir I am Ravi sekhar from Vizag India. how can do ? this project. please explain me . which software is used
    b
    • 2
    • 1
  • f

    flat-journalist-57447

    09/17/2022, 10:38 AM
    I am waiting for your reply sir
    😃 1
  • a

    abundant-telephone-90024

    09/18/2022, 10:53 AM
    Hi! Is there a way to define a property as a Map in the schema?
  • t

    thankful-father-68341

    09/18/2022, 2:39 PM
    https://medium.com/@abvijaykumar/list/c876b77c29da
  • g

    gorgeous-accountant-60580

    09/18/2022, 3:29 PM
    I’ve noticed that if I install the CLI from brew (with
    brew install pulumi/tap/pulumi
    ) I get version 3.39.3, while the latest available on GitHub is 3.40.0. Is it to be expected that the version available from brew lags behind?
    b
    • 2
    • 1
  • g

    gentle-market-22852

    09/18/2022, 4:10 PM
    Is any work happening with Pulumi w.r.t to MLOps, AIOps, DataOps, ModelOps https://vitalflux.com/differences-between-mlops-modelops-aiops-dataops/. Any special examples would help a lot.
    👀 1
  • f

    few-plastic-88435

    09/19/2022, 2:15 PM
    Hi, someone can tell me which values are required to add managed node groups to my eks cluster ?. Actually I'm getting this error 😢 . URL: https://www.pulumi.com/registry/packages/eks/api-docs/managednodegroup/
    b
    • 2
    • 2
  • f

    few-plastic-88435

    09/19/2022, 3:38 PM
    Exists a way that I can enable eks addons using Pulumi yaml syntax ?. Or this feature is not ready yet ?
    s
    • 2
    • 3
  • f

    few-plastic-88435

    09/19/2022, 5:52 PM
    Does it possible update an eks cluster using Pulumi ? I mean, update from 1.21 to 1.22 ? which steps do I need to follow ?
    • 1
    • 2
  • s

    sticky-church-6919

    09/19/2022, 6:58 PM
    Hi, i have an issue where my azure function files are removed when i run my pulumi stack for the given function; The only change is lastModefied . client-function-dev (azure-native:web:WebApp) ~ azure-native:web:WebApp (update) lastModifiedTimeUtc : "2022-09-16T07:44:38.1033333" => "2022-09-19T14:36:49.5033333"
    v
    l
    • 3
    • 3
  • t

    tall-sandwich-14901

    09/19/2022, 7:34 PM
    Is it possible to self reference a resource? I.e. say I wanted to use some of the info of an application registration in its creation, like so:
    const appReg = new azuread.Application("app", {
       displayName: "name",
       identifierUris: [`${baseUrl}/${self.applicationId}`]
    })
    Would something like
    self.applicationId
    be possible?
    l
    • 2
    • 20
  • s

    sparse-knife-40442

    09/19/2022, 8:00 PM
    Hello Pulumi community, Im creating DNS records and zones using pulumi cloudflare provider, im getting an issue when trying to get the zone Id output as an input for my record creation, something very simple like
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		conf := config.New(ctx, "")
    		accountID := conf.Require("accountId")
    		
    		zone, err := cloudflare.NewZone(ctx, "<http://zone.io|zone.io>", &cloudflare.ZoneArgs{
    			AccountId: pulumi.String(accountID),
    			Plan:      pulumi.String("free"),
    			Zone:      pulumi.String("<http://zone.io|zone.io>"),
    		}, pulumi.Protect(true))
    		if err != nil {
    			return err
    		}
    		_, err := cloudflare.NewRecord(ctx, "test_record", &cloudflare.RecordArgs{
    			ZoneId: zone.Id,
    			Name:    pulumi.String("test"),
    			Value:   pulumi.String("0.0.0.0"),
    			Type:    pulumi.String("A"),
    			Ttl:     <http://pulumi.Int|pulumi.Int>(1),
    			Proxied: pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    
    }
    Im constantly getting the error
    ./main.go:56:21: zone.Id undefined (type *cloudflare.Zone has no field or method Id)
    But as per provider documentation the Id output actually exists and if I change Zone.Id for another output like zone.Status it works , Could this be a provider bug or am I doing something wrong?
    b
    • 2
    • 8
  • w

    wide-wire-45375

    09/19/2022, 10:15 PM
    Hi, Can someone tell me why
    pulumi destroy
    fails to remove ecr repo? It gives an error indicating the repo is not empty. I am trying to delete the repo as well as the images with
    pulumi destroy
    command. This code that creates the ecr image:
    const imageUrl = pulumi.output(
                awsx.ecr.buildAndPushImage('my-image', {
                    context: './',
                    dockerfile: './Dockerfile.track',
                }).imageValue
              ) as pulumi.Output<string>
    l
    • 2
    • 8
  • s

    steep-toddler-94095

    09/20/2022, 2:50 AM
    is there a way to update the stack config without running
    pulumi up
    . sort of like a reverse
    pulumi config refresh
    or something like what
    pulumi config set --update-state foo bar
    would do if it were a real command?
    l
    • 2
    • 2
  • r

    red-energy-41002

    09/20/2022, 8:00 AM
    Hello everybody, i have a small issue deploying a helm chart to kubernetes and changing some config values. According to the helm chart documentation default components can be removed setting them to
    null
    . I have tried several ways to set the config to
    null
    but I cant manage to do it and then the default config is used. Is this somehow possible?
    _, err := s.NewChartRelease(otelCollectorChart, namespace.Metadata.Elem().Name(), pulumi.Map{
            "fullnameOverride": pulumi.String("otel-collector"),
            "mode":             pulumi.String("deployment"),
            "config": pulumi.Map{
                "receivers": pulumi.Map{
                    "prometheus": nil,
                }}})
    In this example I want to set the "prometheus" config to null
Powered by Linen
Title
r

red-energy-41002

09/20/2022, 8:00 AM
Hello everybody, i have a small issue deploying a helm chart to kubernetes and changing some config values. According to the helm chart documentation default components can be removed setting them to
null
. I have tried several ways to set the config to
null
but I cant manage to do it and then the default config is used. Is this somehow possible?
_, err := s.NewChartRelease(otelCollectorChart, namespace.Metadata.Elem().Name(), pulumi.Map{
        "fullnameOverride": pulumi.String("otel-collector"),
        "mode":             pulumi.String("deployment"),
        "config": pulumi.Map{
            "receivers": pulumi.Map{
                "prometheus": nil,
            }}})
In this example I want to set the "prometheus" config to null
View count: 1