https://pulumi.com logo
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
  • h

    high-translator-22614

    07/30/2019, 7:46 PM
    yeah, afaik there's no form of inter-stack/inter-project linking
    • 1
    • 1
  • o

    orange-tailor-85423

    07/30/2019, 7:47 PM
    we do it all the time with text but since the cluster wants an actual role object it’s a problem
  • h

    high-translator-22614

    07/30/2019, 7:48 PM
    yeah, i wouldn't expect such a feature to support full real objects, just JSON-ish stuff
  • o

    orange-tailor-85423

    07/30/2019, 8:21 PM
    yep
  • b

    busy-umbrella-36067

    07/30/2019, 8:27 PM
    @orange-tailor-85423 Have you tried using
    aws.iam.Role.get()
  • o

    orange-tailor-85423

    07/30/2019, 8:47 PM
  • o

    orange-tailor-85423

    07/30/2019, 8:47 PM
  • o

    orange-tailor-85423

    07/30/2019, 8:49 PM
    will give that a go
    • 1
    • 3
  • h

    handsome-actor-1155

    07/30/2019, 9:50 PM
    So, I keep getting a notification that there’s a new version of pulumi cli available (
    0.17.27
    ) but
    brew upgrade pulumi
    keeps responding with
    0.17.25 is already installed
    . I tried removing and re-adding via brew but keep getting
    0.17.25
    and not able to upgrade. Thoughts on how to resolve?
  • h

    handsome-actor-1155

    07/30/2019, 9:51 PM
    Also,
    pulumi stack rename <new-stack-name>
    keeps responding with:
    warning: A new version of Pulumi is available. To upgrade from version '0.17.25' to '0.17.27', run 
       $ brew upgrade pulumi
    or visit <https://pulumi.com/docs/reference/install/> for manual instructions and release notes.
    error: [400] Bad Request: could not deserialized deployment
    d
    g
    c
    • 4
    • 7
  • m

    modern-bear-85657

    07/30/2019, 10:02 PM
    new
    aws.Provider
    via AssumeRole is not working. I’ve followed the example:
    // build provider with STS creds
    const arProvider = new aws.Provider('other-account', {
        assumeRole: {
            roleArn: config.require('role_arn'),
            sessionName: 'name',
            externalId: 'id'
        },
        region: aws.config.requireRegion()
    })
    
    const ca = output(getCertificateAuthority(
        { arn: config.require('ca_arn') },
        { provider: arProvider }
    ))
    Error: invocation of aws:acmpca/getCertificateAuthority:getCertificateAuthority returned an error: No valid credential sources found for AWS Provider.
    I’ve validated that the role name is accurate and I have permissions to assume it via the aws cli.
    b
    s
    e
    • 4
    • 17
  • r

    rough-toothbrush-6148

    07/31/2019, 12:54 AM
    Hi, I'm currently evaluating Pulumi and I had a question about having multiple people working on the same stack. Are there any best practices for managing a stack's state while multiple people are working on it?
    b
    s
    • 3
    • 3
  • m

    mysterious-glass-86738

    07/31/2019, 5:01 AM
    Hey all, Something I'm struggling to understand about Pulumi at the moment is how to develop "feature branches". So, my intuition is that I'll manage my stacks locally, in a git repo. Lets say my stack file exists on the master branch. Next, I want to develop a new feature, so I create a new branch. Around the same time my coworker starts a new branch too. We both develop against the local copies of the stack file we have on our branches. My coworker merges their changes first, no problems. Next, I go to merge my changes. Unfortunately, I get merge conflicts in my state file. Is the correct way to resolve this to take their code changes and stack file, re-run Pulumi against it, and verify that I'm only making the changes I intended to make?
    w
    b
    • 3
    • 2
  • c

    cold-coat-35200

    07/31/2019, 7:14 AM
    hi, I have an issue with pulumi typescript, when running
    pulumi up
    on the master branch without any change, it wants to delete all of my resources, looks like a caching issue with ts compiling, because I added log messages to the code and none of them appeared, deleted the code from index.ts and created only 1 resource, but after an up it only shows the old resource deletions, nothing about the new one, then I cloned our repo to a different directory, where pulumi works as expected, does not want change anything I wasn't able to figure out how pulumi compiles my typescript files and where stores the compiled js files. How can I solve this problem without deleting the whole git repo and clone again? (btw, I'm not sure that would be a solution in case if I clone to the same path)
    b
    • 2
    • 7
  • c

    cool-egg-852

    07/31/2019, 3:35 PM
    Seems like there is a bug when updating a VPNTunnel in GCP. If you change the localTrafficSelectors, it doesn’t remove the old tunnel first. It’s trying to create it first, thus failing because
    A tunnel with same peer IP is already associated with the same gateway.
    g
    • 2
    • 7
  • q

    quick-action-34599

    07/31/2019, 3:52 PM
    You guys see refinery.io on producthunt today? I always though Pulumi would be a good base for a drag & drop serverless flow editor; doubt he’s using it though.
  • w

    worried-engineer-33884

    07/31/2019, 4:21 PM
    It seems that
    config.require
    doesn't work so well in a dynamic provider async
    create
    function.
    Untitled
    w
    • 2
    • 3
  • l

    lemon-greece-30910

    07/31/2019, 5:23 PM
    i am not sure if anyone here is able to help me on this, but i am trying to set up HTTPS domain name forwarding. i have a domain managed in aws route53, but it seems i do not understand enough about pulumi/aws to be able to create domain forwarding. to some service i have running in a kubernetes cluster. is anyone able to provide any guides/examples that would be helpful? i am not very experienced in working with devops so any help is appreciated.
    h
    • 2
    • 3
  • l

    lemon-greece-30910

    07/31/2019, 5:40 PM
    if it helps; the code can be seen at: https://github.com/glitr-io/glitr-architecture
  • s

    stale-autumn-24797

    07/31/2019, 6:32 PM
    I’m trying to use an Output value from a previous resource creation in a dictionary that I’m passing to a Helm chart. Here was my first attempt:
    public_ip = PublicIp(
           f'{env}_public_ip',
           name=f'{PREFIX}-{env}-public-ip',
           resource_group_name=aks_stack.get_output('rg_name'),
           allocation_method='Static',
           domain_name_label=f'{PREFIX}-{env}')
    
       nginx_chart_opts = ChartOpts(f'{env}-nginx-chart-opts')
       nginx_chart_opts.transformations = [lambda config_file: set_metadata_namespace(config_file, env)]
       nginx_chart_opts.repo = 'stable'
       nginx_chart_opts.chart = 'nginx-ingress'
       nginx_chart_opts.namespace = env
       nginx_chart_opts.values = \
       {
           'controller':
           {
               'service':
               {
                   'loadBalancerIP': public_ip.ip_address
               },
               'replicaCount': 2
           },
           'rbac':
           {
               'create': True
           }
       }
    
       # Deploy the nginx ingress controller.
       nginx_ingress = Chart(
           f'{env}-nginx-ingress',
           nginx_chart_opts,
           opts=ResourceOptions(provider=custom_provider, depends_on=[public_ip]))
    This produced the following error:
    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 "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/asyncio/base_events.py", line 484, in run_until_complete
            return future.result()
          File "/Users/mike/.pyenv/pulumi/lib/python3.6/site-packages/pulumi/runtime/stack.py", line 38, in run_in_stack
            await RPC_MANAGER.unhandled_exeception()
          File "/Users/mike/.pyenv/pulumi/lib/python3.6/site-packages/pulumi/runtime/rpc_manager.py", line 68, in rpc_wrapper
            result = await rpc_function(*args, **kwargs)
          File "/Users/mike/.pyenv/pulumi/lib/python3.6/site-packages/pulumi/runtime/resource.py", line 411, in do_register_resource_outputs
            serialized_props = await rpc.serialize_properties(outputs, {})
          File "/Users/mike/.pyenv/pulumi/lib/python3.6/site-packages/pulumi/runtime/rpc.py", line 57, in serialize_properties
            result = await serialize_property(v, deps, input_transformer)
          File "/Users/mike/.pyenv/pulumi/lib/python3.6/site-packages/pulumi/runtime/rpc.py", line 146, in serialize_property
            value = await serialize_property(value.future(), deps, input_transformer)
          File "/Users/mike/.pyenv/pulumi/lib/python3.6/site-packages/pulumi/runtime/rpc.py", line 135, in serialize_property
            future_return = await asyncio.ensure_future(value)
          File "/Users/mike/.pyenv/pulumi/lib/python3.6/site-packages/pulumi/output.py", line 155, in run
            transformed: Input[U] = func(value)
          File "/Users/mike/.pyenv/pulumi/lib/python3.6/site-packages/pulumi_kubernetes/helm/v2/helm.py", line 312, in _parse_chart
            data = json.dumps(vals).encode('utf-8')
          File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/json/__init__.py", line 231, in dumps
            return _default_encoder.encode(obj)
          File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/json/encoder.py", line 199, in encode
            chunks = self.iterencode(o, _one_shot=True)
          File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/json/encoder.py", line 257, in iterencode
            return _iterencode(o, 0)
          File "/Library/Frameworks/Python.framework/Versions/3.6/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
    g
    b
    • 3
    • 16
  • c

    cool-egg-852

    07/31/2019, 7:12 PM
    Seems like someone forgot to update brew with the newer versions pulumi?
    b
    w
    • 3
    • 11
  • i

    incalculable-diamond-5088

    07/31/2019, 10:21 PM
    Hi, for the
    resource.get
    methods. Is the
    id
    mandatory? How can I filter the resource by tag? (for example,
    aws.route53.Zone
    )
    w
    • 2
    • 2
  • s

    some-waitress-78905

    08/01/2019, 6:09 AM
    ```
  • s

    some-waitress-78905

    08/01/2019, 6:09 AM
    Argument of type '{ port: number; targetId: Output<string>; }' is not assignable to parameter of type 'LoadBalancerTarget'.
      Type '{ port: number; targetId: Output<string>; }' is not assignable to type 'LoadBalancerTargetInfo'.
        Types of property 'targetId' are incompatible.
          Type 'Output<string>' is not assignable to type 'string'.
  • s

    some-waitress-78905

    08/01/2019, 6:10 AM
    wondering if it is possible to use attachTarget/targetId with the output of an instance ip/id
  • b

    better-rainbow-14549

    08/01/2019, 8:52 AM
    https://www.pulumi.com/docs/reference/programming-model/#outputs trabur
  • b

    better-rainbow-14549

    08/01/2019, 8:53 AM
    use pulumi.output(yourobj).apply(...
  • f

    future-morning-96441

    08/01/2019, 11:31 AM
    My deployment (
    pulumi up
    using
    @pulumi/aws
    ) is failing with:
    pulumi😛ulumi:Stack stackname running error: Running program '/home/chris/Projects/project' failed with an unhandled exception: undefined
    Any clue what is undefined here? Or how I could find some ideas where to look next?
    w
    • 2
    • 5
  • n

    nice-airport-15607

    08/01/2019, 4:20 PM
    Anybody know how to stop a
    error: [409] Conflict: Another update is currently in progress.
    ?
    g
    • 2
    • 2
  • n

    nice-airport-15607

    08/01/2019, 4:27 PM
    Anyone else get an
    panic: fatal: An assertion has failed
    error when
    pulumi up
    ?
Powered by Linen
Title
n

nice-airport-15607

08/01/2019, 4:27 PM
Anyone else get an
panic: fatal: An assertion has failed
error when
pulumi up
?
View count: 1