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

    white-cat-90296

    09/29/2021, 8:53 AM
    Hi there. Does anybody know if it's possible to store a
    RemoteArchive
    on an
    S3
    bucket? I'm trying to use it as the source code for a
    Lambda
    function. The docs say that the URI should be http/https/file and it doesn't accept s3:// - https://www.pulumi.com/docs/intro/concepts/assets-archives/ - Any ideas for a viable workaround? Opening up the bucket to http access wouldn't work in this case.
  • a

    alert-london-63088

    09/29/2021, 10:46 AM
    Hi everyone! I'm trying to create a FargateService with a load balancer. Does anyone have any tips on how I can map port 80 on the listener to the containers port on 3000?
  • l

    little-summer-88406

    09/29/2021, 1:50 PM
    if I understand this correct - CustomResourceOptions to specify ImportId - I cant depend on any previous outputs since it takes string and not Input<string> ?
  • t

    tall-ocean-85516

    09/29/2021, 4:02 PM
    Hi Pulumi team, thanks for the great tool! I'm glad to be here! 🙌
    👋 3
  • r

    rapid-raincoat-36492

    09/29/2021, 6:04 PM
    When I try to create a lambda function with a local code path, like:
    const helloWorldFn = new lambda.Function('hello-world', {
      code: new asset.FileArchive(`${__dirname}/../../build`),
      handler: 'build/src/index.telemetryClassifierHandler',
      name: 'pulumiTestFn',
      publish: true,
      role: role.arn,
      runtime: 'nodejs14.x',
      tracingConfig: {
        mode: 'ACTIVE',
      },
    });
    I am seeing a
    ValidationError
    like in the attached image, however I can upload a zip file of that directory in the AWS console (or via serverless and/or terraform) and all of them seem to be okay with the contents of the
    build
    dir. I have tried creating a zip file separately and using that file as the
    FileArchive
    , as well as changing the handler to include the
    build/
    prefix or not I don't see any useful logs on what is failing to validate when using
    --debug
    or
    --verbose 4
    . Has anyone seen this before, or know how to debug what is wrong?
    ✅ 1
    • 1
    • 1
  • f

    full-artist-27215

    09/29/2021, 6:24 PM
    Is there any way to get an explicit reference to a default provider instance inside a Pulumi program?
    p
    • 2
    • 3
  • b

    bulky-area-51023

    09/29/2021, 7:14 PM
    Hi folks! I’m currently working on pulumi CI/CD pipeline. When using monolithic repository scheme (multiple projects in a repo), what would be the best way to preview & deploy when the MR changes multiple projects at a time? I think that pulumi stack well corresponds to git branch, but I’m having a trouble how to conduct gitops on multiple projects
    s
    m
    • 3
    • 8
  • f

    flat-appointment-12338

    09/29/2021, 7:50 PM
    I am deploying a Fargate service and using
    awsx.ecs.Image.fromDockerBuild
    to create my docker image that gets deployed but it seems that it will always attempt to build and deploy a new docker image even if the image is unchanged. I often find myself changing other parts of the infrastructure but would prefer not to have to do an entire build. Is there any way to avoid this?
  • r

    rhythmic-rain-31941

    09/29/2021, 7:56 PM
    Hi Team, i'm using https://www.pulumi.com/docs/reference/pkg/rancher2/ for my cluster creation/provisioning in rancher, and i'm trying to find the resource which can create service account, is it possible to create it?.
    b
    • 2
    • 12
  • h

    hundreds-traffic-617

    09/29/2021, 9:12 PM
    Does anyone know how to add new secrets to a stack without having to actually deploy them? We deploy through gitlab CI so those hosts will need to be able to access the secrets via pulumi config, but creating a secret on my machine with
    pulumi config set --secret
    seems to be purely a local modification until I were to deploy from my machine I guess. But I obviously don't want to deploy to production from my laptop just to update the config.
    b
    • 2
    • 4
  • b

    busy-house-95123

    09/29/2021, 10:52 PM
    There’s currently no established way to setup general config key/value pairs which would apply to all stacks, right? kind of like a default config: key
    l
    • 2
    • 5
  • r

    rhythmic-rain-31941

    09/29/2021, 11:37 PM
    Hi, I'm pretty new with pulumi trying to figure out few things, especially with reading outputs of one resource and re-using them in another. I have deployed rancher2.Cluster resource and trying to read its outputs and passing it to rancher2.AppV2
    rancher_ci_cluster = rancher2.Cluster()
    
    chart = rancher2.AppV2("cluster-autoscaler",
        cluster_id=rancher_ci_cluster.id,
        namespace="kube-system",
        repo_name=catalog.name.apply(lambda name: name),
        chart_name="cluster-autoscaler",
        chart_version="9.10.7",
        values=f"""
    awsRegion: {config.require("rancherAwsCiRegion")}
    autoDiscovery:
      clusterName: {rancher_ci_cluster.name.apply(lambda name: name)}
    extraArgs:
      balance-similar-node-groups: true
    priorityClassName: system-cluster-critical
    """,
        opts=ResourceOptions(depends_on=catalog)
        )
    so in the above snippet i could read the rancher_ci_cluster.id without any apply() or all() . but for looking up name even though i used
    rancher_ci_cluster.name.apply(lambda name: name)
    i still see it as an object instead of raw data
    <pulumi.output.Output object at 0x103a73e20>
    . so can anyone help me understand what is that im missing here and how the behavior works?
    s
    • 2
    • 18
  • b

    better-baker-47643

    09/29/2021, 11:59 PM
    Having an issue getting ApplicationLoadBalancers to point to a fargate service. Pulumi up runs and the fargate service deploys, but the ALB has no targets
    const lb = new awsx.lb.ApplicationLoadBalancer(`hasura-${env}`);
    
    const listener = lb.createListener(`hasura-listener-${env}`, {
      protocol: "HTTPS",
      certificateArn: sslCertificateValidation.certificateArn,
    });
    
    const hasuraService = new awsx.ecs.FargateService(
      `hasura-${env}`,
      {
        cluster,
        desiredCount: 1,
        taskDefinitionArgs: {
          logGroup: logGroup,
          cpu: "1024",
          memory: "2048",
          containers: {
            service: {
              // logConfiguration: {
              //   logDriver: "awslogs",
              //   options: {
              //     "awslogs-group": logGroup.id,
              //     "awslogs-region": awsRegion!,
              //     "awslogs-stream-prefix": `hasura-${env}`,
              //   },
              // },
              image: hasuraImage,
              portMappings: [listener], ....
    s
    • 2
    • 13
  • m

    many-salesmen-89069

    09/30/2021, 7:14 AM
    Really need an answer for this. 🙏 My current workaround is to create Pulumi.stack-name.yml for the new stack dynamically in the ci and then discard it which is super hacky. Use case is automated branch deployment on pull requests.
    l
    • 2
    • 3
  • q

    quiet-architect-91246

    09/30/2021, 9:34 AM
    Hi everyone! When running
    pulumi up
    I use the -C parameter like this:
    pulumi up -y -C pulumi
    , since I use a subdirectory in our project for everything pulumi related. Sadly this doesnt pick up tsconfig.json, which is defined at root level of the project (the directory in which I run the mentioned command). Is there anyway to tell pulumi where to look for tsconfig.json? It works to just copy tsconfig into the /pulumi directory, but id greatly prefer to not have it twice in our project.
    m
    • 2
    • 1
  • h

    hundreds-airport-37168

    09/30/2021, 2:33 PM
    Hi, is there any way to set values to a helm chart using a url of the file of values?
    p
    • 2
    • 3
  • r

    rhythmic-rain-31941

    09/30/2021, 6:48 PM
    Hi Team, does pulumi kubernetes provider allows us to do
    exec
    as we can do in terraform provider? https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs#exec-plugins #general
  • r

    rapid-raincoat-36492

    09/30/2021, 8:09 PM
    With the new aws-native provider, is there an AWS quota I can increase that would reduce the rate of these rate limit errors?
    • 1
    • 1
  • a

    alert-glass-49407

    09/30/2021, 8:32 PM
    Howdy, I was hoping for a quick double check on this before I filed an issue with the docs site on github, it looks like this AWS resource has an issue where the property description of a child resource is bubbling up to the parent's attribute? <https://www.pulumi.com/docs/reference/pkg/aws/cloudtrail/trail/#properties> The description for
    name
    on
    Trail
    resource properties looks like it erroneously has the description for
    TrailAdvancedEventSelector
    's
    name
    l
    • 2
    • 11
  • g

    gorgeous-minister-41131

    09/30/2021, 9:32 PM
    Pulumi slack webhooks, any idea what this means?
    missing_text_or_fallback_or_attachments
  • m

    miniature-nest-23801

    10/01/2021, 12:51 AM
    is there a way to use pulumi to execute HCL code without converting it ?
    b
    • 2
    • 32
  • b

    brash-kite-78002

    10/01/2021, 12:46 PM
    Hello Everyone, I've stuck working with Pulumi Input. Can't make it through. If someone has time, please check my attached screenshot in the thread.
    a
    b
    • 3
    • 9
  • d

    dry-autumn-28966

    10/01/2021, 1:13 PM
    Is there any way to list the resources (URN) within a stack or get a parsed state file using the automation APIs?
  • p

    polite-article-56500

    10/01/2021, 6:45 PM
    Hey guys, I have a stack with many different resources, that include GCP and Kuberenetes (most for kubernetes) and it so slow, I can’t edit the stack for pending_operations because all time I got
    500
    when tried to import, someone know any solution?
    b
    • 2
    • 1
  • m

    melodic-car-16900

    10/01/2021, 7:44 PM
    🙏 are there plans to add this as a provider any time soon? https://github.com/elastic/terraform-provider-ec
    m
    • 2
    • 2
  • b

    boundless-tailor-35598

    10/01/2021, 8:07 PM
    Has anyone ever had pulumi up hang in preview mode when creating a stack and reading a Stack Reference? I have a stack that has a stack reference to a Network Stack and it hangs every time upon preview. Never seen this before and wondering if anyone else has and has any tips on how to handle?
  • b

    boundless-tailor-35598

    10/01/2021, 8:07 PM
    basically is stuck on Create...
  • b

    boundless-tailor-35598

    10/01/2021, 8:20 PM
    I worked out the cause of the issue above. Looks like the application stack was referencing a later version of Pulumi.Aws then the Network stack that it was referencing as a stack reference. Changing the reference to the same Pulumi.Aws version fixed the issue.
  • l

    little-market-63455

    10/02/2021, 7:11 PM
    Hello everyone, question regarding Dynamic Resource Providers. With typical resource providers like AWS, at least in the case of Terraform and according to my understanding, the provider itself merely handles auth and general configuration that is applicable to all downstream API calls while the resources themselves seem to handle the details of how to CRUD which kinda makes sense as the provider would otherwise be a massive switch statement. In Pulumi and with dynamic resource providers, it seems the right usage pattern is to have a one to one mapping between the dynamic provider and the resource it manages Am I understanding this correctly? For example, if I were to build a resource provider to support provisioning a Database and a User in fictitious database server then I would end up with two dynamic providers for each kind of resource and not one provider that can handle both resources?
  • m

    most-lighter-95902

    10/02/2021, 11:55 PM
    Hi everyone, a quick question regarding using secret values in code. I’d think this is a common use case, but how do you take a secret (say db password) and save that as an environment variable inside a docker container? Doing the following throws this error:
    Calling [toString] on an [Output<T>] is not supported.
Powered by Linen
Title
m

most-lighter-95902

10/02/2021, 11:55 PM
Hi everyone, a quick question regarding using secret values in code. I’d think this is a common use case, but how do you take a secret (say db password) and save that as an environment variable inside a docker container? Doing the following throws this error:
Calling [toString] on an [Output<T>] is not supported.
View count: 1