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

    billions-glass-17089

    04/26/2020, 6:22 PM
    is there a way to configure stacks without having to check them into git? for example if I name my aws profile dev but everyone else on my team names it development how do i keep my configs?
  • m

    mysterious-australia-14256

    04/27/2020, 8:29 AM
    Hi. Do cross project references (using StackReference) just allow access to resources in other projects or do they also provide a level of resource dependency awareness i.e. is Pulumi aware of a relationship between projects? For example if I have a simple 2 project setup where 1. Project1 creates a cloud container (e.g. an Azure Resource Group) and outputs its ID 2. Project2 reads in the container ID outputted by Project1 and creates a resource inside it Does Pulumi know about the dependency and refuse to run a "pulumi destroy" against Project1 resources while Project2 is depending on them? In my tests this wasn't the case and I could destroy Project1, breaking Project2 by removing resources it depended on. Is there any way to achieve this dependency for separate projects?
    w
    • 2
    • 1
  • c

    chilly-terabyte-21485

    04/27/2020, 12:54 PM
    hey, guys did you think to rework the config part, it's really confusing how it works tbh.
    w
    • 2
    • 1
  • w

    wonderful-dog-9045

    04/27/2020, 3:21 PM
    What is the url parameter for in
    pulumi new
    that replaces the template parameter?
    b
    • 2
    • 3
  • a

    adamant-dress-73325

    04/27/2020, 4:18 PM
    Hello, I have some questions on the pulumi 2 migration I didn’t see covered in the migration guide. Is the pulumi v2 cli compatible with running pulumi v1 projects? Can I upgrade the cli and deploy old projects as usual? How would I rewrite the following code to avoid requireOutputSync? I’ve tried casting to
    pulumi.Output<string>[]
    but this just produces weird type error I’m unable to resolve without casting to
    unknown
    .
    const vpcId = stackRef.requireOutput('vpcId');
    const vpcPrivateSubnetIds = <string[]>stackRef.requireOutputSync('vpcPrivateSubnetIds');
    const vpcPublicSubnetIds = <string[]>stackRef.requireOutputSync('vpcPublicSubnetIds');
    const vpc = awsx.ec2.Vpc.fromExistingIds('vpc', {
      privateSubnetIds: vpcPrivateSubnetIds,
      publicSubnetIds: vpcPublicSubnetIds,
      vpcId,
    });
    f
    • 2
    • 6
  • w

    worried-engineer-33884

    04/27/2020, 8:48 PM
    pulumi thinks i'm in non-interactive mode all the time now after upgrading to 2.0
    c
    g
    • 3
    • 9
  • o

    orange-policeman-59119

    04/27/2020, 9:34 PM
    Why would a Kubernetes resource not have a "unique name" if it's the only resource of its kind with that name deployed? I am seeing this error:
    kubernetes:<http://networking.k8s.io:NetworkPolicy|networking.k8s.io:NetworkPolicy> prometheus-monitoring  error: Duplicate resource URN 'urn:pulumi:review-payment-manager-fix-prometheus::payment-manager::kubernetes:<http://networking.k8s.io/v1:NetworkPolicy::prometheus-monitoring';|networking.k8s.io/v1:NetworkPolicy::prometheus-monitoring';> try giving it a unique name
    There is only one
    new k8s.networking.v1.NetworkPolicy('prometheus-monitoring')
    call and resource as far as I can tell
    • 1
    • 1
  • o

    orange-policeman-59119

    04/27/2020, 9:35 PM
    oh
  • c

    creamy-potato-29402

    04/27/2020, 9:35 PM
    I was going to guess that it was a misbehaving helm chart. 🙂
    o
    • 2
    • 1
  • f

    fast-activity-86095

    04/27/2020, 10:37 PM
    task_definition = ecs.TaskDefinition(
                name,
                family=name,
                cpu="256",
                memory="512",
                network_mode="awsvpc",
                requires_compatibilities=["FARGATE"],
                execution_role_arn=role.arn,
                container_definitions=json.dumps(
                    [
                        {
                            "name": "my-app",
                            "image": image,
                            "portMappings": [{"containerPort": port, "protocol": "tcp"}],
                        }
                    ]
                ),
                opts=child_opts,
            )
    Is there something I need to do to get the two stacks to work together? I don't have this problem with my other networking project stack, which uses python.
  • f

    fast-activity-86095

    04/27/2020, 10:37 PM
    👋 New to Pulumi and so far so good. Something that's tripping me up is that I can't seem to get 2 stacks to work together that have a different runtime. I have a typescript stack that's outputting an image:
    (venv) ~/***/pulumi/projects/images/config $ pulumi stack output image
    ***.<http://dkr.ecr.us-east-1.amazonaws.com/jdrake/***-59fb83d:602e111c06b6934013578ad80554a074049c59441d9bcd963cb4a7feccede7a5|dkr.ecr.us-east-1.amazonaws.com/jdrake/***-59fb83d:602e111c06b6934013578ad80554a074049c59441d9bcd963cb4a7feccede7a5>
    and then a python stack that's trying to import it then pass it to a Component:
    env = pulumi.get_stack()
    image_stack = pulumi.StackReference(f"jdrake/***-image-config/{env}")
    image = image_stack.get_output("image")
    service = Service("***", env, image, port=80)
    However, running
    pulumi up
    gives me:
    error: Program failed with an unhandled exception:
        error: Traceback (most recent call last):
          File "/usr/local/bin/pulumi-language-python-exec", line 85, in <module>
            loop.run_until_complete(coro)
          File "/Users/jdrake/.pyenv/versions/3.6.8/lib/python3.6/asyncio/base_events.py", line 484, in run_until_complete
            return future.result()
          File "/Users/jdrake/.pyenv/versions/3.6.8/lib/python3.6/asyncio/tasks.py", line 180, in _step
            result = coro.send(None)
          File "/Users/jdrake/.pyenv/versions/3.6.8/lib/python3.6/site-packages/pulumi/runtime/stack.py", line 81, in run_in_stack
            await run_pulumi_func(lambda: Stack(func))
          File "/Users/jdrake/.pyenv/versions/3.6.8/lib/python3.6/site-packages/pulumi/runtime/stack.py", line 34, in run_pulumi_func
            func()
          File "/Users/jdrake/.pyenv/versions/3.6.8/lib/python3.6/site-packages/pulumi/runtime/stack.py", line 81, in <lambda>
            await run_pulumi_func(lambda: Stack(func))
          File "/Users/jdrake/.pyenv/versions/3.6.8/lib/python3.6/site-packages/pulumi/runtime/stack.py", line 104, in __init__
            func()
          File "/usr/local/bin/pulumi-language-python-exec", line 84, in <lambda>
            coro = pulumi.runtime.run_in_stack(lambda: runpy.run_path(args.PROGRAM, run_name='__main__'))
          File "/Users/jdrake/.pyenv/versions/3.6.8/lib/python3.6/runpy.py", line 280, in run_path
            run_name, mod_spec, pkg_name).copy()
          File "/Users/jdrake/.pyenv/versions/3.6.8/lib/python3.6/runpy.py", line 85, in _run_code
            exec(code, run_globals)
          File "./__main__.py", line 8, in <module>
            service = Service("***", env, image, port=80)
          File "/Users/jdrake/talos/pulumi/components/service/src/ns_pulumi_component_service/component.py", line 86, in __init__
            "portMappings": [{"containerPort": port, "protocol": "tcp"}],
          File "/Users/jdrake/.pyenv/versions/3.6.8/lib/python3.6/json/__init__.py", line 231, in dumps
            return _default_encoder.encode(obj)
          File "/Users/jdrake/.pyenv/versions/3.6.8/lib/python3.6/json/encoder.py", line 199, in encode
            chunks = self.iterencode(o, _one_shot=True)
          File "/Users/jdrake/.pyenv/versions/3.6.8/lib/python3.6/json/encoder.py", line 257, in iterencode
            return _iterencode(o, 0)
          File "/Users/jdrake/.pyenv/versions/3.6.8/lib/python3.6/json/encoder.py", line 180, in default
            o.__class__.__name__)
        TypeError: Object of type 'Output' is not JSON serializable
        error: an unhandled error occurred: Program exited with non-zero exit code: 1
    This is failing when I try to use that image value in a task definition:
  • f

    fancy-ice-8211

    04/27/2020, 10:41 PM
    That
    Object of type 'Output' is not JSON serializable
    suggests to me you need an 'apply' somewhere https://www.pulumi.com/docs/intro/concepts/programming-model/#outputs
    f
    • 2
    • 12
  • f

    fancy-ice-8211

    04/27/2020, 11:54 PM
    Oh, wow. Nice work!
  • a

    acceptable-stone-35112

    04/28/2020, 8:35 AM
    I need to populate integration request/response templates in api gateway and I keep them in separate folder as vtl files is there a way to read content of file asset as string? or should I opt for fs operations to read them?
    b
    • 2
    • 1
  • n

    numerous-plastic-88847

    04/28/2020, 9:45 AM
    is anybody aware of a azure devops provider to help automate azure devops, ie create project, repos and pipelines?
    b
    c
    • 3
    • 10
  • c

    chilly-terabyte-21485

    04/28/2020, 9:54 AM
    Is the nodeJs helmv2 package supports as well as the helmv3 ?
    g
    • 2
    • 1
  • g

    great-postman-59271

    04/28/2020, 11:50 AM
    has anyone tried applying the tagging procedure found here: https://www.pulumi.com/blog/automatically-enforcing-aws-resource-tagging-policies/ to other providers, like azure? I tried expanding the auto-tagging to also include some azure resources (im deploying a dual-cloud solution), but it would throw exceptions, saying that it could not cast the new tagging object to the resource tagging property. This works for aws resources though, and the type of the "Tags" property is the same for both the azure resource (i was trying an azure batch account) and aws resources, so im wondering why it happens 🙂
    b
    m
    • 3
    • 4
  • b

    better-actor-92669

    04/28/2020, 2:22 PM
    Hello. I was able to successfully install https://github.com/containous/traefik-helm-chart/tree/master/traefik chart using
    pulumi-kubernetes
    and
    python
    SDK. However, CRDs were not installed. When I do
    helm install
    manually, all CRDs are created. There is a warning in the chart description https://github.com/containous/traefik-helm-chart/tree/master/traefik#warning for Helm 2 that states that you will have to install all CRDs manually, however for helm 3 it is not required. I obviously use helm 3, and as far as I understood, pulumi just calls helm via cli. Can someone please help me with this?
    • 1
    • 2
  • c

    cool-egg-852

    04/28/2020, 2:53 PM
    Are there any plans to have pulumi automatically remove old comments on GitHub? It’s a bit of a pain when changing a large amount of stacks, and then pushing a change. There can sometimes be close to 100 comments from pulumi.
    b
    • 2
    • 14
  • v

    victorious-helmet-11068

    04/28/2020, 3:49 PM
    hi all. is it possible to run a pulumi command and impersonate a service account in GCP?
    g
    • 2
    • 6
  • v

    victorious-helmet-11068

    04/28/2020, 3:49 PM
    (using IAM, not json file)
  • l

    lively-oil-7382

    04/28/2020, 6:53 PM
    getting errors while running unit tests,
  • l

    lively-oil-7382

    04/28/2020, 6:53 PM
    internal/modules/cjs/loader.js:796 throw err; ^ Error: Cannot find module 'C:\my-network\node' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:793:17) at Function.Module._load (internal/modules/cjs/loader.js:686:27) at Function.Module.runMain (internal/modules/cjs/loader.js:1043:10) at internal/main/run_main_module.js:17:11 { code: 'MODULE_NOT_FOUND', requireStack: [] }
  • l

    lively-oil-7382

    04/28/2020, 6:56 PM
    any changes recently that might be causing this error, using pulumi 1.12.1 with Node version v12.14.1 ?
  • b

    bitter-zebra-93800

    04/28/2020, 10:08 PM
    What is the cleanest way to rename a running stack so the next pulumi up does not confuse pulumi?
    s
    s
    • 3
    • 4
  • b

    brief-vr-80039

    04/29/2020, 5:28 AM
    Hi, Is there a way to import yaml to kubernetes with golang sdk? like doing this in typescript/javascript:
    import * as k8s as "@pulumi/kubernetes";
    
    const myApp = new k8s.yaml.ConfigFile("app", {
        file: "app.yaml"
    });
    b
    • 2
    • 1
  • l

    late-printer-99022

    04/29/2020, 8:19 AM
    I always have this basic questions. What is the 4th cloud providers? I know in AWS, it is EKS but I don't understand the 4th one.
  • f

    famous-translator-53768

    04/29/2020, 9:50 AM
    Kubernetes?
    Get Started with Kubernetes
    Pulumi’s Cloud Native SDK makes it easy to target any Kubernetes environment to provision a cluster, configure and deploy applications, and update them as required.
    l
    w
    • 3
    • 3
  • f

    famous-translator-53768

    04/29/2020, 9:50 AM
    basically IaC for k8s cluster and application/deployment config
  • f

    famous-translator-53768

    04/29/2020, 9:52 AM
    so AWS EKS, Azure AKS, GC GKE, and Self-Hosted, On-Prem vanilla K8s
Powered by Linen
Title
f

famous-translator-53768

04/29/2020, 9:52 AM
so AWS EKS, Azure AKS, GC GKE, and Self-Hosted, On-Prem vanilla K8s
View count: 3