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

    purple-train-14007

    04/11/2021, 6:51 PM
    Is there an F# reference doc? I know there is a C# one however not seeing an F# resource though pulumi has F# support
    b
    • 2
    • 8
  • p

    proud-pizza-80589

    04/11/2021, 7:26 PM
    @broad-dog-22463 i noticed that the https://get.pulumi.com script does not support ARM on linux yet. Tried to build a docker container locally with pulumi it it and got this message. With everything supported on ARM, this should be no issue right? The uname -m output in the container is
    aarch64
    which is not matched in the case.
    #6 10.40 error: We're sorry, but it looks like Pulumi is not supported on your platform
    #6 10.40        We support 64-bit versions of Linux and macOS and are interested in supporting
    #6 10.40        more platforms.  Please open an issue at <https://github.com/pulumi/pulumi> and
    #6 10.40        let us know what platform you're using!
    #6 10.40 
    #6 10.40 We're sorry, but it looks like something might have gone wrong during installation.
    #6 10.40 If you need help, please join us on <https://slack.pulumi.com/>
    😍 1
    a
    b
    • 3
    • 13
  • b

    broad-dog-22463

    04/11/2021, 7:27 PM
    Can you open an issue and tag me in it please @proud-pizza-80589 ?
  • p

    proud-pizza-80589

    04/11/2021, 7:27 PM
    👍
  • b

    broad-dog-22463

    04/11/2021, 7:27 PM
    I can get it shipped this week
  • b

    broad-dog-22463

    04/11/2021, 7:27 PM
    We have a release planned for Wednesday
  • b

    broad-dog-22463

    04/11/2021, 7:28 PM
    I’m actually sure there will be work needed for plugins as well
  • p

    proud-pizza-80589

    04/11/2021, 7:29 PM
    https://github.com/pulumi/pulumi/issues/6745
    ✅ 1
  • p

    proud-pizza-80589

    04/11/2021, 7:30 PM
    Our cluster is still x86 so not a big deal, but i have been dying to try out the gravitron machines. Supposedly 35% better performance per dollar
    b
    • 2
    • 1
  • w

    worried-queen-62794

    04/11/2021, 9:24 PM
    I feel like I may have asked this before but is there a reason why a resource does not expose its name?
    l
    • 2
    • 12
  • d

    delightful-jordan-36077

    04/12/2021, 3:56 AM
    Hello I ran the static website example and it makes my domain available from www.domain.com but not domain.com where domain is my domain, how to make it work for domain.com ? https://github.com/pulumi/examples/tree/master/aws-ts-static-website
    l
    s
    • 3
    • 30
  • p

    purple-train-14007

    04/12/2021, 6:36 AM
    So I noticed state files can be stored locally on your machine however, if your company requires state files to be store on a remote file server is that possible as well? How does the state store mechanism work exactly?
    b
    b
    • 3
    • 7
  • e

    echoing-postman-88590

    04/12/2021, 1:51 PM
    Hi, I would like to use the output from a resources to create a script to be run on a VM via extension. How do I convert the output to string? I have tried
    Output.concat("date >/tmp/data; echo ", vm.name, " >/tmp/out")
    , but I get
    <pulumi.output.Output object at 0x7f947407e1c0>
    any ideas? Thanks
    b
    r
    • 3
    • 11
  • a

    alert-gpu-24581

    04/12/2021, 5:12 PM
    Hello good fellas. First time pulumi user here. Any pointer on what’s the current stable go sdk version ? I am trying to spin an ec2 instance. The web server example is old (not v3) and the current reference doc does not have go sample
    b
    l
    • 3
    • 12
  • a

    alert-gpu-24581

    04/12/2021, 5:12 PM
    Thank you I’m advance
  • a

    alert-gpu-24581

    04/12/2021, 5:13 PM
    https://www.pulumi.com/docs/tutorials/aws/ec2-webserver/
  • a

    adorable-action-51248

    04/12/2021, 6:04 PM
    Hi ! I had a working cloudrun deployment with custom domain mapping. I upgraded to the latest version of pulumi (2.24.1) + pulumi.gcp (4.19.0) (nodejs) now the deployment is broken. I used code similar to this:
    const mapping = new gcp.cloudrun.DomainMapping(...);
    
    const records = mapping.status.resourceRecords?.apply(rs => rs ?? []) ?? pulumi.output([]);
    
    const domainMapping  = new gcp.dns.RecordSet(`${prefix}-a-records`, {
        name: 'xxx.',
        managedZone: zone.name,
        type: 'A',
        ttl: 3600,
        rrdatas: records.apply(rs => rs.map(r => r.rrdata)),
    }, {
        dependsOn: [zone, mapping],
        deleteBeforeReplace: true,
    });
    according to the docs i would need to replace
    mapping.status
    with
    mapping.statuses[0]
    . however, it seems that
    statuses
    is an empty array. The error messages I receive is:
    Error 400: Invalid value for 'entity.change.deletions[0].rrdata': '<empty>'
    More details:
        Reason: invalid, Message: Invalid value for 'entity.change.deletions[0].rrdata': '<empty>'
        Reason: invalid, Message: Invalid value for 'entity.change.additions[0].rrdata': '<empty>'
    when i add
    domainMapping.statuses.apply(s => console.error(JSON.stringify(s))
    it prints
    undefined
    any ideas what might be the issue here?
    b
    • 2
    • 10
  • m

    many-spring-73557

    04/12/2021, 7:06 PM
    Does pulumi support
    gcloud compute instances create-with-container
    now? https://cloud.google.com/sdk/gcloud/reference/compute/instances/create-with-container
    g
    • 2
    • 2
  • w

    worried-queen-62794

    04/13/2021, 2:08 AM
    Is there a way to ensure that a stack is using the correct backend? Having to remember to log in and out all the time is very error prone.
    r
    w
    • 3
    • 4
  • f

    faint-dusk-40863

    04/13/2021, 4:00 AM
    Hello! What's the best channel to ask for help? Specifically about
    pulumi import
    for vSphere? I can't seem to figure out how to import a resource that requires a datacenter be set. Here is what I'm currently trying to use
    pulumi import vsphere:index/computeCluster:ComputeCluster Management Mgmnt --parent datacenter=urn:pulumi:infra::vsphere::vsphere:index/datacenter:Datacenter::datacenter
    I get the following error:
    error: Preview failed: importing Mgmnt: error loading cluster: please specify a datacenter
    Thank you for any help!
    w
    p
    • 3
    • 5
  • p

    purple-train-14007

    04/13/2021, 5:22 AM
    Is the GitHub repo a good place for asking for a feature request? I’d like for the preview of stack being built to show the names of the variables from the configuration file rather than the variable itself. Example: when I say VNet name is vnetName from the pulumi stack config I would like to see the name in the output rather than the variable name.
    b
    • 2
    • 5
  • w

    worried-queen-62794

    04/13/2021, 8:36 AM
    I'm getting an error saying that it is refusing to delete a protected resource but it's not showing up in the diff so I don't know why it is being deleted. Any idea what to look for?
    w
    • 2
    • 3
  • a

    agreeable-caravan-84210

    04/13/2021, 12:17 PM
    Hey guys, I've got a question regarding Azure subscriptions. What's the best method for migrating existing stacks from one sub to another? At the time, I'm thinking
    destroy
    +
    update
    . On the other hand, Azure supports resources migration (through portal) but I'm guessing I'll need to edit the resources IDs in the stack files with the new subscription ID, is it worth the try? Thanks
    g
    • 2
    • 3
  • p

    purple-train-14007

    04/13/2021, 7:50 PM
    This may sound weird but whos playlist is that playing the music on Pulumis site? I want that for my heads down coding sessions lol. Its so good.
    b
    b
    b
    • 4
    • 6
  • p

    purple-train-14007

    04/13/2021, 7:50 PM
    https://www.pulumi.com/pulumi-up/?iaid=docs-right-nav
  • a

    alert-oyster-87530

    04/13/2021, 8:26 PM
    Hi folks! Just started setting up my first pulumi project. Where would be a good spot to ask for help around integration testing in JS?
    p
    l
    • 3
    • 2
  • f

    freezing-memory-87554

    04/13/2021, 8:48 PM
    Hi guys! A quick question, maybe someone already investigated it. Suppose we have two pulumi stacks, A and B, self-hosted backend. B uses StackReference to get some outputs from A. With new (awesome!) PULUMI_SELF_MANAGED_STATE_LOCKING=1 we can be sure that if we try run concurrently updates for A or B, we won't get into trouble because the state of particular stack would be locked. However the question is, would we be protected from this kind of trouble if we run updates at the same time for A and B (which uses values from A)? Would really appreciate some insight on the matter, because I didn't find any info in docs 🙂
    b
    p
    • 3
    • 4
  • p

    proud-pizza-80589

    04/13/2021, 10:28 PM
    General question, imagine i have a stateful set with 500gb of data on a PVC/PV. And i need to duplicate that data to a bunch of other statefulsets. Apart from zipping and putting the data on s3 and loading it on deploy. is there a ’better way”, something like snapshots or something?
  • b

    billowy-laptop-45963

    04/13/2021, 11:31 PM
    If I'm using s3 as a backend, is there a way of not doing a pulumi login s3:// and just specify it in a env var or pulumi argument ex:
    PULUMI_BACKEND=<s3://mybucket> pulumi up -s mystack
    r
    • 2
    • 2
  • b

    bitter-toddler-22112

    04/14/2021, 7:42 AM
    Hi everyone! Is it possible to prevent one stack from getting destroyed as long as another stack is up? E.g. I have stack A which creates an EKS cluster and stack B for creating k8s resources in the cluster. Destroying stack A when stack B is still up leaves that stack in a bad state. And more worse, there may be unattended resources left that are not under Pulumi's control at all, e.g. load balancers that have been created by the load balancer manager. Can stack B register itself in stack A so that stack A can't be destroyed until stack B deregisters itself on its own destruction?
    👍 1
    l
    • 2
    • 4
Powered by Linen
Title
b

bitter-toddler-22112

04/14/2021, 7:42 AM
Hi everyone! Is it possible to prevent one stack from getting destroyed as long as another stack is up? E.g. I have stack A which creates an EKS cluster and stack B for creating k8s resources in the cluster. Destroying stack A when stack B is still up leaves that stack in a bad state. And more worse, there may be unattended resources left that are not under Pulumi's control at all, e.g. load balancers that have been created by the load balancer manager. Can stack B register itself in stack A so that stack A can't be destroyed until stack B deregisters itself on its own destruction?
👍 1
l

little-cartoon-10569

04/14/2021, 8:12 AM
Not out of the box. You can make specific resources safe from destroyed by setting the protect opt to true, but that's it.
You could write a dynamic provider that adds the protect opt to every resource based on a stack export from another stack...
That would require you to up your stack A before and after stack B.. but it would work (I think).
Another option would be to wrap your stack-A Pulumi program in automation-api, which checks for stack B and prevents deletes. That would be much easier.
View count: 2