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
  • s

    steep-toddler-98503

    10/30/2020, 3:53 AM
    Hello, can someone help me to understand how create a new provider for aws with go as runtime, i want to use the aws profiles that i have in .aws/credentials file. Thanks
    b
    • 2
    • 2
  • f

    future-ocean-92178

    10/30/2020, 8:29 AM
    eni1, err := vpc.NewNetworkInterface(ctx, name, &vpc.NetworkInterfaceArgs{ VswitchId: vswitchId.ID(), SecurityGroups: pulumi.StringArray{ sgid, }, // pulumi.DependsOn([]pulumi.Resource{ // vswitchId, // }), })
    I try to let create new NIC after vswitch has created. so I use pulumi.DependsOn . but this code does not work. it will complain "./main.go:208:4: cannot use vswitchId (type vpc.Switch) as type pulumi.Resource in slice literal:
    vpc.Switch does not implement pulumi.Resource (pulumi.addTransformation method has pointer receiver)"
  • f

    future-ocean-92178

    10/30/2020, 8:29 AM
    what's the correct way to do that ?
  • f

    future-ocean-92178

    10/30/2020, 8:30 AM
    the reason I want use depends on is new Nic always failed to create at the first time run pulumi up , I have to run pulumi up twice to get it created.
  • d

    damp-elephant-82829

    10/30/2020, 9:21 AM
    Hello guys, I have created few custom resources but the dependency order is not correct, i.e. some resources do not wait other to be created
  • d

    damp-elephant-82829

    10/30/2020, 9:22 AM
    Untitled
  • d

    damp-elephant-82829

    10/30/2020, 9:22 AM
    This thing is failing with this error:
  • d

    damp-elephant-82829

    10/30/2020, 9:23 AM
    Untitled
  • d

    damp-elephant-82829

    10/30/2020, 9:24 AM
    it seems the the getProjectServiceAccount invoked in the custom resource bucket with notification ( unopac:modules:BucketWithNotification barchart-import-bucket-with-pubsub-notification create ) isnot waiting the creation of the gcp project inside the custom resource
    unopac:modules:Project branch-project create
  • j

    jolly-lunch-12979

    10/30/2020, 11:54 AM
    I seem to have somehow broken my state, imported some existing custom hostname bindings on an Azure app service, made a change with DeleteBeforeReplace on, which deleted successfully and it thought it created the replacement, however it didn't. The hostname binding is missing in Azure, the state file thinks it's there and running a refresh doesn't detect that it isn't present in Azure either. Do I have to manually edit the state file to fix this? Is there a reason why a refresh wouldn't pick up the resource is gone in Azure?
    • 1
    • 1
  • b

    better-actor-92669

    10/30/2020, 12:24 PM
    Hello. Let's say I have a value in my config file that is a string. For example:
    vpn:router_to_hq_1_bgp_asn: "65509"
    I want to change it's value to be an integer. However, when I set it 
    pulumi config set vpn:router_to_hq_1_bgp_asn 65509
     it still get written to the Pulumi's yaml config file as a string. Even when I change it manually via an editor (remove quotes), after issuing 
    pulumi up
     it reverts it to a string. Is there a way I can specifically set a config's value type to integer? I know that I can cast its type via code, but I just want to understand if it is possible.
  • f

    famous-area-1376

    10/30/2020, 2:47 PM
    What's up with how RolePolicyAttachment and RolePolicy work? If I try to attach 2 RolePolicyAttachments to the same role, it claims it did both, but I only see the latter one in console. Additionally, if I try creating one RolePolicy and one RolePolicyAttachment, again only one of them applies and the other one is lost (even if pulumi claims it created it too). How can I get both? I don't want to manually combine them into one policy document as one of them is a massive managed policy.
  • e

    early-kite-86569

    10/30/2020, 4:12 PM
    I ran a bug I probably should have expected. I tried to create too many GCP resources at once and got an error. Is there a way to say "hey this batch of resources, I want them to at most run 4 at a time" or similar
    f
    • 2
    • 2
  • t

    tall-stone-8237

    10/30/2020, 5:54 PM
    Hey!! I’m trying to import an existing resource and I’m getting this error:
    pulumi-python:dynamic:Resource (Pulumi Test Import):
        error: Preview failed: Exception calling application: '__provider'
    Getting the logs of the entire process doesn’t tell why there is an error but the dynamic provider works just fine when I am creating, updating and deleting resources. Help
    b
    • 2
    • 1
  • i

    icy-jordan-58549

    10/30/2020, 6:32 PM
    Diagnostics:
      pulumi:pulumi:Stack (redis-dev):
        (node:50199) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 unhandledRejection listeners added to [process]. Use emitter.setMaxListeners() to increase limit
        (node:50199) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
        (node:50199) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 exit listeners added to [process]. Use emitter.setMaxListeners() to increase limit
    • 1
    • 2
  • p

    powerful-morning-93143

    10/30/2020, 10:40 PM
    hey folks, question on pulumi: can you emit terraform? e.g., if i write some python or go code w/the pulumi SDK that deploys some stuff into aws or k8s, can i have pulumi emit that as terraform directly?
    b
    • 2
    • 2
  • a

    average-kilobyte-47828

    10/31/2020, 11:19 AM
    Feeling pretty stupid here. I've deployed and updated a stack many times without problems then all of a sudden I'm getting this message. When I type suggested command I get a new error:
    error: invalid configuration key: could not parse devalert-infra:aws:region as a configuration key (configuration keys should be of the form `<namespace>:<name>`)
    Untitled
    b
    • 2
    • 5
  • k

    kind-school-28825

    11/01/2020, 6:32 AM
    Is there a way to force destroy a stack? This comes from when I was playing around with my stack and experimenting, and I created some dependencies between resources that wouldn't allow me to remove them after updating the stack with some adjustments. I went manually to AWS to remove them in order to see if that would solve it, but now when trying to destroy the stack these resources aren't there anymore and pulumi is complaining that the resource doesn't exist. Is there a way to force pulumi to continue destroying resources even if some of them don't exist anymore?
    s
    • 2
    • 4
  • p

    polite-motherboard-78438

    11/01/2020, 11:18 AM
    Hello. When using Pulumi GitHub App together with GitHub actions, is there any way to disable the checks for a particular pulumi run? In my pipeline, I have an "integration tests" and "preview" jobs. I only want to create a check report for the preview job.
  • f

    fresh-painting-68573

    11/01/2020, 6:24 PM
    Hi all, I’m trying to automate the provision of Rook/Ceph object buckets with Pulumi; in short, I want to create an ObjectBucketClaim CRD, wait until it has Status: Bound, then read the generated access/private keys from a related ObjectBucket CRD. Is there a way to do this without creating my own resource provisioner? My best guess would be something like a ComponentResource which creates the OBC, then creates the OB with depends_on= and import= set appropriately, but that seems like a terrible hack
  • s

    stocky-spoon-28903

    11/01/2020, 6:51 PM
    @fresh-painting-68573 take a look at
    crd2pulumi
  • s

    stocky-spoon-28903

    11/01/2020, 6:51 PM
    If you have an existing CRD it will generate all the language bindings for you and then you can use it like anything else
    f
    • 2
    • 3
  • c

    curved-alligator-54130

    11/01/2020, 8:01 PM
    I'm creating a GCP storage bucket and aggregated log sink using. To create the sink I need the value of the bucket id from Pulumi.
    # create bucket works great. 
    sink = logging.OrganizationSink("resource-ops-sink",
                            destination=f"<http://storage.googleapis.com/{bucket.id}|storage.googleapis.com/{bucket.id}>",
                            filter=filter,
                            org_id=org)
    
    # create Org Sink not so much.
    sink = logging.OrganizationSink("resource-ops-sink",
                            destination=f"<http://storage.googleapis.com/{bucket.id}|storage.googleapis.com/{bucket.id}>",
                            filter=filter,
                            org_id=org)
    The above sink creation returns an error
    * googleapi: Error 404: Bucket <pulumi.output.Output object at 0x10bcc16a0> does not exist, notFound
    The destination input of a sink for a bucket is the value "storage.googleapis.com/BUCKET". I understand the value doesn't exist yet and it's set asynchronously. I've tried both
    dest = Output.concat("<http://storage.googleapis.com/|storage.googleapis.com/>", bucket.id)
    dest = Output.all(bucket.id).apply(lambda l: f"<http://storage.googleapis.com/{l[0]}|storage.googleapis.com/{l[0]}>")
    Any thoughts or suggestions on how I can make this work? Thanks,
    • 1
    • 1
  • m

    magnificent-restaurant-51456

    11/02/2020, 8:02 AM
    Whenever I create a azure resource group using the core lib, the resource group name is suffixed with some characters, how can I avoid it
    k
    c
    • 3
    • 7
  • b

    bored-intern-60856

    11/02/2020, 8:49 AM
    Hey guys, Following a question I've had here a few days ago: Seems like Pulumi does not keep track of the helm chart's dependency graph and thus altering something that affects the helm chart (such as changing something in values.yaml which affects a k8s secret) will most likely not update a deployment using it. That's really unfortunate since most of our infra is based on helm charts (which is the best practice). anyone has some kind of workaround?
    b
    • 2
    • 1
  • m

    mysterious-portugal-46322

    11/02/2020, 9:20 AM
    Hi, what’s the best way to use add a stack validation policy, but only test a specific type of resource, i.e. all kubernetes resources?
  • f

    fierce-engine-31599

    11/02/2020, 10:30 AM
    Hey! Is it possible to create a Network Endpoint Group of type Cloud Run on GCP? I see in the docs that the only supported type`GCE_VM_IP_PORT`
  • b

    billions-glass-17089

    11/02/2020, 12:24 PM
    hihi I found examples of how Pulumi can deploy an application to Fargate via a Container (which is amazing!) are there examples/docs on how Pulumi manages iterations of the application? I.e. if I wanted to make a text change on the voting app (i.e. vim vs emac) how would one go about doing that?
  • w

    wet-soccer-72485

    11/02/2020, 3:04 PM
    https://github.com/infracost/infracost
    g
    • 2
    • 3
  • b

    big-account-56668

    11/02/2020, 3:33 PM
    Is it possible to rename a resource similar to
    terraform mv
    ? I am refactoring and would like to rename items within a single state file. If there is no facility to move/rename resources, is there another way to achieve the same result?
    s
    • 2
    • 2
Powered by Linen
Title
b

big-account-56668

11/02/2020, 3:33 PM
Is it possible to rename a resource similar to
terraform mv
? I am refactoring and would like to rename items within a single state file. If there is no facility to move/rename resources, is there another way to achieve the same result?
s

sticky-translator-17495

11/02/2020, 8:02 PM
https://www.pulumi.com/docs/intro/concepts/programming-model/#aliases
b

big-account-56668

11/05/2020, 2:16 PM
Got it, thanks!
View count: 1