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

    narrow-jackal-57645

    09/02/2020, 2:36 AM
    Q: I have just transferred a project/stack from my personal account to an org account using the Transfer ownership button in the web ui. For example:
    my_personal_account/project_name/prod
    to
    my_org/project_name/prod
    Now I want to switch my local code to the new org stack:
    pulumi stack select my_org/project_name/prod
    # => error: no stack named 'my_org/prod' found
    Is this some kind of bug? Or I have missed any important step here. Many thanks in advance
    l
    • 2
    • 4
  • n

    narrow-jackal-57645

    09/02/2020, 5:18 AM
    Q I am creating a temporary password for AWS IAM user. I follow the instruction by adding `UserLoginProfile`:
    let user = new aws.iam.User("totoro", {
      name: "totoro",
    });
    
    // force new users to reset their password for the initial sign in
    new aws.iam.UserLoginProfile(`login-profile-for-totoro`, {
      user: user.name,
      passwordResetRequired: true,
      pgpKey: `WHY_DO_I_HAVE_TO_PROVIDE_THIS?`
    }, {
      parent: user,
      dependsOn: [user]
    })
    I am wondering why this resource requires me to use
    pgpKey
    to encrypt/decrypt password (/with Keybase.io) when there is already KMS mechanism provided out of the box by Pulumi. Many thanks in advance Reported in https://github.com/pulumi/pulumi-aws/issues/1106
    l
    • 2
    • 4
  • g

    great-byte-67992

    09/02/2020, 6:06 AM
    Has anyone figured out how to deploy a helm chart with CRDs to multiple clusters in the same pulumi stack? (https://github.com/pulumi/pulumi-kubernetes/issues/1225#issuecomment-684237439)
    s
    • 2
    • 4
  • b

    better-rainbow-14549

    09/02/2020, 8:56 AM
    Does anybody know how to use pulumi.all() with more than 8 parameters please?
    r
    e
    • 3
    • 7
  • r

    ripe-russia-4239

    09/02/2020, 9:19 AM
    Is the config, as loaded by Pulumi in the app, available during a unit test using the mock functions set up in a Typescript test project? I'm trying to write tests for my Pulumi app, but my
    config.require()
    calls are throwing an error even though I've passed the project name (and stack name, for that matter) to
    pulumi.runtime.setMocks()
    .
    l
    • 2
    • 5
  • b

    billowy-laptop-45963

    09/02/2020, 3:48 PM
    I got a project I haven't touched in a while, it contains a cloudformation stack I'd like to update. It detects it needs updating due to the template being different. When I do
    pulumi up -t urn:to:stack
    it looks like it performs the update but doesn't actually do anything. Has anyone dealt with this before?
  • s

    sticky-receptionist-53934

    09/02/2020, 5:24 PM
    I wonder if you guys can share some experiences when you end with a broken stack with no other solution than remove everything and start all over?. It happens me quite often, it can be some resource that did not complete properly, or something weird that makes the stack end in a state where you basically need to export-> correct problem -> import again. However in a big stack with many dependencies it is just virtually impossible to correct the problem manually. This leaves no other option than remove the stack, remove all resources manually and start over. What bothers me is, how you deal with this situation if it happens on production?
    c
    g
    b
    • 4
    • 12
  • g

    gifted-vase-28337

    09/02/2020, 5:46 PM
    Has anyone encountered the issue that pulumi shows it has created a resource (in this case, an AWS CloudWatch Log Group), but no resource is indicated in the AWS Console?
    ✅ 1
    b
    • 2
    • 9
  • t

    tall-country-24103

    09/02/2020, 6:18 PM
    Hi everyone. I'm trying to create eks and deploy couple of helm_v3 charts on top of it in one stack. Stack is written on python, I followed this example - https://github.com/pulumi/examples/tree/master/aws-py-eks. The question is, how can I export kubeconfig with
    python
    sdk? I see that
    ts
    has
    generateKubeconfig
    - https://github.com/pulumi/pulumi-eks/blob/master/nodejs/eks/cluster.ts#L182. But nothing for python. Any ideas?
    b
    • 2
    • 2
  • b

    bitter-dentist-28132

    09/02/2020, 8:21 PM
    is there a way to use a terraform provider with pulumi that isn't listed in https://www.pulumi.com/docs/reference/pkg/ ?
    b
    • 2
    • 1
  • b

    bitter-dentist-28132

    09/02/2020, 8:23 PM
    does the pulumi-terraform-bridge basically compile pulumi modules from terraform plugins? that part is kinda unclear to me.
    c
    • 2
    • 1
  • s

    sticky-knife-56285

    09/03/2020, 7:19 AM
    hi, we've recently run into an issue with setting up Azure Service Bus queues in the premium tier/SKU the Pulumi docs says that EnablePartitioning MUST be set to true for Premium, but this contradicts what Microsoft says stating that Premium does NOT support it at all. So despite following the Pulumi docs, Azure forces it to false and each update recreates the queues because it trying to set it to true and gets ignored. https://www.pulumi.com/docs/reference/pkg/azure/servicebus/queue/#state_enablepartitioning_csharp The above docs where it says it must be set https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-partitioning#partitioned-entities-limitations Microsoft stating it's not supported on premium
  • k

    kind-mechanic-53546

    09/03/2020, 8:33 AM
    for adding tags to resources, per this article, should this work with custom resources (extending pulumi.ComponentResource)? e.g. a resource which creates an @pulumi/azure/storage/Account should then have auto-tags added to the account on creation?
    c
    g
    • 3
    • 5
  • g

    gifted-island-55702

    09/03/2020, 1:41 PM
    Hi. I believe it was asked already but I cannot find it anywhere in the pulumi docs or by searching google. Does Pulumi support applying changes from a previously generated preview? (like in Terraform where the plan can be stored in a file and then terraform apply command applies what was stored in the file)
    b
    c
    • 3
    • 3
  • h

    handsome-zebra-11018

    09/03/2020, 1:59 PM
    We can pass env variable to kubernetes deployment using
    new k8s.apps.v1.Deployment{
    ....
     containers: [
     {
        env: [
        {
           name: "db_host",
           value: config.get("db_host")
         }
      }
    }
    Similarly I need to pass env variable to docker container.
    new docker.Container("container_name", {
        .....
        envs: [
    
        ]
    }
    But
    env
    in
    docker.Container
    is list of string and not key /value pair. Any idea how can I pass env variable with Container?
    • 1
    • 1
  • h

    handsome-zebra-11018

    09/03/2020, 3:02 PM
    Is there any parameters to finish pulumi script fast after error? it takes 10 mins to complete otherwise..
    g
    • 2
    • 3
  • b

    bitter-dentist-28132

    09/03/2020, 3:06 PM
    how do you guys handle running pulumi for multiple stacks/projects? like in the case you have some IAM setup, some infra like a k8s cluster, and then code for each application is checked into the application repo, how do you handle automated rollouts of the application? do you manually deploy the required infra?
    l
    • 2
    • 4
  • h

    helpful-advantage-49286

    09/03/2020, 3:56 PM
    Does anyone have any good examples using container NEGs w/ GCP and GKE?
  • f

    freezing-addition-26010

    09/03/2020, 5:42 PM
    hi team, i am unable to get vpc which is shared error: Preview failed: refreshing urn😛ulumi:xinet-portal::northplains-xinet-portal::aws:ec2/vpc:Vpc::CN-Development: InvalidVpcID.NotFound: The vpc ID 'vpc-0156cd9a85b4b3fac' does not exist
  • f

    freezing-addition-26010

    09/03/2020, 5:43 PM
    vpc is in a shared aws account
  • f

    freezing-addition-26010

    09/03/2020, 5:43 PM
    command used: // const vpc = aws.ec2.Vpc.get('vpc-0156cd9a85b4b3fac', 'vpc-0156cd9a85b4b3fac', {ownerId: '887704487240'})
    l
    • 2
    • 4
  • h

    handsome-zebra-11018

    09/03/2020, 6:22 PM
    How to create
    aws.ec2.Instance
    in an specific VPC ? any example?
    l
    • 2
    • 1
  • a

    astonishing-quill-88807

    09/03/2020, 6:51 PM
    Here's some Python code that does it https://github.com/mitodl/ol-infrastructure/blob/dagster_instance/src/ol_infrastructure/infrastructure/applications/dagster/__main__.py#L201-L220
    h
    • 2
    • 2
  • s

    salmon-account-74572

    09/03/2020, 7:16 PM
    Is there a way to get a listing of stack output when you're not in a directory with a
    Pulumi.yaml
    ? (I'm thinking of the Pulumi equivalent of
    vagrant global-status
    .)
    b
    g
    • 3
    • 3
  • l

    little-cartoon-10569

    09/03/2020, 8:49 PM
    Has anyone updated the provider of a resource without replacing the resource? Is it possible? I have a load of resources created using the default (AWS) provider, and now I want to provide an explicit provider, because the default provider is changing but my resources aren't. Is it possible? Do I have to edit the stack directly? What would the before and after look like?
    g
    • 2
    • 6
  • e

    elegant-carpet-8859

    09/04/2020, 1:18 AM
    Hi, does anyone know how I'm supposed to do root domain and MX records with Pulumi? The addition of the unique hex suffix, combined with the inability to make a name a blank string means I can't seem to just do records for "mydomain.com" which is critically necessary for both root domains and MX, so I have to be missing something, right?
    i
    • 2
    • 13
  • h

    handsome-zebra-11018

    09/04/2020, 5:16 AM
    Docker provide runtime option for cpu-quote : https://docs.docker.com/config/containers/resource_constraints/ I need to pass on
    --cpu-quota=<value>
    while creating a container using pulumi
    new docker.Container
    but there is no option for
    cpu-quota
    All I can see
    cpuSet
    and
    cpuShares
    Can anyone please help how can I passon
    cpu-quota
    to container via pulumi. In our company, we have enforcement in place, if
    cpu-quota
    is not provided, the container gets evicted automatically from our docker host.
  • l

    lively-kangaroo-29833

    09/04/2020, 8:36 AM
    Hello everyone! I've been meaning to try out Policy as Code and hitting this error on trying to publish a policy pack :
    error: Publish policy pack failed: [409] This organization does not support Policy as Code.
    I'm currently using Pulumi Community Edition, and seems like https://www.pulumi.com/crossguard/ mentions that it is available in any Pulumi Edition. Does anybody have any idea why this is happening? Thanks!
    b
    c
    • 3
    • 6
  • s

    sticky-receptionist-53934

    09/04/2020, 9:45 AM
    Hello!
  • s

    sticky-receptionist-53934

    09/04/2020, 9:46 AM
    higher up in this channel @miniature-rose-15269 gave this hint:
    const ingress = k8s.core.v1.Service.get(
    	'ingress',
    	'istio-system/istio-ingressgateway',
    	{ provider: k8sProvider }
    )
    const ip = ingress.status.loadBalancer.ingress[0].ip
Powered by Linen
Title
s

sticky-receptionist-53934

09/04/2020, 9:46 AM
higher up in this channel @miniature-rose-15269 gave this hint:
const ingress = k8s.core.v1.Service.get(
	'ingress',
	'istio-system/istio-ingressgateway',
	{ provider: k8sProvider }
)
const ip = ingress.status.loadBalancer.ingress[0].ip
View count: 1