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

    broad-dog-22463

    04/01/2021, 11:05 AM
    it's the runtime arg in the lambda
  • b

    broad-dog-22463

    04/01/2021, 11:05 AM
    https://github.com/pulumi/examples/blob/88e52a453fb5d3ed54dfce2e8a2b61af13f059bf/aws-ts-apigatewayv2-http-api/index.ts#L45
  • r

    red-football-97286

    04/01/2021, 11:09 AM
    Thanks Paul.
  • b

    broad-dog-22463

    04/01/2021, 11:16 AM
    👌
  • b

    broad-dog-22463

    04/01/2021, 11:16 AM
    (sorry, I was sleeping - late night working!)
  • n

    narrow-airport-65967

    04/01/2021, 1:14 PM
    Hi guys! I have a problem to use helm chart. I can't configure secret password in secret created. every time I deploy it it changes the password, I can't pass a password to the helm chart. I saw that there are some discussions on the topic, is this really a limitation today? Thank you
  • l

    lemon-monkey-228

    04/01/2021, 2:03 PM
    Have you got an example @narrow-airport-65967?
    n
    • 2
    • 3
  • a

    agreeable-ram-97887

    04/01/2021, 2:51 PM
    When trying to run
    pulumi up
    I am receiving the error :
    error: could not load plugin for aws provider 'urn:pulumi:dev::permissions::pulumi:providers:aws::default': no resource plugin 'aws-v3.31.0' found in the workspace or on your $PATH, install the plugin using `pulumi plugin install resource aws v3.31.0`
    But when trying to install the plugin I receive another error:
    error: [resource plugin aws-3.31.0] downloading from : 403 HTTP error fetching plugin from <https://get.pulumi.com/releases/plugins/pulumi-resource-aws-v3.31.0-darwin-arm64.tar.gz>
    As you might notice, I am on a MacBook Pro with the new M1 chip (hence, arm). I guess specifically this version of the plugin has not been compiled for this architecture, since I am able to install other versions of the plugin without any issue (e.g.
    3.35.0
    ,
    3.34.2
    , and
    3.34.0
    ) Any suggestions of how to handle this?
    d
    b
    • 3
    • 10
  • b

    brave-angle-33257

    04/01/2021, 3:35 PM
    any reason why the stack names are arbitrarily limited to 100 characters? https://github.com/pulumi/pulumi/blob/master/pkg/backend/filestate/backend.go#L265
  • b

    brave-angle-33257

    04/01/2021, 3:36 PM
    i know 100 may seem like a lot, but in my case with microstacks i try to have the project, account, company, region, cluster, env and variant name all in the stack name, I just hit 106 and it broke 😞 - seems like 255 would be a nice number to use instead, or whatever 255 minus
    Pulumi
    and
    .yaml
    would be ~244
    👍 1
    • 1
    • 1
  • p

    purple-train-14007

    04/01/2021, 7:35 PM
    Anyone getting errors from azure for no reason lately? Im getting an error access denied but Im accessing the content Im intending to change...lol weird. 🤔
    b
    g
    b
    • 4
    • 12
  • l

    limited-caravan-48625

    04/01/2021, 11:46 PM
    Hi! So I'm trying to deploy the static content for my website using pulumi. I'm a bit confused though. After I build my app, I create BucketObjects for every file in the
    dist
    folder and that uploads them to the bucket just fine. However the next time i build my app, that files in the dist folder are different so pulumi tries to delete all the old files and upload the new ones (because the old files are no longer in the dist folder). Is there a way to keep the old files in dist around? It will break my app during deploy if the old static content is deleted before the new version of my server is deployed (its an SSR'd SPA). Thanks!
    b
    • 2
    • 21
  • g

    gifted-island-55702

    04/02/2021, 8:48 AM
    Hi! I'm working on a component resource (I'm still learning) and I'm wondering what the 'remote' flag means for ComponentResource (https://www.pulumi.com/docs/reference/pkg/nodejs/pulumi/pulumi/#ComponentResource-constructor)? (I also see this constructor param for the Resource class). How should I decide if it needs to be true or false?
    b
    • 2
    • 3
  • b

    boundless-artist-3489

    04/02/2021, 1:54 PM
    Hello everyone, I am a beginner in Pulumi and I am testing https://github.com/pulumi/examples/tree/master/gcp-py-network-component I have configured everything well, except that when I do my pulumi up it gives me this : error: Configuration 'gcp-py-network-component:subnet_cidr_blocks' value '172.2.0.0/16' is not a valid 'JSON object' error: an unhandled error occurred: Program exited with non-zero exit code: 1 Do you know the exact syntax to declare a cidr in the pulumi config file? I typed this command : pulumi config set gcp-py-network-component:subnet_cidr_blocks '172.2.0.0/16' And here is the return in my Pulumi.dev.yaml file :
    config:
    gcp-py-network-component:subnet_cidr_blocks: '172.2.0.0/16'
    Would you have an idea ? Thanks in advance for your answer
    p
    • 2
    • 4
  • a

    astonishing-quill-88807

    04/02/2021, 3:46 PM
    Is it possible to migrate a stack from one project to another? Would it just be
    stack export
    and
    stack import
    ? Specifically I am using the S3 backend with namespaced stacks such as
    <http://infastructure.operations.apps.QA|infastructure.operations.apps.QA>
    and
    <http://infrastructure.consul.apps.QA|infrastructure.consul.apps.QA>
    I want to move the resources that are managed by the
    operations
    project to be owned by the
    consul
    project.
    b
    • 2
    • 2
  • a

    astonishing-quill-88807

    04/02/2021, 3:47 PM
    If I have to I can just destroy and rebuild, but that would be a bigger lift than just migrating the state.
  • p

    purple-train-14007

    04/02/2021, 3:50 PM
  • p

    purple-train-14007

    04/02/2021, 3:50 PM
    DNS outage in Azure
  • p

    purple-train-14007

    04/02/2021, 3:51 PM
    This seems to be causing my code issues authenticating against storage blob which isnt allowing me to update my stack
    b
    • 2
    • 5
  • q

    quiet-motorcycle-76742

    04/02/2021, 4:12 PM
    Is it possible to get the name of the organization that owns the stack programmatically? Something a la
    pulumi.get_stack()
    . I’m not seeing anything in the docs.
    g
    • 2
    • 2
  • p

    purple-train-14007

    04/02/2021, 6:55 PM
    @tall-librarian-49374 I noticed that pulumi stores stack history files in blob storage. Is it possible to somehow have pulumi restore infra state with those files? like lets say something fails to builds and you need to roll back.
    t
    g
    +2
    • 5
    • 14
  • l

    lemon-machine-35564

    04/02/2021, 8:58 PM
    Anyone ever see something like
    tderr: error: could not load plugin for aws provider 'urn:pulumi:development::nacelle-services-dilithium::pulumi:providers:aws::default_3_35_0_alpha_1617104857'
    ? We aren’t using the alpha provider anymore and have updated the version in package.json (and package-lock.json)
    • 1
    • 1
  • s

    swift-agency-29333

    04/02/2021, 9:50 PM
    Is there a way to create a resource separately and link it to existing stack?
    b
    b
    • 3
    • 3
  • p

    plain-electrician-55797

    04/03/2021, 4:35 AM
    Hi Everyone I'm new to Pulumi and tried below sample project https://github.com/pulumi/infrastructure-as-code-workshop/tree/master/labs/aws/in-person/python/lab-01 Then I got this error doing step 5(Making Your Stack Configurable)
    error: Program failed with an unhandled exception:
        error: Traceback (most recent call last):
          File "/home/cenisar/.pulumi/bin/pulumi-language-python-exec", line 85, in <module>
            loop.run_until_complete(coro)
          File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
            return future.result()
          File "/home/cenisar/iac-workshop/venv/lib/python3.8/site-packages/pulumi/runtime/stack.py", line 104, in run_in_stack
            await run_pulumi_func(lambda: Stack(func))
          File "/home/cenisar/iac-workshop/venv/lib/python3.8/site-packages/pulumi/runtime/stack.py", line 85, in run_pulumi_func
            raise exception
          File "/home/cenisar/iac-workshop/venv/lib/python3.8/site-packages/pulumi/runtime/rpc_manager.py", line 67, in rpc_wrapper
            result = await rpc
          File "/home/cenisar/iac-workshop/venv/lib/python3.8/site-packages/pulumi/output.py", line 91, in is_value_known
            return await is_known and not contains_unknowns(await future)
          File "/home/cenisar/iac-workshop/venv/lib/python3.8/site-packages/pulumi/output.py", line 91, in is_value_known
            return await is_known and not contains_unknowns(await future)
          File "/home/cenisar/iac-workshop/venv/lib/python3.8/site-packages/pulumi/output.py", line 91, in is_value_known
            return await is_known and not contains_unknowns(await future)
          [Previous line repeated 23 more times]
          File "/home/cenisar/iac-workshop/venv/lib/python3.8/site-packages/pulumi/runtime/resource.py", line 358, in do_register
            resolver = await prepare_resource(res, ty, custom, props, opts)
          File "/home/cenisar/iac-workshop/venv/lib/python3.8/site-packages/pulumi/runtime/resource.py", line 86, in prepare_resource
            serialized_props = await rpc.serialize_properties(props, property_dependencies_resources, res.translate_input_property)
          File "/home/cenisar/iac-workshop/venv/lib/python3.8/site-packages/pulumi/runtime/rpc.py", line 78, in serialize_properties
            result = await serialize_property(v, deps, input_transformer)
          File "/home/cenisar/iac-workshop/venv/lib/python3.8/site-packages/pulumi/runtime/rpc.py", line 233, in serialize_property
            raise ValueError(f"unexpected input of type {type(value).__name__}")
        ValueError: unexpected input of type tuple
        error: an unhandled error occurred: Program exited with non-zero exit code: 1
    Hope you can help me on this. Thanks in advance.
    b
    • 2
    • 1
  • s

    stocky-lion-64552

    04/04/2021, 12:33 PM
    Hi, I'm trying to make pulumi work via github actions:
    steps:
          - uses: actions/checkout@v2
          - uses: actions/setup-node@v2
            with:
              node-version: 14.x
          - name: Configure AWS Credentials
            uses: aws-actions/configure-aws-credentials@v1
            with:
              aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
              aws-region: us-east-1
              aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
          - name: Install Pulumi CLI
            uses: pulumi/action-install-pulumi-cli@v1.0.1
          - run: yarn
          - run: cat Pulumi.mystack.yaml
          - uses: pulumi/actions@v2
            with:
              parallel: 1
              command: preview
              stack-name: 'mystack'
              cloud-url: <s3://mybucket>
              comment-on-pr: true
              github-token: ${{ secrets.GITHUB_TOKEN }}
              work-dir: "path/to/subfolder"
            env:
              AWS_ACCESS_KEY_ID: ${{ secrets.ORG_AWS_ACCESS_KEY_ID }}
              AWS_SECRET_ACCESS_KEY: ${{ secrets.ORG_AWS_ACCESS_KEY_SECRET }}
              AWS_REGION: us-east-1
    But I can't make it work. It keeps failing on:
    ##[debug]Configuration is loaded
    ##[debug]Pulumi CLI is available
    ##[debug]Logging into to <s3://mybucket>
    ##[debug]Working directory resolved at /home/runner/_work/path/to/subfolder
    Error: code: 255
     stdout: 
     stderr: error: no stack named 'mystack' found
    
     err?:
    Can someone please help? It works locally on my laptop, but not in CI
    b
    • 2
    • 2
  • h

    handsome-state-59775

    04/04/2021, 2:15 PM
    how can i create a secret in my stack config that has a plaintext length of ~2.5K characters?
    pulumi config set --secret
    doesn't seem to accept more than 1023 chars
    ✅ 1
    b
    • 2
    • 3
  • b

    bumpy-summer-9075

    04/05/2021, 3:24 PM
    I know we can consume a terraform state in pulumi, but can we do the opposite? There are very useful community modules that I wouldn't want to live without (e.g. https://github.com/npalm/terraform-aws-gitlab-runner), so I need to keep that in Terraform but I also need to pass it values from resources managed by pulumi (vpc id, for instance) I also never got
    tf2pulumi
    to work so I can't convert that module into pulumi either
    ➕ 1
    g
    • 2
    • 3
  • g

    green-morning-1318

    04/05/2021, 5:37 PM
    Is there any documentation how I could make my own provider? 🤔
    g
    b
    • 3
    • 6
  • e

    early-xylophone-77253

    04/05/2021, 7:38 PM
    Is there any way to disable the comments added by the
    pulumi bot
    on pull requests for specific pulumi operations in some of our action steps?
    m
    • 2
    • 1
  • b

    breezy-lamp-49479

    04/05/2021, 8:03 PM
    Hey guys, seems like there’s an issue with AWS, even a simple s3 bucket example isn’t working. I’ve managed to get to the 2nd step + pulumi😛ulumi:Stack quickstart-whatever creating. + └─ aws😒3:Bucket my-bucket-2 creating but now I can leave it at this step for 10 hours and it never goes any further The last line in the log vile: I0405 15:57:46.132702 69698 eventsink.go:62] eventSink::Debug(<{%reset%}>WaitForState exceeded refresh grace period<{%reset%}>) There’s no sign of any pending buckets in AWS:S3, so it’s not communicating. I had to set my config file to: config: aws😒kipCredentialsValidation: “true” aws😒kipMetadataApiCheck: “true” aws😒kipRequestingAccountId: “true” Without that, it just gets stuck in the Verifying of credentials and never gets passed that point. Seems like this error is few years old and it comes & goes for some
Powered by Linen
Title
b

breezy-lamp-49479

04/05/2021, 8:03 PM
Hey guys, seems like there’s an issue with AWS, even a simple s3 bucket example isn’t working. I’ve managed to get to the 2nd step + pulumi😛ulumi:Stack quickstart-whatever creating. + └─ aws😒3:Bucket my-bucket-2 creating but now I can leave it at this step for 10 hours and it never goes any further The last line in the log vile: I0405 15:57:46.132702 69698 eventsink.go:62] eventSink::Debug(<{%reset%}>WaitForState exceeded refresh grace period<{%reset%}>) There’s no sign of any pending buckets in AWS:S3, so it’s not communicating. I had to set my config file to: config: aws😒kipCredentialsValidation: “true” aws😒kipMetadataApiCheck: “true” aws😒kipRequestingAccountId: “true” Without that, it just gets stuck in the Verifying of credentials and never gets passed that point. Seems like this error is few years old and it comes & goes for some
View count: 1