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

    billions-greece-72352

    09/07/2021, 7:10 AM
    Hi 👋, I'm using typescript and having trouble understanding how imports are meant to be handled during function serialisation. We are using:
    const { isLeft } = await import("fp-ts/lib/Either");
    Which is `tsc`'d into:
    const { isLeft } = await Promise.resolve().then(() => __importStar(require("fp-ts/lib/Either")));
    Where
    __importStar
    is defined at the top most level of the file. After function serialisation, it appears that the
    __importStar
    definition is not retained (i.e. it hasn't been captured?) so the lambda fails during invocation. When I switch
    importHelpers
    on in
    tsconfig.json
    , it does work. The tsconfig.json from the aws-typescript template doesn't have this set. So... can anyone shed light on the expected way to import those runtime dependencies?
    d
    • 2
    • 1
  • w

    wooden-lifeguard-41446

    09/07/2021, 12:41 PM
    Hi, I've just started and trying to create Management Group with C# . But then, I can't get GroupID as output .
    var managementGroup = new AzureNative.Management.ManagementGroup("managementGroup", new AzureNative.Management.ManagementGroupArgs
            {
                Details = new AzureNative.Management.Inputs.CreateManagementGroupDetailsArgs
                {
                    Parent = new AzureNative.Management.Inputs.CreateParentGroupInfoArgs
                    {
                        Id = "/providers/Microsoft.Management/managementGroups/abb91b5c-16b1-4d24-96f6-9516b8daf6f9",
                    },
                },
                DisplayName = "group name",
                GroupId = "groupd ID",
            });
    The docs said _All input properties are implicitly available as output properties ,_but it seems not. Can someone help me get this please?
    g
    • 2
    • 4
  • b

    bland-smartphone-19451

    09/08/2021, 3:25 AM
    Hi, I've created a AWS route53 alias record with pulumi, but the DNS record is end with random string, how to avoid it?
    b
    • 2
    • 2
  • b

    bland-smartphone-19451

    09/08/2021, 8:51 AM
    Hi, I've a create a fargate service behind a loadbalancer, and a route 53 alias record point to the loadbalancer, but the service don't have the internet access default, i checked the AWS document, there a lots of work to do, such as vpc, subnet, gateway, routetable etc, do you have an example code for this ?
    b
    • 2
    • 1
  • h

    hallowed-teacher-48474

    09/08/2021, 5:01 PM
    Hey everyone, is there a way to get the private and public subnets from an existing VPC using the look up method in Python?
    g
    • 2
    • 3
  • b

    bland-smartphone-19451

    09/09/2021, 8:02 AM
    const serviceName = 'finance-center';
    
    const vpc = new awsx.ec2.Vpc(`${serviceName}-vpc`, {
        numberOfAvailabilityZones: 2,
        numberOfNatGateways: 1,
    });
    
    const sg = new awsx.ec2.SecurityGroup("webserver-sg", {vpc});
    
    sg.createIngressRule("https-access", {
        location: {cidrBlocks: ["0.0.0.0/0"]},
        ports: {protocol: "tcp", fromPort: 80},
        description: "allow HTTP access from anywhere",
    });
    
    sg.createEgressRule("outbound-access", {
        location: {cidrBlocks: ["0.0.0.0/0"]},
        ports: {protocol: "tcp", fromPort: 0, toPort: 65535},
        description: "allow outbound access to anywhere",
    });
    
    const listener = new awsx.elasticloadbalancingv2.NetworkListener(serviceName, {vpc: vpc, port: 80});
    
    // Define the service, building and publishing our './app/Dockerfile', and using the load balancer.
    new awsx.ecs.FargateService(serviceName, {
        desiredCount: 2,
        subnets: pulumi.output(vpc.publicSubnetIds),
        securityGroups: [sg.id],
        taskDefinitionArgs: {
            containers: {
                financeCenter: {
                    image: awsx.ecs.Image.fromPath(serviceName, './app'),
                    environment: [{
                        name: 'RUST_LOG',
                        value: 'finance_center=debug'
                    }, {
                        name: 'APP_ENVIRONMENT',
                        value: 'local'
                    }],
                    memory: 128,
                    portMappings: [listener],
                },
            },
        },
    });
  • b

    bland-smartphone-19451

    09/09/2021, 8:02 AM
    the code above is my code, the container which behind the fargate service is still no internet access, why?
  • b

    broad-chef-99140

    09/09/2021, 3:27 PM
    I'm looking for an example or pointers for deploying a .net 6 Blazor Server application to an Azure App Service (PaaS, not in a container) using Pulumi. Does anyone know of anything that could point me in the right direction? #getting-started #azure #dotnet
  • r

    refined-russia-81345

    09/09/2021, 4:37 PM
    Hi channel , Im a newbie with pulumi . I have already a deployed helm chart on my local cluster ( bitnami/nginx ) without pulumi and im trying to migrate my deployment to pulumi stack . when reading into pulumi documentation : they talk only about converting yaml file ( manifest ) and not helm chart converting any idea how to start with this ?
    b
    • 2
    • 17
  • g

    gifted-restaurant-7924

    09/10/2021, 1:53 AM
    looking to replicate some existing, old fashioned kubernetes manifests into pulumi and i'm struggling with persistent volumes; does anyone have an example of how the persistent volumes should work with Python? i've tried to replicate the typescript versions but haven't had much luck...
    b
    • 2
    • 1
  • r

    refined-russia-81345

    09/10/2021, 1:20 PM
    Hi channel , when importing a helm Chart using pulumi : error :
    kubernetes:<http://helm.sh/v3:Chart|helm.sh/v3:Chart> ():
    error: Preview failed: resource 'my-node-4' does not exist and when
    C:\Users\vPro>helm ls
    *my-node-4*       default         1               2021-09-10 11:51:36.3807357 +0100 +01   deployed        node-15.2.26    14.17.6
    ressources.json
    {
    "resources": [ {"id": "my-node-4", "type": "kubernetes:helm.sh/v3:Chart"}] }
    b
    • 2
    • 10
  • b

    broad-kilobyte-43768

    09/12/2021, 9:16 PM
    Hi y'all, nice to meet you! Does anyone here run a multi-repo setup? I'm trying to figure out how to create a Kubernetes cluster in one repo and deploy to it in another.
    c
    • 2
    • 3
  • b

    brief-xylophone-82066

    09/13/2021, 4:18 AM
    I’ve noticed with the typescript azure-native package that not all inputs are necessarily available as outputs for certain resources… an example is the
    azure-native.recoveryservices.ProtectionPolicy
    resource, where
    resourceGroupName
    and
    vaultName
    are available as inputs but not as outputs. Is this simply a limitation with azure’s API specs that Pulumi is wrapping?
  • r

    red-kangaroo-44125

    09/13/2021, 12:48 PM
    cluster_name = pulumi.Output.all(clustername=eks_cluster.name) \
        .apply(lambda args: f"{args['clustername']}")
    print(cluster_name)
    pulumi.export('cluster-name', eks_cluster.name)
    pulumi.export('kubeconfig', utils.generate_kube_config(eks_cluster))
    Hi: I am trying to write clustername and kubeconfig to a file, followed the Input and outputs doc for the same and wrote the above code, cluster is already created but when printing the variable I am getting.
    pulumi:pulumi:Stack (aws-eks-eks-testing):
        <pulumi.output.Output object at 0x7f6d4007d280>
    b
    s
    • 3
    • 5
  • b

    brainy-church-78120

    09/13/2021, 2:28 PM
    wed especially love if folks new to Pulumi participated in this lil' study we are running. we estimate that it will take about 10 mins of your time.
    p
    • 2
    • 1
  • r

    refined-terabyte-65361

    09/13/2021, 9:11 PM
    Hi i need some understanding on how to use pulumi console so far i have been deploying resources using pulumi local i am trying pulumi login https://api.pulumi.com when i try to deploy resource
    pulumi login <https://api.pulumi.com>
    pulumi stack select --create dev
    pulumi --stack dev up --diff --yes
    deployment gets stuck in this state
    + pulumi:pulumi:Stack: (create)
    i dont see any error when i enable verbose mode I am not sure how pulumi console works
    s
    b
    • 3
    • 28
  • m

    mysterious-piano-88140

    09/14/2021, 7:34 PM
    Hello all, I am using Pulumi for the first time for a project hosted in Azure cloud. I am using Typescript for programming the resources. I currently have the following scenario: A project with a stack named ‘dev’ that creates a ResourceGroup in Azure. The code is as follows: Another project with a stack named ‘dev’ that should create a MariaDB database and map it to the ResourceGroup just created in the other projet. My current code is this:
    export const databaseResourceGroup = new ResourceGroup(
      'resource-group-dev',
      {
        resourceGroupName: 'resource-group-dev',
        location: 'germanywestcentral',
        tags: {
          project: 'test',
          env: 'dev',
          type: 'resourcegroup'
        }
      }
    )
    My problem is that in the second project the ResourceGroup is not linked no matter how (getResourceGroup, Import, StackReference) but is always recreated, which leads to a fail because it just already exists.
    // const resourceGroup = await getResourceGroup({
    //   resourceGroupName: databaseResourceGroupName
    // })
    
    const resourceGroup = new ResourceGroup(
          'resource-group-dev',
          {
            resourceGroupName: 'resource-group-dev',
            location: 'germanywestcentral',
            tags: {
              project: 'test',
              env: 'dev',
              type: 'resourcegroup'
            }
          },
          {
            import: `/subscriptions/<subscription-id>/resourceGroups/<resourcegroupname>`
          }
        )
    Do any of you here have an idea how I can link between resources without recreating them. I would now expect a similar pattern as in the AWS CDK where I can access ARN with from methods.
    w
    • 2
    • 1
  • f

    fast-grass-52071

    09/15/2021, 4:24 PM
    Hello guys, I am new to pulumi and I am trying to get datacenter ID from vSphere using python. but hitting the below error about the module. Any help is appreciated.
    import pulumi_vsphere as vsphere
        ModuleNotFoundError: No module named 'pulumi_vsphere'
    p
    • 2
    • 7
  • f

    future-photographer-26589

    09/16/2021, 9:09 AM
    Hello guys, I'm new to pulumi and I'm using pulumi with golang. I've a question regarding
    ctx.Export
    suppose I create a security group on aws and I exported the
    SG_ID
    , I need to assign this SG to another SG so is there any way I can read this exported value?
    p
    • 2
    • 13
  • c

    careful-television-82602

    09/16/2021, 12:13 PM
    I am just starting to look into Pulumi. Is there a comparison to the Terraform CDK (not the DSL) somewhere?
    b
    • 2
    • 2
  • c

    careful-television-82602

    09/16/2021, 12:15 PM
    Since the Pulumi state is centralized - what's the story on encryption? or is it also possible to keep the state in store that I control?
    p
    • 2
    • 5
  • c

    careful-television-82602

    09/16/2021, 2:09 PM
    So let's say I want to write my own service that wraps/uses pulumi to deploy to AWS ... I would still have to have AWS cli tool around and configure the credentials there? I would prefer to provide the credentials through my own code. Is that possible?
    b
    • 2
    • 8
  • c

    careful-television-82602

    09/16/2021, 3:53 PM
    How can there be a pulumi github action https://github.com/pulumi/actions ... shouldn't the code be different for every deployment? I am somehow missing the big picture
    b
    g
    • 3
    • 56
  • b

    better-zoo-17970

    09/16/2021, 4:54 PM
    What is the template: config: used for inside the pulumi.yaml file? I added a few values in there, that are not part of the config, but still complaining that they dont exist. I want to use the default value unless given one
    b
    • 2
    • 4
  • s

    straight-teacher-66836

    09/17/2021, 11:13 AM
    Hi All, i would like to know if we can create archetypes in python for Pulumi IaC. appreciate some thoughts on it.
    p
    • 2
    • 1
  • m

    many-yak-61188

    09/17/2021, 11:15 AM
    👋 question on pulumi secrets & outout. I've an API key which I am saving as a secret that I need to pass into a ecs task definition as a
    string
    within
    options
    for
    logConfiguration
    . Unlike the
    require
    method which return the raw type the
    requireSecret
    method returns an
    Output<string>
    type. I noticed a similar requirement for passing in
    environments
    in handled by specifying a type of
    pulumi.Input<KeyValuePair[]>
    where as
    LogConfigurations.options
    has the type
    [key: string]: string;
    Can I use an
    Output
    type with
    LogConfigurations.options
    ?
    p
    • 2
    • 10
  • b

    brainy-church-78120

    09/17/2021, 3:21 PM
    we will be closing this activity at the end of the day today. if you haven't participated yet and have a few minutes. wed love for you to participate!
  • w

    wooden-receptionist-75654

    09/20/2021, 5:16 PM
    Hi Guys, Does
    s3
    backend allows tagging the stacks? I’m getting an error on attempt:
    stack tags not supported in --local mode
    b
    • 2
    • 4
  • d

    dazzling-manchester-16947

    09/21/2021, 6:55 AM
    Hello. I created a pulumi script to provision a kubeadm cluster on hetzner cloud (using cloud-init). Now i would like to have a separate script to add a new node to the cluster so that whenever i want to add a node i can run a script that spins up a node and uses information from the existing pulumi stack to join the node. is that possible ? will running a completely different script on the same stack destroy the existing stuff ?
  • c

    curved-account-29261

    09/21/2021, 11:17 AM
    Good day to you, I am encountering some issue with the setup of pulumi in an Azure environment. I have changed my work env (new PC) and since then I am unable to run Pulumi. When running
    pulumi preview
    I receive a few similar errors:
    error: Running program 'E:\Git\Bandlab.Backend\pulumi' failed with an unhandled exception:
        Error: Failed to retrieve the host keys: {"error":{"code":"MissingApiVersionParameter","message":"The api-version query parameter (?api-version=) is required for all requests."}}
            at E:\Git\Bandlab.Backend\pulumi\node_modules\@pulumi\appservice\zMixins.ts:872:19
            at Generator.next (<anonymous>)
            at fulfilled (E:\Git\Bandlab.Backend\pulumi\node_modules\@pulumi\azure\appservice\zMixins.js:18:58)
            at processTicksAndRejections (node:internal/process/task_queues:96:5)
    I am logged in on Azure using
    azure login
    and on pulumi. Any assistance is welcome
Powered by Linen
Title
c

curved-account-29261

09/21/2021, 11:17 AM
Good day to you, I am encountering some issue with the setup of pulumi in an Azure environment. I have changed my work env (new PC) and since then I am unable to run Pulumi. When running
pulumi preview
I receive a few similar errors:
error: Running program 'E:\Git\Bandlab.Backend\pulumi' failed with an unhandled exception:
    Error: Failed to retrieve the host keys: {"error":{"code":"MissingApiVersionParameter","message":"The api-version query parameter (?api-version=) is required for all requests."}}
        at E:\Git\Bandlab.Backend\pulumi\node_modules\@pulumi\appservice\zMixins.ts:872:19
        at Generator.next (<anonymous>)
        at fulfilled (E:\Git\Bandlab.Backend\pulumi\node_modules\@pulumi\azure\appservice\zMixins.js:18:58)
        at processTicksAndRejections (node:internal/process/task_queues:96:5)
I am logged in on Azure using
azure login
and on pulumi. Any assistance is welcome
View count: 3