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

    proud-umbrella-2459

    12/13/2022, 8:52 PM
    Hi, could you tell me how to create connection (aws.glue.Connection) from marketplace for Apache Iceberg Connector for Glue 3.0 (link). I try (documentation)
    new aws.glue.Connection("iceberg", { connectionType: "MARKETPLACE", name: "Apache Iceberg Connector for Glue 3.0" })
    but it doesn't work... Thanks in advance for any help.
    • 1
    • 1
  • c

    cuddly-computer-18851

    12/14/2022, 1:10 AM
    When updating an AWS Autoscaling Group w/ an instanceRefresh eg
    instanceRefresh: {
            strategy: "Rolling",
            preferences: {
                minHealthyPercentage: 50,
            },
            triggers: ["tag"],
        },
    is there a way to get Pulumi to wait until the refresh is complete?
    b
    • 2
    • 4
  • h

    happy-garage-50771

    12/14/2022, 5:02 AM
    Howdy all, does anybody know if we have an equivalent of a
    pulumi import
    for the Pulumi Automation API, specifically in Typescript?
    s
    • 2
    • 2
  • d

    damp-cartoon-25024

    12/14/2022, 9:28 AM
    Okay, this is weird to me. I'm setting a config setting:
    pulumi config set azure:subscriptionId 12345678-1234-1234-1234-123456789abc
    And using it in code:
    _currentId = config.require("azure:subscriptionId");
    Which fails
    error: Missing required configuration variable 'app:azure:subscriptionId'
            please set a value using the command `pulumi config set app:azure:subscriptionId <value>`
    Where did the
    app:
    come from? The command it suggests fails as well:
    ~#@❯ pulumi config set app:azure:subscriptionId 12345678-1234-1234-1234-123456789abc
    error: invalid configuration key: could not parse app:azure:subscriptionId as a configuration key (configuration keys should be of the form `<namespace>:<name>`)
    What am I missing?
    l
    • 2
    • 2
  • l

    little-journalist-4778

    12/14/2022, 9:32 AM
    I would like to contribute updating pulumi providers terraform bridges, there’s some guideline on it somewhere?
    l
    • 2
    • 2
  • m

    mammoth-journalist-45153

    12/14/2022, 10:58 AM
    We are seeing a lot of our deployments failing with a
    [1]    28272 killed     pulumi up
    w
    m
    e
    • 4
    • 12
  • m

    mammoth-journalist-45153

    12/14/2022, 10:58 AM
    any one else experiencing these issues?
  • w

    wide-dress-96388

    12/14/2022, 12:01 PM
    @mammoth-journalist-45153 we just had the same thing this morning. Seems like a memory leak in latest version of the CLI. See: https://github.com/pulumi/pulumi/issues/11650
  • t

    tall-lion-84030

    12/14/2022, 2:15 PM
    hello anyone having issues with pulumi github app ? Followed all the steps in https://www.pulumi.com/docs/guides/continuous-delivery/github-app/ and ticked all the cases but i can’t see any comment on my PR 🤔
  • e

    enough-sunset-73069

    12/14/2022, 3:24 PM
    Hey everyone👋 I am currently working with Python Cloudflare - Pulumi and I am stuck on the step where I have to bulk import the new Cloudflare WAF Managed Rules - (Cloudflare Managed Ruleset and OWASP Managed Ruleset). As stated in the Pulumi Ruleset doc, '_Import is not supported for this resource'_. Unfortunately I cannot use any of the WafRule, WafGroup, etc since they are deprecated for the new Cloudflare WAF. Did anyone encounter the same issue and if so is there any workaround on this one? I would really appreciate any help! Cheers🍻
  • d

    dry-keyboard-94795

    12/14/2022, 4:00 PM
    Running an
    up
    with
    --target
    specified, it also runs pending imports of resources instead of just creating the targeted resource. Is this expected? Targeted resource is new, imported resource is using the
    import
    directive on ResourceOptions.
  • w

    wide-dress-96388

    12/14/2022, 8:15 PM
    Someone else is having issues right now with the Cloud service? Seems like commands like up/preview are just stuck, and the dashboard does not load at all https://app.pulumi.com/
    Status page doesn’t mention any incident?
    b
    • 2
    • 4
  • d

    delightful-napkin-38557

    12/14/2022, 8:17 PM
    Hello, I'm trying to create a native provider. I used that template https://github.com/pulumi/pulumi-provider-boilerplate and reading that https://github.com/pulumi/pulumi-go-provider. But I don't find any good simple example of what to implement (read/create/update/...). Do you have any getting started doc for creating native provider ?
  • g

    gentle-restaurant-32005

    12/14/2022, 8:21 PM
    Hello, it is good to be here. I am working and syncing our state with the infrastructure on AWS, we have made changes on the console for some time now and we are working on getting our state where we can start utilizing our code instead. Some instances have tags that haven’t been sync yet. I am looking for a better option to do that as these tags are so detailed.
    f
    s
    • 3
    • 4
  • g

    gentle-restaurant-32005

    12/14/2022, 8:22 PM
    In a nutshell, is there and option to ask the state not to track these resources
  • g

    gentle-restaurant-32005

    12/14/2022, 8:22 PM
    If there is, can you anyone point me to the documentation/resources
  • g

    gentle-restaurant-32005

    12/14/2022, 8:23 PM
    Google haven’t been quite helpful
  • g

    gentle-restaurant-32005

    12/14/2022, 8:23 PM
    Thank you
  • r

    refined-father-93093

    12/15/2022, 6:32 AM
    Hello, our team at Amagi is working on building a usecase around Pulumi in which we will be targeting these features & challenges plus some more: 1. Build derived classes for the cloud services to make it compliant with the company's infra guidelines 2. Creation of Component Resources on top of these derived classes 3. Facilitate update of stacks in an object-oriented manner 4. Target issues around Manual State Change 5. Rolling Updates for existing stacks built from Component Resources of derived classes To discuss on the possibility+compatibility aspects of the above, we are looking forward to connect to architects/solution engineers from pulumi who could help us discuss on the challenges & workarounds to support this arguably ambitious idea. In case you might know somebody who can help us with this, please feel free to tag them. Looking forward to connect. TIA!
    b
    • 2
    • 3
  • a

    alert-zebra-27114

    12/15/2022, 9:51 AM
    Are there any supported way to abort a running stack immediately from the stack itself? Previously, I have just used exit (in Python), but after we switched to inline stacks, this does not work - the process just hangs until terminated.
    b
    • 2
    • 8
  • f

    future-window-78560

    12/15/2022, 1:16 PM
    Hello Team, Do we have way in pulumi for creating private IP on postgress-GCP?
    l
    • 2
    • 2
  • g

    glamorous-answer-86536

    12/15/2022, 1:47 PM
    Hi, I am creating some Lambda function code with Pulumi command package and then in my Lambda function I reference that code dir with
    code=FileArchive(f"/tmp/{archive_folder}")
    . On
    pulumi preview
    this fails as the folder does not exist as it is only created on
    pulumi up
    . How can this be solved in a Pulumi way? Cheers!
  • p

    proud-pizza-80589

    12/15/2022, 4:45 PM
    What is the go to tool to combine with Pulumi for bare metal machine installs? Like configuring zfs volumes and running some bash commands (will spin up a k8s cluster)?
    b
    • 2
    • 2
  • m

    millions-parrot-88279

    12/15/2022, 5:22 PM
    when  i  do  pulumi  preview for stack  ,  all resources  created  but  it come issue that say
  • m

    millions-parrot-88279

    12/15/2022, 5:23 PM
    Diagnostics:
    pulumi😛ulumi:Stack (projects1-dev): error: Program failed with an unhandled exception: Traceback (most recent call last): File "C:\pulumi\bin\pulumi-language-python-exec", line 192, in <module> loop.run_until_complete(coro) File "C:\Users\Mohammedbanabila\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 649, in run_until_complete return future.result() File "E:\pulumilist\projects1\venv\lib\site-packages\pulumi\runtime\stack.py", line 126, in run_in_stack await run_pulumi_func(lambda: Stack(func)) File "E:\pulumilist\projects1\venv\lib\site-packages\pulumi\runtime\stack.py", line 51, in run_pulumi_func await wait_for_rpcs() File "E:\pulumilist\projects1\venv\lib\site-packages\pulumi\runtime\stack.py", line 110, in wait_for_rpcs raise exception File "E:\pulumilist\projects1\venv\lib\site-packages\pulumi\runtime\resource.py", line 523, in do_register resolver = await prepare_resource(res, ty, custom, remote, props, opts, typ) File "E:\pulumilist\projects1\venv\lib\site-packages\pulumi\runtime\resource.py", line 124, in prepare_resource serialized_props = await rpc.serialize_properties( File "E:\pulumilist\projects1\venv\lib\site-packages\pulumi\runtime\rpc.py", line 208, in serialize_properties result = await serialize_property( File "E:\pulumilist\projects1\venv\lib\site-packages\pulumi\runtime\rpc.py", line 376, in serialize_property is_known = await output._is_known File "E:\pulumilist\projects1\venv\lib\site-packages\pulumi\output.py", line 100, in is_value_known return await is_known and not contains_unknowns(await future) File "E:\pulumilist\projects1\venv\lib\site-packages\pulumi\runtime\resource.py", line 523, in do_register resolver = await prepare_resource(res, ty, custom, remote, props, opts, typ) File "E:\pulumilist\projects1\venv\lib\site-packages\pulumi\runtime\resource.py", line 124, in prepare_resource serialized_props = await rpc.serialize_properties( File "E:\pulumilist\projects1\venv\lib\site-packages\pulumi\runtime\rpc.py", line 208, in serialize_properties result = await serialize_property( File "E:\pulumilist\projects1\venv\lib\site-packages\pulumi\runtime\rpc.py", line 425, in serialize_property return { File "E:\pulumilist\projects1\venv\lib\site-packages\pulumi\runtime\rpc.py", line 426, in <dictcomp> k: await serialize_property( File "E:\pulumilist\projects1\venv\lib\site-packages\pulumi\runtime\rpc.py", line 260, in serialize_property element_type = _get_list_element_type(typ) File "E:\pulumilist\projects1\venv\lib\site-packages\pulumi\runtime\rpc.py", line 161, in _get_list_element_type raise AssertionError(f"Unexpected type. Expected 'list' got '{typ}'") AssertionError: Unexpected type. Expected 'list' got '<class 'str'>'
    b
    • 2
    • 7
  • f

    fierce-ability-58936

    12/15/2022, 7:27 PM
    We've got a lot of projects created with our own set of terraform modules. We'd like to eventually migrate them to Pulumi without recreating everything from scratch. Let's say we've got the new modules sorted, and now we need to import the infrastructure. I've tried the following: 1. Parse terraform state and use transformations to add import resource option. That kind of works but only if the resource is 100% the same - which is not always the case, i.e. we decided to change tagging or something, or improve things on the way, throwing out some legacy. 2. There's
    pulumi import
    but that doesn't 100% fit either. We can construct an import json from the terraform file, but making the right hierarchy will be tricky. 3. None of the above is scalable! So I was thinking: is there an easy way to modify Pulumi in the following way: 1. Add another flag to
    pulumi import
    , say
    --import-existing
    or something. 2. Pulumi will have all the information about the resource hierarchy and it should be able to query for existing resources. 3. If existing resources match the code (by id?), import them into the state. Those resources don't have to be a perfect match. Does it make sense? Does it sound hard to implement?
    b
    e
    s
    • 4
    • 8
  • i

    incalculable-spring-4592

    12/16/2022, 8:13 AM
    import pulumi import pulumi_aws as aws def Vpc( resource_name: main, cidr_block = '10.0.0.0/16', enable_dns_hostnames = True, enable_dns_support = True, instance_tenancy ='default', tags={ 'Name': 'pulumi-vpc', } )
  • q

    quick-night-9217

    12/16/2022, 8:55 AM
    Is there a way to use an unreleased version of Pulumi’s Cloudflare package (or any other)? Possible a fork. I tried to create a fork of pulumi/cloudflare (especially to get https://github.com/pulumi/pulumi-cloudflare/pull/308 available - Worker Engine Analytics) but failed. Looks like Pulumi tries to fetch a file with Pulumi Cloudflare SDK from its registry. Any idea?
    e
    • 2
    • 1
  • a

    adamant-football-558

    12/16/2022, 10:15 AM
    Hi All. First of all, I want to appreciate your great effort at Pulumi. I'm using it in my project. It's great :). I have a question about the correlation between component resources and parallel execution.
    pulumi up
    has flat
    --parallel
    available. Does it make sense to use component resources with this flag set to 3-4 to speed up the deployment of the resources? Currently, we are not using the Component Resources, but I'm wondering if this could help optimize deployment time. At the moment, it's around 8 minutes. I wish to cut it by at least a few minutes because, soon, we would like to set gitops pipelines.
    l
    • 2
    • 4
  • d

    dry-keyboard-94795

    12/16/2022, 11:51 AM
    Is there a way to modify the state directly? I'm unable to perform
    stack import
    with resources from
    google-native
    m
    • 2
    • 14
Powered by Linen
Title
d

dry-keyboard-94795

12/16/2022, 11:51 AM
Is there a way to modify the state directly? I'm unable to perform
stack import
with resources from
google-native
end up with this error:
error: could not deserialize deployment: [400] Message authentication failed
with
--logtostderr -v=9
I1216 11:54:58.164067  119238 sink.go:153] defaultSink::Error(error: could not deserialize deployment: [400] Message authentication failed)
error: could not deserialize deployment: [400] Message authentication failed
m

many-telephone-49025

12/16/2022, 12:23 PM
Hi, Which backend are you using? The Pulumi service?
d

dry-keyboard-94795

12/16/2022, 12:23 PM
yep
m

many-telephone-49025

12/16/2022, 12:24 PM
Did you checked your token or that you logged in?
to the backend?
d

dry-keyboard-94795

12/16/2022, 12:25 PM
the import works fine with the google-native resource omitted
m

many-telephone-49025

12/16/2022, 12:25 PM
the auth agains GCP is fine too?
d

dry-keyboard-94795

12/16/2022, 12:25 PM
yep
This is the
compute.BackendBucket
resource. Was going to change it to using gcp classic, however we need to set a CDN policy, which is blocked by this
m

many-telephone-49025

12/16/2022, 12:27 PM
Just wanted to ask this question
do you may have a snippet to share?
d

dry-keyboard-94795

12/16/2022, 12:33 PM
stripped down version (had to lift from a component):
import pulumi as p
from pulumi_gcp import compute, storage
from pulumi_google_native.compute import beta as compute_beta

bucket = storage.Bucket(
    "bucket",
    location="EU",
    cors=[
        storage.BucketCorArgs(
            methods=["GET"],
            origins=["*"],
        )
    ],
    storage_class="MULTI_REGIONAL",
    uniform_bucket_level_access=True,
)

compute_beta.BackendBucket(
    "backend-bucket",
    bucket_name=bucket.name,
    enable_cdn=True,
    compression_mode=compute_beta.BackendBucketCompressionMode.AUTOMATIC,
    cdn_policy=compute_beta.BackendBucketCdnPolicyArgs(
        cache_mode=compute_beta.BackendBucketCdnPolicyCacheMode.USE_ORIGIN_HEADERS,
    ),
)
Forgot that it's the Beta variant of BackendBucket (compression wasn't GA at the time)
got it importing. BackendBucket seems to export a secret, so needed to unwrap them with
--show-secrets
in the export
View count: 1