https://pulumi.com logo
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
  • v

    victorious-gigabyte-4729

    06/18/2020, 1:27 AM
    Is there a way to only run some arbitrary code on update? 😞 Previews are firing off a change I make after I create an access key in my project. EG, the following gets called and runs on previews too:
    pulumi.all([config.circleCiToken, config.circleCiProject, userAccessKey.id, userAccessKey.secret])
        .apply(async ([token, project, accessKeyId, accessKeySecret]) => {
            await setCircleCIEnvironmentVariable(token, project,'AWS_ACCESS_KEY', accessKeyId);
            await setCircleCIEnvironmentVariable(token, project,'AWS_ACCESS_KEY_SECRET', accessKeySecret);
        });
    Ideally, it only runs on
    pulumi up
    l
    • 2
    • 2
  • v

    victorious-gigabyte-4729

    06/18/2020, 1:30 AM
    I'm guessing for that to be the case it would have to be some sort of running it as lambda?
  • l

    limited-solstice-34584

    06/18/2020, 5:37 AM
    new to pulumi. Trying to check it out vs stackify.io
  • c

    curved-ghost-20494

    06/18/2020, 12:09 PM
    A change was added to the Pulumi/Actions docker image last week that would really help me out using Github Actions as my CI. Where is the best place to inquire about the publishing of the changes on
    master
    to docker hub?
    🆘 1
    c
    • 2
    • 1
  • m

    magnificent-airport-79411

    06/18/2020, 4:59 PM
    Following this: https://www.pulumi.com/docs/intro/concepts/organizing-stacks-projects/#inter-stack-dependencies I try to do the following:
    var backendStack = new StackReference(config.Require ("backendStack"));
    var apiHostName = backendStack.RequireOutput("apiHostName").Apply(v => v.ToString());
    
    Console.WriteLine("!! API Host Name: " + apiHostName);
    The output of the write line is:
    !! API Host Name: Pulumi.Output`1[System.String]
    What am I doing wrong?
    l
    • 2
    • 7
  • a

    astonishing-quill-88807

    06/18/2020, 8:30 PM
    For the case where I have a monorepo with multiple projects, am I right in determining that each project is determined based on the presence of a Pulumi.yaml file?
  • a

    astonishing-quill-88807

    06/18/2020, 8:31 PM
    Is there any facility for setting a shared config value across projects, or would I have to do it per-project or rely on stack references?
    l
    f
    f
    • 4
    • 8
  • s

    sparse-intern-71089

    06/18/2020, 9:05 PM
    This message was deleted.
    b
    a
    b
    • 4
    • 11
  • b

    bitter-zebra-93800

    06/18/2020, 10:28 PM
    Is there an easy way to move a stack from a personal github repo to a corp github repo?
    f
    • 2
    • 1
  • m

    many-jordan-46874

    06/18/2020, 11:40 PM
    I am trying to build a secret in AWS secrets manager from outputs of a resource. I have tried what is likely the most naive approach like so:
  • m

    many-jordan-46874

    06/18/2020, 11:40 PM
    new aws.secretsmanager.SecretVersion(
      'application',
      {
        secretId: dbSecret.id,
        secretString: JSON.stringify({
          HOST: db.address,
          PORT: db.port,
          USER: db.username,
          PASS: db.password,
          NAME: db.name,
          URI: `postgres://${db.username}:${db.password}@${db.endpoint}/${db.name}`,
        }),
      },
      { dependsOn: db },
    )
  • m

    many-jordan-46874

    06/18/2020, 11:42 PM
    However, this throws a warning.
  • m

    many-jordan-46874

    06/18/2020, 11:43 PM
    Calling [toJSON] on an [Output<T>] is not supported.\n\nTo get the value of an Output as a JSON value or JSON string consider either:\n    1: o.apply(v => v.toJSON())\n    2: o.apply(v => JSON.stringify(v))\n\nSee <https://pulumi.io/help/outputs> for more details.\nThis function may throw in a future version of @pulumi/pulumi.
    l
    • 2
    • 4
  • m

    many-jordan-46874

    06/18/2020, 11:43 PM
    Having a hard time following the docs on how I would solve for this
  • n

    nutritious-area-24048

    06/19/2020, 3:34 AM
    Hi, I'm brand new to pulumi, and while I'm doing pretty well understanding setting up new resources and updating them, I'm struggling to figure out how to use newly created resources or exisitn resources. For example: I create a VPC using AWSX and now want to add some entries and a name to the default RT that was setup. It's not clear if I should pass an object in my function creating the VPC (I'm using TypeScript), and if so what the structure for that object would be, or if I need to somehow get that RT and then modify it. I'm even open to creating a new RT and attaching it to the VPC, but when trying to pass the gatewayID to a route I can't seem to find in the docs how to get the IG id from the newly created VPC so I can use it in creating a new RT.
    f
    b
    l
    • 4
    • 4
  • f

    fast-ice-1848

    06/19/2020, 8:40 AM
    Diagnostics:
      pulumi:pulumi:Stack (azure-py-aks-dev):
        warning: resource plugin azure is expected to have version >=3.9.2, but has ; the wrong version may be on your path, or this may be a bug in the plugin
    is it a bug?
    b
    • 2
    • 1
  • p

    plain-tiger-79744

    06/19/2020, 1:46 PM
    Hello everyone! I would like to use feature branches and deploy those individual in a separate stack. What I have done so far, is to define the stack on my local machine using Pulumi CLI. As I now want to automate the process of creating stacks for each branch I wonder how this is possible especially regarding the produced yaml files and their contents like
    encryptedkey
    . Do I have to check in the produced yaml files after the provisioning process? Is the produced
    encryptkey
    import? Am I approaching this right? I am using Azure Key Vault as a secrets provider.
    w
    • 2
    • 1
  • m

    melodic-student-71781

    06/19/2020, 2:19 PM
    My internet disconnected during a
    pulumi up
    and now all subsequent operations fail:
    Diagnostics:
      pulumi:pulumi:Stack (customerdeployments-dev):
        error: update failed
    
      kubernetes:apps:Deployment (psd-ea-k8-ebosyc-models-deployment):
        error: post-step event returned an error: failed to verify snapshot: resource urn:pulumi:dev::customerdeployments::kubernetes:core/v1:Namespace::east-asia-ingress-basic refers to unknown provider urn:pulumi:dev::customerdeployments::pulumi:providers:kubernetes::psd-ea-aksk8::eddb8f2b-8f2f-458d-ae13-495e7657b7c4
    How can I get out of this? I'm fine with recreating all affected resources, but even destroy --target fails (I can't tear down the whole stack, there are a lot of other resources) The pulumi version is the latest one, but the providers are a bit older.
    s
    • 2
    • 4
  • m

    many-smartphone-58924

    06/19/2020, 4:52 PM
    Is there a way to insert a YAML multi-line block (value that starts with
    |
    ) in a configmap from Typescript?
    • 1
    • 1
  • a

    astonishing-quill-88807

    06/19/2020, 8:41 PM
    Is it possible to retrieve a component resource by its URN? For instance, if I export a component resource as the output of a stack, the resulting reference looks like
    {'export_key': {'urn': 'urn:of:component:resource'}}
  • a

    astonishing-quill-88807

    06/19/2020, 8:42 PM
    Can I use that to get the registered outputs of that component, or do I have to explicitly export each of those outputs? Or construct a new instance of the component using the URN?
    w
    • 2
    • 1
  • a

    acoustic-leather-88378

    06/19/2020, 9:01 PM
    Hi all, with the Go SDK. Given I want to use a resource's
    x.ID()
    (of type
    IDOutput
    ) value as a
    string
    , what is the easiest way to do that?
    w
    • 2
    • 6
  • m

    many-jordan-46874

    06/19/2020, 9:03 PM
    Can anyone point me in the right direction of how to organize a stack into seperate files? I tried creating multiple files (eg.
    dns.ts
    ,
    ecs.ts
    , etc) and then doing an
    export * from './dns.ts'
    for each file from a main
    index.ts
    but only the first export got picked up, and the rest of the referenced files were not processed to build the stack config.
    w
    • 2
    • 2
  • b

    busy-soccer-65968

    06/19/2020, 9:57 PM
    Any way to override a Helm charts
    name
    . Sadly if there is no way I have to run a transformation everywhere it is referenced... Chart.yaml and here is an example of 1 of the templates that references it. deployment.yaml Otherwise we have to overide every template place where chart name is referenced
  • v

    victorious-gigabyte-4729

    06/20/2020, 2:07 AM
    I'm trying to create a dynamic Resource in NodeJS - but when I
    pulumi up
    I get the error
    error: no resource plugin 'pulumi-nodejs' found in the workspace or on your $PATH
    - I'm reading through the docs and don't see where I'd need to install any plugins to do the nodejs dynamic provider in a nodejs pulumi project
    b
    • 2
    • 3
  • f

    famous-kite-69533

    06/20/2020, 6:26 PM
    Hi! I can install the minio chart on 1.17 fine when installed manually, but when installed with Pulumi I get
    apiVersion "apps/v1beta2/StatefulSet" was removed in Kubernetes 1.16. Use "apps/v1/StatefulSet" instead
    - how can I tell Pulumi to ignore these? Thanks
    • 1
    • 1
  • b

    best-lifeguard-91445

    06/21/2020, 2:49 AM
    I'm trying to find release notes for each release to find what has been addressed between versions. Is that available somewhere without having to look through commit logs?
    a
    • 2
    • 2
  • d

    damp-elephant-82829

    06/21/2020, 12:19 PM
    Hello everyone, I am a newbie to Pulumi and I am trying to create a "per branch" deployment on GCP. The idea would be the following: • have one root project • per each branch of any of the microservices, create a project in GCP matching that branch • create the resources for each microservices (i.e. storage bucket, databases, pubsubs) • also I'd need a way to tear down an entire project I could not find out how to dynamically generate "per branch" stacks. Can anyone help me?
    a
    c
    • 3
    • 11
  • b

    breezy-butcher-78604

    06/22/2020, 3:27 AM
    how do i update an existing crossguard policy pack? i've made a change to fix an issue, incremented the version number but whenever i run
    pulumi policy publish
    i get errors about duplicate policy names
  • d

    damp-elephant-82829

    06/22/2020, 7:25 AM
    Hello , I am running pulumi inside a docker build for CI/CD and my pulumi up fails like so: "/workspace/venv" doesn't appear to be a virtual environment
Powered by Linen
Title
d

damp-elephant-82829

06/22/2020, 7:25 AM
Hello , I am running pulumi inside a docker build for CI/CD and my pulumi up fails like so: "/workspace/venv" doesn't appear to be a virtual environment
View count: 1