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
yaml
  • b

    brainy-caravan-45245

    05/04/2022, 6:51 PM
    set the channel description: For all conversations related to using Pulumi with YAML.
  • r

    rough-window-15889

    05/11/2022, 6:05 PM
    Is there a way to reference other yaml files so I could break up resources into separate yaml files or would I have to go the route of breaking up the stacks and using stack references?
    t
    q
    +4
    • 7
    • 10
  • b

    broad-raincoat-27115

    05/19/2022, 9:59 AM
    Has anyone successfully connected to the openstack provider on a pc using yaml
    o
    • 2
    • 42
  • e

    enough-garden-22763

    05/19/2022, 2:42 PM
    @ancient-policeman-24615 recently open-sourced an LSP server that supports Pulumi YAML https://github.com/pulumi/pulumi-lsp - and while it is early days I personally find it very exciting. The basic code completion and type-checking functions are working over Pulumi YAML programs for resource tokens and opitons. I’ve had some success using it in Emacs.
    👍 4
    😒parkles-purple: 3
    ✅ 1
  • m

    mammoth-salesclerk-61945

    05/20/2022, 10:37 PM
    I'm having an issue when trying to pass an output to an intrinsic function
    the argument to Fn::ToBase64 must be a string; the argument to Fn::ToBase64 must be a string
    the variables section is:
    variables:
      kubeconfigs:
        Fn::Invoke:
          Function: azure-native:containerservice:listManagedClusterUserCredentials
          Arguments:
            resourceGroupName: ${rg.name}
            resourceName: ${cluster-1.name}
      kubeconfigb64:
        Fn::ToBase64: ${kubeconfigs.kubeconfigs[0].value}
    the outputs section is as such
    outputs:
      kconfig: ${kubeconfigs.kubeconfigs[0].value}
    the output is:
    Outputs:
      + kconfig: "YXBpVmVyc2lv................................................."
    o
    • 2
    • 4
  • b

    bulky-artist-13104

    05/29/2022, 9:48 PM
    Hi everyone, I'm new to using Pulumi, so I'm also very new to using
    cue
    and
    yaml
    in general. I'm trying to build out a simple kubernetes cluster using AWS provider while using the
    cue
    compiler option. I started from the basic example provided on the
    pulumi-yaml
    project. When attempting to bring up the resources, I wanted to connect to the cluster with my local
    kubectl
    install. I ran into an error
    getting credentials: exec plugin is configured to use API version <http://client.authentication.k8s.io/v1beta1|client.authentication.k8s.io/v1beta1>, plugin returned version <http://client.authentication.k8s.io/v1alpha1|client.authentication.k8s.io/v1alpha1>
    . I looked at the detailed output from Pulumi, and it seems to be creating the
    kubeconfig
    file with ``client.authentication.k8s.io/v1beta1`` instead of
    <http://client.authentication.k8s.io/v1alpha1|client.authentication.k8s.io/v1alpha1>
    . I installed different versions of
    kubectl
    and
    kubectl 1.21
    works so far for me where I can connect, but it doesn't list in resources, since Pulumi failed to finish the rest of the resources. I'm not sure if this is the correct place to ask for help.
    o
    • 2
    • 3
  • d

    damp-fall-55922

    06/08/2022, 11:10 PM
    is there a path towards utilizing yaml but using custom resources? I really love the yaml experience for end users (engineering teams), but would love to be able to create abstractions for it in the form of ComponentResources in any language
    l
    t
    a
    • 4
    • 11
  • d

    damp-fall-55922

    06/23/2022, 2:23 PM
    when I have a yaml stack and just list 1st party resources, I get a nice resource graph whose root is a pulumi😛ulumi:Stack, like so https://l.hr/95KTwU but when I reference only a custom ComponentResource from the yaml stack, the root is actually that one resource https://l.hr/Df3rLN and when I add a second ComponentResource…. I only see those resources. https://l.hr/YDtiMb even though in the List View you see all of them https://l.hr/wyL5k6 both ComponentResources are implemented in python and accurately call
    super().__init__("noom:aurora:postgres", service_name, props, opts)
    any thoughts?
    w
    • 2
    • 4
  • w

    witty-candle-66007

    06/27/2022, 4:43 PM
    I was able to reproduce this with the python boilerplate. Nice find, btw. I’ll open an issue.
  • w

    witty-candle-66007

    06/27/2022, 5:04 PM
    Looks like it was fixed in the latest version of the CLI, actually. So upgrading to v3.35.1 of the Pulumi CLI fixed the problem for me.
  • m

    many-telephone-49025

    06/27/2022, 8:24 PM
    Hi everyone! short question: Is it possible to choose a different api version for the Azure Native Provider when using Pulumi YAML?
    t
    b
    • 3
    • 8
  • b

    big-architect-71258

    07/21/2022, 11:49 AM
    @tall-librarian-49374 How do I select a specific provider version in Pulumi YAML. So far I have not been able to find anything in the documentation or a corresponding example.
    t
    o
    f
    • 4
    • 22
  • j

    jolly-air-80617

    08/09/2022, 8:38 PM
    new guy question - anyone have a good example of spinning up an ec2 instance in an existing vpc/subnet?
    t
    • 2
    • 2
  • p

    plain-angle-80802

    09/15/2022, 6:19 PM
    Hello - I am new to Pulumi. Currently having issues deploying to a local vCenter using vsphere provider. Just wondering if anyone here has any experience deploying to Vsphere?
    b
    • 2
    • 8
  • b

    bright-orange-69401

    09/18/2022, 4:33 AM
    📦 Component Packages 📦 Is it possible to develop my own Component Package (developed in Python) and use those components in a Pulumi YAML project ? Imagine I create a
    nuage:Function
    component, how would Pulumi YAML know about it ? Don't I need to somehow install it ? Maybe as a Pulumi plugin ?
    l
    • 2
    • 5
  • b

    bright-orange-69401

    09/18/2022, 5:40 AM
    ✨ Code completion ✨ Is there some sort of completion plugin or typing that we could possibly use to improve the DX in an IDE such as VSCode ? In any other languages, the class typings usually help with Resource parameters in Pulumi, but in YAML there's no such thing... right ? I'm using GitHub Copilot and it honestly does a decent job, but official completion would be better 😉
    l
    • 2
    • 1
  • s

    straight-arm-50771

    10/05/2022, 2:48 PM
    Is it possible to split the
    Pulumi.yaml
    resource definition up between multiple files? Not seeing any docs around this
    b
    • 2
    • 4
  • s

    straight-arm-50771

    10/05/2022, 7:48 PM
    I'm fetching some secrets that are returned as JSON, yet they're classed somewhere as a string. I get this error:
    Error: kubernetes:core/v1:Secret is not assignable from {type: string, metadata: {name: string, namespace: string}, data: string}
          on Pulumi.yaml line 537:
         537:         ${dockerHubCredentials}
        Cannot assign '{type: string, metadata: {name: string, namespace: string}, data: string}' to 'kubernetes:core/v1:Secret':
          data: Cannot assign type 'string' to type 'Map<string>'
    # Pulumi.yaml #
    variables:
      dockerHubCredentials:
        Fn::Invoke:
          Function: gcp:secretmanager/getSecretVersion:getSecretVersion
          Arguments:
            secret: k8s_global_dockerhub-regcred
            project: myproj
          Return: secretData
    
    resources:
      regcred:
        type: kubernetes:core/v1:Secret
        properties:
          type: <http://kubernetes.io/dockerconfigjson|kubernetes.io/dockerconfigjson>
          metadata:
            name: regcred
            namespace: some-ns
          data:
            ${dockerHubCredentials}
    
    outputs:
      debugRegCred: ${dockerHubCredentials}
    # Return #
    Outputs:
    debugRegCred: {".dockerconfigjson": "my-base64-encoded-config"}
    b
    • 2
    • 9
  • s

    straight-arm-50771

    10/06/2022, 5:23 PM
    Any suggestions on how to best execute a command on every run between two resources? Something like:
    auth:
        Fn::Invoke:
          Function: command:local:run
          Arguments:
            command: USE_GKE_GCLOUD_AUTH_PLUGIN=True gcloud container clusters get-credentials ${cluster.id} --region us-east4 --project ${pulumi.stack}
          options:
            parent: ${cluster}
    Tried shoe-horning it into a resource def, but I don't have a
    type
    . All of the examples show this sort of thing in the
    variables:
    section, which wouldn't work between resources that both create the k8s cluster, and those that write to it. I'm familiar with
    command:local:Command
    , but I need it to run every time
    s
    e
    • 3
    • 9
  • r

    refined-pilot-45584

    10/25/2022, 4:27 PM
    Hey All; I am going to ask an massively Rookie question here. Then when I get an answer that makes me feel like a fool I’ll show myself the door; With a YAML resource implementation. Can I implement complex structures in Pulumi; Specifically; can I make a “loop” over an Array for example? Create 4 of the same resource, based on 4 items in an array? I’m addition, can a template accept type array as input from the CLI Pulumi new prompt?
    b
    l
    f
    • 4
    • 12
  • p

    powerful-room-57148

    11/18/2022, 5:26 PM
    👋 Is it possible to define a ComponentResource via YAML?
    b
    d
    • 3
    • 3
  • f

    future-air-70511

    01/26/2023, 9:46 PM
    For an Okta SAML app, a valid property value for idpIssuer is http://www.okta.com/${org.externalKey}, however Pulumi tries to evaluate that as a variable. I tried to encapsulate it with quotes without luck - any idea how to escape those values?
    resources:  
      example:
        type: okta:app:Saml
        properties:
    	  ...
          idpIssuer: "<http://www.okta.com/${org.externalKey}>"
          subjectNameIdTemplate: "${user.userName}"
          userNameTemplate: "${source.samAccountName}"	  
    	  ...
    b
    a
    • 3
    • 4
  • a

    able-train-72108

    01/31/2023, 8:11 PM
    Hello, in this section https://www.pulumi.com/blog/pulumi-yaml/#use-components-built-in-other-pulumi-languages I understand that I can use component created in another language, but I don't find any examples of that in the github example repo. I can do it within my c# solution, ex:
    b
    w
    • 3
    • 6
  • f

    fancy-shoe-18611

    02/22/2023, 12:57 AM
    Anyone know of a good way to replicate terraforms
    cidrsubnet
    for the yaml runtime?
    b
    • 2
    • 1
  • w

    worried-helmet-23171

    02/23/2023, 11:49 PM
    Q. Wondering if there is a way (Fn::) to import external files into Pulumi.yaml as a value such that it also keeps indentation intact ?
    • 1
    • 1
  • r

    rich-motorcycle-71684

    02/24/2023, 2:25 AM
    Is there any way to import resources into pulumi and include all dependents? At the moment for example if I'm trying to work out how to create an api gateway with these subcomponents • restapi • resource ◦ method ◦ integration(lambda) • resource ◦ method ◦ integration(lambda) etc. Then I have to individually figure which components are needed (not trivial) , then find out out in the docs what each component is called, go to that page, copy the
    pulumi import
    statement, paste in the IDs from the aws console, then copy and paste the code. It would be really nice if I could just do
    pulumi import {top level ID} --include-dependents
    and it would scan through the whole thing and provide me the code for the whole lot
    b
    • 2
    • 2
  • r

    rich-motorcycle-71684

    02/24/2023, 7:17 AM
    Can anyone tell me the different between
    type: aws:apigateway:RestApi
    and
    type: aws-apigateway:RestAPI
    I can't seem to find it in the docs. The 2nd one has
    .url
    as a property, the first doesn't. But the first one is what is mentioned in the documentation, I also checked the aws native api docs but that is very lacking in examples and also doesn't have
    .url
    as an output property. The first is generated by doing
    pulumi new
    and selecting from one of the templates, I believe it is aws yaml serverless or something like that
    t
    • 2
    • 3
  • f

    freezing-daybreak-42018

    03/03/2023, 7:30 PM
    hi everyone, can someone give me guidance on how to split resources in a single stack across different subscriptions (same tenant, and using that i am using is an owner on both) ?
    r
    • 2
    • 1
  • f

    freezing-daybreak-42018

    03/03/2023, 7:30 PM
    This is what I understood how to do it:
  • f

    freezing-daybreak-42018

    03/03/2023, 7:30 PM
    variables: subscriptionId1: ad818ed1-a52d-4a5c-8cba-c3e84872abb0 subscriptionId2: 0e111515-3d91-4650-bd92-dfca52077d62 providers: - ${azure1} - ${azure2}
Powered by Linen
Title
f

freezing-daybreak-42018

03/03/2023, 7:30 PM
variables: subscriptionId1: ad818ed1-a52d-4a5c-8cba-c3e84872abb0 subscriptionId2: 0e111515-3d91-4650-bd92-dfca52077d62 providers: - ${azure1} - ${azure2}
View count: 1