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

    fresh-wire-95028

    10/20/2021, 9:41 PM
    How exactly do I use
    pulumi import
    on an existing resource. Say I have an ARN of a resource I manually created:
    arn:aws:iam::12345:saml-provider/VPN
    . How would I import it?
    l
    • 2
    • 3
  • b

    brash-sugar-33876

    10/21/2021, 7:23 AM
    Hi, I'm trying to setup automated CI/CD using codebuild and codedeploy, I'm successfully building the artifact I want to deploy and storing it in s3 but I can't find anywhere in the docs where I should be referencing this artifact when setting up codedeploy. How is codedeploy supposed to be aware of the existence of this artifact i've created and then subsequently deploy this to the different ec2 instances I have created?
  • l

    little-journalist-4778

    10/21/2021, 10:23 AM
    Hi, I noticed that during unit testing the Stack is initialised only once and is kept for all the execution, this is a problem for me because during test we execute
    register_stack_transformation
    and is not removed after a single test execution. I found a workaround to reset the Stack for each test, do you think is good or I'm messing with pulumi internals?
    @pytest.fixture(autouse=True)
    def pulumi_mocks():
        pulumi.runtime.set_mocks(BaseMocks())
        yield
        pulumi.runtime.settings.ROOT = None
  • c

    chilly-magazine-4507

    10/21/2021, 11:27 AM
    why are commits to my pulumi stack co-authored by
    lblackstone
    ?
    b
    • 2
    • 1
  • c

    chilly-magazine-4507

    10/21/2021, 12:01 PM
    my pulumi up is only creating the stack, and not the actual resources
    p
    • 2
    • 3
  • f

    fast-oyster-42706

    10/21/2021, 2:28 PM
    I noticed in azure provider all resource lookups require resource name. There does not seem to be a way to search for resources by tags. Is this just and Azure provider issue? It is common practice to use tags only when searching for resources in the cloud and just leave the resource name as random. Is there any support coming for search by tag?
  • f

    flat-appointment-12338

    10/21/2021, 3:03 PM
    I am getting an error while building a dynamic Resource but im not sure what exactly this means:
    Error: Secret outputs cannot be captured by a closure.
    w
    • 2
    • 7
  • f

    fresh-wire-95028

    10/21/2021, 4:03 PM
    I created a resource outside the pulumi stack (manually in the console). But I make a reference to it in the pulumi stack. However...when I try to take down my stack, it tries to take down my external resource. Any way I can prevent this?
    aws:iam:SamlProvider (default):
        error: Preview failed: unable to delete resource "urn:pulumi:toli::xxx::aws:iam/samlProvider:SamlProvider::default"
        as it is currently marked for protection. To unprotect the resource, either remove the `protect` flag from the resource in your Pulumiprogram and run `pulumi up` or use the command:
        `pulumi state unprotect urn:pulumi:toli::xxx::aws:iam/samlProvider:SamlProvider::default`
    p
    • 2
    • 37
  • s

    sparse-gold-10561

    10/21/2021, 4:53 PM
    With Team Stack Permissions, can I grant access to a tag this way any new stack with the tag gets automatically added to their stack access? Or do I have to add in each new stack every time one is created?
  • s

    steep-cartoon-89174

    10/21/2021, 5:17 PM
    Hey everyone ! anybody already created OpenVPN certificates (CA, server and client) with Pulumi - in order to deploy a Client VPN Endpoint ?
  • s

    steep-cartoon-89174

    10/21/2021, 5:20 PM
    or more generally worked with certificates and pulumi ?
    b
    • 2
    • 12
  • s

    square-car-84996

    10/21/2021, 6:40 PM
    is there a good way to work with pulumi and multiple stacks (i.e. a dev, test, staging, prod) where you can promote between them? It seems that since the current stack is denoted by a Pulumi.{stackname}.yaml there isn't a good way to version the configuration embedded within that stack yaml, and you end up accruing merge commits as you push changes to the next stack
    b
    s
    • 3
    • 15
  • c

    cool-dress-96114

    10/21/2021, 9:16 PM
    Hi there, trying to evaluate Pulumi and doing the AWS tutorial to files to S3 here: https://pulumi.awsworkshop.io/20_cloud_engineering_python/20_getting_started_with_pulumi/30_updating_infrastructure.html Getting a stack overflow that times out
    <http://github.com/pulumi/pulumi/sdk/v3/go/pulumi.marshalInput({0x18b6000|github.com/pulumi/pulumi/sdk/v3/go/pulumi.marshalInput({0x18b6000>, 0xc0001b08c0}, {0x1a6ec10, 0x181b1a0}, 0x1)
            /Users/jordan/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.15.0/go/pulumi/rpc.go:281 +0x27c5
        <http://github.com/pulumi/pulumi/sdk/v3/go/pulumi.marshalInput({0x18b6000|github.com/pulumi/pulumi/sdk/v3/go/pulumi.marshalInput({0x18b6000>, 0xc0001b08c0}, {0x1a6ec10, 0x181b1a0}, 0x1)
            /Users/jordan/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.15.0/go/pulumi/rpc.go:281 +0x27c5
        <http://github.com/pulumi/pulumi/sdk/v3/go/pulumi.marshalInput({0x18b6000|github.com/pulumi/pulumi/sdk/v3/go/pulumi.marshalInput({0x18b6000>, 0xc0001b08c0}, {0x1a6ec10, 0x181b1a0}, 0x1)
            /Users/jordan/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.15.0/go/pulumi/rpc.go:281 +0x27c5
        <http://github.com/pulumi/pulumi/sdk/v3/go/pulumi.marshalInput({0x18b6000|github.com/pulumi/pulumi/sdk/v3/go/pulumi.marshalInput({0x18b6000>, 0xc0001b08c0}, {0x1a6ec10, 0x181b1a0}, 0x1)
            /Users/jordan/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.15.0/go/pulumi/rpc.go:281 +0x27c5
        ...additional frames elided...
        created by <http://github.com/pulumi/pulumi/sdk/v3/go/pulumi.(*Context).registerResource|github.com/pulumi/pulumi/sdk/v3/go/pulumi.(*Context).registerResource>
            /Users/jordan/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.15.0/go/pulumi/context.go:773 +0x772
        exit status 2
    Any ideas would be greatly appreciated as I am not sure how to debug this
    l
    b
    • 3
    • 12
  • p

    polite-portugal-60022

    10/21/2021, 10:38 PM
    Hey there, I'm doing some evaluations on Pulumi for GCP. I'm testing importing a (basic) instance and can't seem to get past this:
    user1@linux1:~/pulumi/project> pulumi import 'gcp:compute/instance:Instance' instance4 "<https://www.googleapis.com/compute/v1/projects/test-gcp-project/zones/us-west1-a/instances/instance4>"
    Previewing import (dev)
    
         Type                     Name            Plan       Info
     +   pulumi:pulumi:Stack      proj-dev  create     1 error
     =   └ gcp:compute:Instance  instance4     import     7 errors
    
    Diagnostics:
      pulumi:pulumi:Stack (proj-dev):
        error: preview failed
    
      gcp:compute:Instance (instance4):
        error: gcp:compute/instance:Instance resource 'instance4' has a problem: Computed attribute cannot be set. Examine values at 'Instance.NetworkInterfaces[0].Name'.
        error: gcp:compute/instance:Instance resource 'instance4' has a problem: Computed attribute cannot be set. Examine values at 'Instance.NetworkInterfaces[0].Ipv6AccessType'.
        error: gcp:compute/instance:Instance resource 'instance4' has a problem: expected network_interface.0.nic_type to be one of [GVNIC VIRTIO_NET], got . Examine values at 'Instance.NetworkInterfaces[0].NicType'.
        error: gcp:compute/instance:Instance resource 'instance4' has a problem: ConflictsWith: "boot_disk.0.disk_encryption_key_raw": conflicts with boot_disk.0.kms_key_self_link. Examine values at 'Instance.BootDisk.DiskEncryptionKeyRaw'.
        error: gcp:compute/instance:Instance resource 'instance4' has a problem: Computed attribute cannot be set. Examine values at 'Instance.BootDisk.DiskEncryptionKeySha256'.
        error: gcp:compute/instance:Instance resource 'instance4' has a problem: ConflictsWith: "boot_disk.0.kms_key_self_link": conflicts with boot_disk.0.disk_encryption_key_raw. Examine values at 'Instance.BootDisk.KmsKeySelfLink'.
        error: Preview failed: one or more inputs failed to validate
    s
    • 2
    • 6
  • d

    damp-school-17708

    10/22/2021, 7:44 AM
    Hello, a colleague (who's not available right now so I can't ask much) had an issue with his internet connectivity while doing a pulumi up. The state is now in a bit of a 'state'... A refresh is not helping and pulumi thinks that it has to create almost the entire stack from scratch. I am tempted to pick a json file from the .pulumi/history folder and save it into ./pulumi/stacks but I don't want to mess things further. Any idea how to get out of this mess? Thanks
    l
    r
    e
    • 4
    • 15
  • b

    bland-cat-29878

    10/22/2021, 11:54 AM
    Just updated pulumi and now getting this:
    error: /home/wayne/highstreetly-pulumi/node_modules/@pulumi/pulumi/provider/server.js:424
                   �    coniole.error(`${e}: ${e.stack}`);
  • b

    bland-cat-29878

    10/22/2021, 11:54 AM
    coniole <<<
    🤣 1
  • s

    sparse-student-54516

    10/22/2021, 12:14 PM
    Hello
  • s

    sparse-student-54516

    10/22/2021, 12:15 PM
    Has someone worked with rancher using pulumi? I am kinda stuck when try to bootstrap rancher and setting github as auth provider for rancher
  • d

    damp-memory-66729

    10/22/2021, 3:32 PM
    Hello, I have a question about renaming GitHub repos. Aliases work well for
    Repository
    resource but how to deal with the other resources which reference repo by name:
    BranchDefault
    ,
    TeamRepository
    ,
    ActionSecret
    ?
  • m

    miniature-piano-36287

    10/22/2021, 4:06 PM
    Hello guys, I'm having an issue with Pulumi, AWS and Lambda with NodeJS 14.x. Hope someone of you can help me with the problem There are two projects, one of them is a
    npm library
    and the other one is a
    web service
    , either the web service and the npm library have the following Pulumi dependencies: package.json -> "dependencies"
    "@pulumi/aws": "^4.23.0",
    "@pulumi/awsx": "^0.32.0",
    "@pulumi/pulumi": "^3.0.0",
    The web service also dependes of the npm library. When i push changes to AWS with the command
    pulumi up -y
    everything works fine, but when i make a request to the ApiGateway that calls one of the created lambda functions i'm having this error output in Cloudwatch:
    Cannot find module '@pulumi/pulumi'
    One of the functions in the npm library needs that dependency but i looks like Pulumi is excluding it because regardless the package.json shows that dependency it doesn't appear in node_modules. Anyone have an idea of what could be happening in that case? Thank you.
    b
    • 2
    • 11
  • r

    rapid-raincoat-36492

    10/22/2021, 7:47 PM
    Hello! 😄 One issue that affected my work these past few weeks was the inability to pass the same
    opts
    object around between resources from different pulumi providers. In particular, this issue is challenging because the error messages lead you fixes that don't work. I noticed that there are currently three issues in
    pulumi/pulumi
    discussing this: - https://github.com/pulumi/pulumi/issues/7532 - https://github.com/pulumi/pulumi/issues/6293 which is closed, but should not be - https://github.com/pulumi/pulumi/issues/3393 and there are quite a few related issues that are wrongly attributed to providers misbehaving, such as https://github.com/pulumi/pulumi-vault/issues/129. Would it make sense to combine all of these issues into a new issue, or maybe to re-open https://github.com/pulumi/pulumi/issues/6293 and to mark the other issues as duplicates? Right now, this was a very difficult issue to track down the root cause of. https://github.com/pulumi/pulumi-vault/issues/129 shows images of what the error messages I was seeing with the node sdk
  • w

    wet-noon-14291

    10/22/2021, 10:14 PM
    Can I run create a stack automatically if it doesn't exists with `pulumi up`some how? Or do I have to run
    pulumi stack init
    in that case?
  • o

    orange-policeman-59119

    10/22/2021, 11:07 PM
    Congrats on putting together a killer conference and incredible panel of speakers.
  • f

    future-window-78560

    10/23/2021, 2:21 AM
    Hey guys. Any idea on how to provision prefect on GCP using pulumi?\
  • m

    miniature-advantage-31279

    10/23/2021, 3:20 AM
    Hi guys, anyone know why this code returns with empty result? I checked the VPC it has correct subnets assignments.
    const vpc = awsx.ec2.Vpc.fromExistingIds(name, { vpcId: props.vpcId });
    console.log(await vpc.publicSubnetIds);
    However if I create a new vpc, it will return the correct public subnet IDs, it seems there is missing initialisation internally if we are using fromExistingIds?
    m
    b
    • 3
    • 4
  • f

    few-army-64952

    10/24/2021, 9:42 PM
    hi folks, is there a way to create a resource in a different region than the rest of the stack? for example S3 website is in eu-west-1, cloudfront uses an acm from us-east-1. how could i make this happen?
    b
    • 2
    • 6
  • b

    big-pizza-47421

    10/25/2021, 7:14 AM
    So i've tried the simplest setup ever, VPC, Subnets, ECS with a single nginx service (most of this is from the AWSX WalkThrough) and yet it just doesn't seem to work. https://github.com/lsportsltd/main-infrastructure everything is in this repository. the ALB is losing it, if I don't put the public subnets explicitly in the code itself for the ALB it just doesn't work. Any help is appreciated!
    b
    • 2
    • 26
  • l

    limited-rainbow-51650

    10/25/2021, 8:28 AM
    I just read the blog article on Resource Methods (https://www.pulumi.com/blog/resource-methods-for-pulumi-packages/). Does this only work for a package, or can I also add methods to my subclass of
    ComponentResource
    ?
  • b

    billions-mechanic-26704

    10/25/2021, 9:19 AM
    Hi dear community. I am getting this message when doing
    pulumi up
    error: Program failed with an unhandled exception:
        error: Traceback (most recent call last):
          File "/usr/local/bin/pulumi-language-python-exec", line 107, in 
          File "/Users/bgarcial/workspace/wmlab-infrastructure/venv/lib/python3.8/site-packages/pulumi/runtime/invoke.py", line 146, in invoke
            raise invoke_error
        Exception: invoke of github:index/getUser:getUser failed: invocation of github:index/getUser:getUser returned an error: invoking github:index/getUser:getUser: GET <https://api.github.com/users/bgarcial>: 401 Bad credentials []
        error: an unhandled error occurred: Program exited with non-zero exit code: 1
    My organization use github credentials as an authentication system. I have the PULIMI ACCESS TOKEN enabled and working well. I am not sure what could be happening.
    • 1
    • 1
Powered by Linen
Title
b

billions-mechanic-26704

10/25/2021, 9:19 AM
Hi dear community. I am getting this message when doing
pulumi up
error: Program failed with an unhandled exception:
    error: Traceback (most recent call last):
      File "/usr/local/bin/pulumi-language-python-exec", line 107, in 
      File "/Users/bgarcial/workspace/wmlab-infrastructure/venv/lib/python3.8/site-packages/pulumi/runtime/invoke.py", line 146, in invoke
        raise invoke_error
    Exception: invoke of github:index/getUser:getUser failed: invocation of github:index/getUser:getUser returned an error: invoking github:index/getUser:getUser: GET <https://api.github.com/users/bgarcial>: 401 Bad credentials []
    error: an unhandled error occurred: Program exited with non-zero exit code: 1
My organization use github credentials as an authentication system. I have the PULIMI ACCESS TOKEN enabled and working well. I am not sure what could be happening.
I got it, my github token (that one I am calling it from my yaml config settings ) was expired
View count: 1