• s

    stocky-butcher-62635

    5 months ago
    After creating an SQL Server database I want to make the connection string and add it to a key vault.
    // Make the database conneciotn string and store it in the key vault.
                Output<string> cs = administratorLoginPassword.Apply(z => $"Server={sqlServer.FullyQualifiedDomainName}; Database={database.Name}, uid=rwb, pwd={z}");
                KeyVault.Secret s = new KeyVault.Secret($"{PulumiProject}-{ae}-key-vault-secret", new KeyVault.SecretArgs()
                {
                    ResourceGroupName = resourceGroup.Name,
                    VaultName = v.Name,
                    SecretName = "ConnectionString",
                    Properties = new KeyVault.Inputs.SecretPropertiesArgs() { Value = cs }
                });
    But the value is coming out as junk
    Server=Calling [ToString] on an [Output<T>] is not supported.
    
        To get the value of an Output<T> as an Output<string> consider:
        1. o.Apply(v => $"prefix{v}suffix")
        2. Output.Format($"prefix{hostname}suffix");
    
        See <https://pulumi.io/help/outputs> for more details.
        This function may throw in a future version of Pulumi.; Database=Calling [ToString] on an [Output<T>] is not supported.
    
        To get the value of an Output<T> as an Output<string> consider:
        1. o.Apply(v => $"prefix{v}suffix")
        2. Output.Format($"prefix{hostname}suffix");
    
        See <https://pulumi.io/help/outputs> for more details.
        This function may throw in a future version of Pulumi., uid=rwb, pwd=Sql-Server-Admin-Password
    s
    w
    2 replies
    Copy to Clipboard
  • e

    echoing-smartphone-60420

    5 months ago
    Hmm, still fighting my Helm template issue here 🧵. Working for helm but not
    .release
    api
    e
    g
    +1
    66 replies
    Copy to Clipboard
  • q

    quick-airport-30353

    5 months ago
    how can I tell pulumi that my stack files are in a different folder other than the root?
    q
    1 replies
    Copy to Clipboard
  • i

    incalculable-thailand-44404

    5 months ago
    Hi Folks, I am new to Pulumi, I am trying to understand how to extract actual value out of a Pulumi Output<>. this is my usecase :
    const repository = new aws.ecr.Repository(".......");
    
    const serviceImage = pulumi.output(aws.ecr.getImage({
      imageTag: "latest",
      repositoryName: ... NEED TO SPECIFY THE ACTUAL STRING REPO NAME...,
    }));
    repository.name
    is of the form :
    pulumi.Output<String>
    which is why I cannot use it as is.
    i
    b
    +1
    18 replies
    Copy to Clipboard
  • w

    white-chef-55657

    5 months ago
    howdy 👋 I couldn’t find much information on best practices for breaking out pulumi to different files, I’m using typescript and simply importing * from folders according to my own logic not sure it’s the cause, but my issue right now is that I’m exporting a const from an inner file that I include from
    index.ts
    but it’s not being recognized as an output - is pulumi picking up all of the exports from all the files or do I need to indicate something specific in the root level
    index.ts
    ?
    w
    v
    7 replies
    Copy to Clipboard
  • r

    rhythmic-branch-12845

    5 months ago
    hi folks, I have a couple of questions that I guess probably belong here rather than in #general. Rather than repeating myself, could somebody help me with them?https://pulumi-community.slack.com/archives/C84L4E3N1/p1649911995262149 https://pulumi-community.slack.com/archives/C84L4E3N1/p1649925295765309
    r
    1 replies
    Copy to Clipboard
  • f

    full-king-49894

    5 months ago
    Hi all, super noob question here. I can't find any documentation that describes how the Pulumi file structure should be used with the project it is deploying. Assume I have an existing NodeJS project that implements an API endpoint using a Lambda container and function URL. This project is under Git control and has /.gitignore /README.md /.eslintrc.json /other-typical-root-level-config-files /src /src/lambda.dockerfile /src/handler.js /src/some-other-non-relevant-files /package.json Should I create a pulumi folder and put my pulumi files in there? Since I already have a package.json, is there any issue adding Pulumi's deps to the existing package.json devDependencies object? And if I can do that, can I leave the other Pulumi files in the root, and if so, can I rename Pulumi's index.js to pulumi.js to differentiate from the actual app being deployed?
    f
    m
    +2
    18 replies
    Copy to Clipboard
  • f

    full-king-49894

    5 months ago
    FWIW, I find the documentation for Pulumi to be very good. Just surprised there is no best-practices section or section that describes how to use it in a real-world project
    f
    1 replies
    Copy to Clipboard
  • b

    brash-room-69051

    5 months ago
    Hi Folks, I’ve tried Pulumi for the first time by following the tutorial here. But I used
    Node.js
    app instead, just a simple web server written in
    Express.js
    . Once, I ran
    pulumi up
    and wait until everything finished, I got an error as picture below. Here is my code.
    aws:ecs:Service (app-svc):
        error: 1 error occurred:
        	* creating urn:pulumi:dev::pulumi-nodejs-fargate::awsx:x:ecs:FargateService$aws:ecs/service:Service::app-svc: 1 error occurred:
        	* error waiting for ECS service (arn:aws:ecs:ap-southeast-1:982138089702:service/cluster-37bf9a3/app-svc-358fe7b) to become ready: ResourceNotReady: exceeded wait attempts
    b
    a
    3 replies
    Copy to Clipboard
  • b

    bitter-army-70832

    5 months ago
    Hi all, any idea why this is happening on
    pulumi login
    ?
    b
    1 replies
    Copy to Clipboard