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

    damp-table-85095

    02/18/2022, 11:28 PM
    Hi. I took a Typescript project that ran under Pulumi 2.x and when I try to run it under Pulumi 3.x I get this error:
    import * as pulumi from "@pulumi/pulumi";
        ^^^^^^
        
        SyntaxError: Cannot use import statement outside a module
    If I change back to Pulumi 2.x the code runs.
    f
    • 2
    • 3
  • c

    creamy-carpet-23943

    02/19/2022, 9:24 PM
    Good afternoon, I am trying to create a NEW custom VM Extension, but this seems to only try and reference a previously created artifact. Is there a way to do what I want and I've just made an error or...? #Create Custom VM Extension extension = compute.VirtualMachineExtension( "extensiontest", resource_group_name=resource_group.name, auto_upgrade_minor_version=False, enable_automatic_upgrade=False, type="CustomScriptExtension", type_handler_version="2.0", force_update_tag=False, publisher="KBC", settings={ "commandToExecute" : "mkdir c:\eric" }, vm_name=vm_TestVM.name ) error: Code="ArtifactNotFound" Message="The VM extension with publisher 'KBC' and type 'CustomScriptExtension' could not be found."
  • s

    sparse-intern-71089

    02/20/2022, 12:58 PM
    This message was deleted.
    a
    • 2
    • 1
  • s

    shy-agency-17913

    02/21/2022, 10:43 AM
    Hi all! I have some issues when configuring AWS Pub sub concept. So what I have configured is that SNS Topic can have multiple queues subscribed to it. However, we can add later on queues that already exist to the SNS Topic and there begins my issue. What we want to achieve is that in case given queue does not exist, it should assign newly created one otherwise just get queue by name. Some of the code is as following: entries.forEach(entry => { const topic = createTopic(entry.topicName); entry.subscriptions.forEach( sub => const queue = getOrCreateQueue(sub.queueName); setupSubscription(topic, queue); ) getOrCreateQueue part is problematic as I can not get it right with aws.sqs.getQueue and new aws.sqs.Queue calls. Any suggestion ? Thx!
    r
    • 2
    • 3
  • c

    cool-glass-63014

    02/21/2022, 12:34 PM
    Is there a way to ignore output such as this?:
    Diagnostics:
      docker:image:Image (docker-image):
        warning: #1 [internal] load build definition from Dockerfile
        #1 sha256:9a53212ce7383ff2e916b04be035bc67ab1898011a36579250c675eb4226f868
        #1 transferring dockerfile: 37B done
        #1 DONE 0.0s>
    ...
    The docker image that is built throws out a lot of output and it is hard to see other more important information and I haven't yet found a way to suppress this diagnostics output
  • a

    alert-balloon-36955

    02/21/2022, 7:51 PM
    Does anyone knows how to specify and specific helm chart from a helm repo in kubernetes helm chart ?
    v
    • 2
    • 1
  • a

    adorable-gpu-98268

    02/22/2022, 11:35 AM
    Hi 👋 Does Pulumi offer 2FA login for individual accounts? Is it offered for team accounts? I’d like to secure my pulumi account.
    q
    • 2
    • 3
  • e

    echoing-angle-67526

    02/22/2022, 12:47 PM
    Hello. Can anyone tell me what framework is used to build app.pulumi.com? I've seen the same framework in other saas products and would like to consider using it to build our own developer portal.
    a
    b
    • 3
    • 4
  • c

    creamy-carpet-23943

    02/22/2022, 2:24 PM
    Good afternoon, I am trying to create a NEW custom VM Extension, but this seems to only try and reference a previously created artifact. Is there a way to do what I want and I've just made an error or...? #Create Custom VM Extension extension = compute.VirtualMachineExtension(     "extensiontest",     resource_group_name=resource_group.name,     auto_upgrade_minor_version=False,     enable_automatic_upgrade=False,     type="CustomScriptExtension",     type_handler_version="2.0",     force_update_tag=False,     publisher="KBC",     settings={         "commandToExecute" : "mkdir c:\eric"         },     vm_name=vm_TestVM.name     ) error: Code="ArtifactNotFound" Message="The VM extension with publisher 'KBC' and type 'CustomScriptExtension' could not be found."
    w
    • 2
    • 3
  • b

    brash-painting-89833

    02/22/2022, 8:45 PM
    Hello folks, is there an way to have multiple backend states? Lets say I have a single repository, and want to manage QA and PROD envs there. The "problem" arrives when I want to have different buckets for each env. I've had success in migrating from pulumi service to my GCP storage, but now i am looking for a way to actually have this, lets say a var or config for the project? Right now I have to keep running
    pulumi login
    for changing the bucket where the state is saved
    e
    • 2
    • 1
  • b

    brash-painting-89833

    02/22/2022, 8:47 PM
    this kind of helps: https://github.com/pulumi/pulumi/pull/5789
  • a

    agreeable-terabyte-59853

    02/22/2022, 10:34 PM
    Hi, How do I ensure that the variables in .env are properly loaded before I read them (I write to .env during runtime)? As of now, I get undefined.
    l
    • 2
    • 2
  • s

    sparse-apartment-71989

    02/22/2022, 11:13 PM
    Questions about the
    CrossGuard
    policy enforcement in CI-CD... The docs talk about organization-wide enforcement of policy packs requiring an Enterprise subscription. However, it seems like a CI-CI pipeline could simply checkout the policy pack code into a folder in the checked-out Pulumi program and enforce the policies as one would when running locally. 1. Are there any restrictions from doing what I described in CI-CD with less-than Enterprise subscription? 2. Has any consideration been given to making the CrossGuard org-wide auto-enforcement feature an option for the other subscription tiers, perhaps with limits (e.g. no more than 100 policies at Team level) or for additional cost (e.g. US$1.00 per month per 100 policies) I’m going to be talking about and demoing CrossGuard at some conferences and honestly, it’s slightly annoying I can’t demo the full feature from a lower tier subscription (i.e. Team), even if it cost a little to do so. Instead, I’ll just have to hand wave around it and call out it’s only available with an Enterprise subscription at an unpublished-price.
    👍 1
  • a

    adorable-waitress-13708

    02/23/2022, 12:36 AM
    hi, does the Pulumi Company team also hang out here ?
    👋 1
    w
    b
    • 3
    • 2
  • a

    adorable-waitress-13708

    02/23/2022, 12:50 AM
    Hi, is there nobody from the Pulumi Company here
    m
    b
    a
    • 4
    • 3
  • h

    helpful-account-44059

    02/23/2022, 5:08 AM
    Hi, i'm trying to create aws vpc, and i got these errors, i don't understand where is my mistake
    l
    • 2
    • 2
  • d

    delightful-xylophone-3967

    02/23/2022, 8:00 AM
    Hello All, has anyone else problems with WSL2 and Pulumi? I'am running pulumi as a docker image from WSL2 and try to create an Azure Postgres Flex Server. I get a "cannot unmarshal DNS message error". This seems to be a go problem (https://github.com/golang/go/issues/51127). Is there anything, the Pulumi team could do about it?
    e
    • 2
    • 2
  • a

    adorable-gpu-98268

    02/23/2022, 10:14 AM
    Is there a way to ensure that a resource does not exist? I’d like to delete the AWS default VPC for new accounts.
    e
    • 2
    • 1
  • j

    jolly-lunch-12979

    02/23/2022, 11:59 AM
    Is there a supported way of moving a stack to a different project? I've not found anything other than export stack -> edit urn to new project -> import stack, then redo all the config secrets which is a huge pain to do. Surely there must be an easier way?
    e
    b
    • 3
    • 4
  • e

    echoing-postman-88590

    02/23/2022, 12:42 PM
    Hi, I am trying to run the following code:
    monitoring = kubernetes.helm.v3.Release(
        "monitoring",
        name="monitoring",
        chart="kube-prometheus-stack",
        namespace="monitoring",
        repository_opts=kubernetes.helm.v3.RepositoryOptsArgs(
            repo="<https://prometheus-community.github.io/helm-charts>",
        ),
        values={
            "grafana": {
                "ingress": {
                    "enabled": True,
                },
            },
        },
    )
    
    grafana_ingress = kubernetes.networking.v1.Ingress.get(
        "grafana-ingress",
        Output.concat("monitoring/monitoring-grafana"),
    )
    grafana_ip = grafana_ingress.status.load_balancer.ingress[0].ip
    But it errors as
    status.loadBalancer
    does not have the
    ip
    value. If I rerun multiple times
    pulumi up
    it will register and continue. Is there a why to define a sort of
    timeout
    for the
    kubernetes.networking.v1.Ingress.get
    ? Thanks
    q
    • 2
    • 13
  • c

    careful-petabyte-65672

    02/23/2022, 1:31 PM
    Hi Pulumi Helpers (Urgent) I get the following error ...
    pulumi:providers:eks (default_4_37_5):
        error: no resource plugin 'eks-v4.37.5' found in the workspace or on your $PATH, install the plugin using `pulumi plugin install resource eks v4.37.5`
    The latest
    eks
    plugin version is
    v0.37.1
    What do I do?
    b
    q
    m
    • 4
    • 10
  • s

    stocky-petabyte-29883

    02/23/2022, 1:51 PM
    Hey Guys, If I am consuming output values from my current stack in a project, how would this behave when I am redeploying this to a brand new environment where the output will be only created during the same execution? Will pulumi wait for that output to be available and use that or will it fail?
    l
    • 2
    • 4
  • f

    famous-art-56985

    02/23/2022, 5:36 PM
    The page on the Pulumi operator is quite light on justification of 'why this it is a good thing': https://www.pulumi.com/blog/pulumi-kubernetes-operator/ From https://github.com/pulumi/pulumi-kubernetes-operator it seems like it is purely CI/CD convenience - i.e. providing no additional functionality compared with deploying from say GitHub actions. Are there any specific advantages outside of CI integration that using the operator permits?
    w
    • 2
    • 3
  • s

    steep-beach-52652

    02/23/2022, 8:48 PM
    can we deploy the same pulumi stack with same state to different aws regions in the same aws account? or do we need to create a seprate stack and state backend for each region?
    m
    l
    • 3
    • 4
  • s

    stocky-petabyte-29883

    02/23/2022, 8:57 PM
    Hey If I am using awsguard for policies and if I have all the available awsguard policies enabled, does this mean this includes all policies in the vanilla policies pack in crossguard that applies to aws?
  • c

    cool-glass-63014

    02/24/2022, 9:33 AM
    I have noticed that when using Pulumi with Cloudflare (in TypeScript:
    import * as cloudflare from "@pulumi/cloudflare";
    ) to setup some DNS records it fails to "move" some DNS resources as it does not change a DNS record and instead tries to create the new version of it causing a conflict since the same DNS CNAME record named "cname-record" cannot be created, which then causes the whole upgrade to fail. I've noticed that I first have to comment out (in separate calls of
    pulumi up
    ) the DNS record declaration and then introducing it again after the DNS record has been deleted so that it then can be added again with the new value. Am I alone with this? Is it intended?
    l
    • 2
    • 4
  • m

    modern-tent-49484

    02/24/2022, 10:18 AM
    Why can I do
    pulumi config get google-native:region
    , but I can't do
    config.require("google-native:region")
    ?
    b
    • 2
    • 4
  • t

    thousands-jordan-32051

    02/24/2022, 2:32 PM
    Hi - I am having some issues with the Pulumi automation API. I guess I'm not doing something right with the secrets provider but the error message is incomprehensible to me. The message is as follows. Not sure how I can start to debug this, any ideas?
    error: getting secrets manager: invalid YAML file: could not unmarshal map: yaml: unmarshal errors:
    `line 4: cannot unmarshal !!str
    null
    into config.Value` `at Pulumi.Automation.Commands.LocalPulumiCmd.RunAsyncInner(IList`1 args, String workingDir, IDictionary`2 additionalEnv, Action`1 onStandardOutput, Action`1 onStandardError, EventLogFile eventLogFile, CancellationToken cancellationToken)` `at Pulumi.Automation.Commands.LocalPulumiCmd.RunAsync(IList`1 args, String workingDir, IDictionary`2 additionalEnv, Action`1 onStandardOutput, Action`1 onStandardError, Action`1 onEngineEvent, CancellationToken cancellationToken)` `at Pulumi.Automation.Workspace.RunStackCommandAsync(String stackName, IList`1 args, Action`1 onStandardOutput, Action`1 onStandardError, Action`1 onEngineEvent, CancellationToken cancellationToken)` `at Pulumi.Automation.WorkspaceStack.RunCommandAsync(IList`1 args, Action`1 onStandardOutput, Action`1 onStandardError, Action`1 onEngineEvent, CancellationToken cancellationToken)`
    at Pulumi.Automation.WorkspaceStack.RefreshAsync(RefreshOptions options, CancellationToken cancellationToken)
    • 1
    • 2
  • f

    flat-salesclerk-13714

    02/24/2022, 3:32 PM
    Hi Pulumi Folks, I would like to get the correct syntax for creating a AWS Cloudwatch MetricAlarm via Python in Pulumi. Things work when passing in one k/v pair into the
    dimension
    property, but passing in multiple k/v pairs results in only the last value being applied. Code is below:
    cw_alarm = aws.cloudwatch.MetricAlarm(f'{instance._name}-disk',
    alarm_description=f"This metric monitors ec2 disk utilization",
    comparison_operator="GreaterThanOrEqualToThreshold",
    evaluation_periods=1,
    insufficient_data_actions=[],
    dimensions= { 'Name':'InstanceId', 'Value':instance.id,
    'Name':'Filesystem', 'Value':'/dev/root',
    'Name':'MountPath', 'Value':'/',
    },
    metric_name="DiskSpaceUtilization",
    namespace="AWS/EC2",
    period=300,
    statistic="Minimum",
    threshold=80,
    alarm_actions=[ alarm_action_arn ])
    • 1
    • 2
  • m

    modern-tent-49484

    02/24/2022, 3:39 PM
    Is it right that https://www.pulumi.com/registry/packages/google-native/api-docs/vpcaccess/v1/connector/#inputs requires ConnectorId, given it's the connector i'm defining?
Powered by Linen
Title
m

modern-tent-49484

02/24/2022, 3:39 PM
Is it right that https://www.pulumi.com/registry/packages/google-native/api-docs/vpcaccess/v1/connector/#inputs requires ConnectorId, given it's the connector i'm defining?
View count: 1