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

    microscopic-flower-5848

    04/23/2022, 11:15 AM
    đź‘‹ Hi everyone!
  • m

    microscopic-flower-5848

    04/23/2022, 11:15 AM
    Is there anywhere to request features or improvements?
    b
    • 2
    • 1
  • m

    microscopic-flower-5848

    04/23/2022, 11:17 AM
    Creating an api using gcp functions is super easy, but they are all gcp generation 1 functions and version2 functions haven't been implemented yet... Would be great to have the same unique api development tools as current pulumi gcp gen one functions but deploying gen2/version2 functions instead. Feature request, hope this is the right place to put it :) https://github.com/pulumi/pulumi/issues/9456
  • b

    bland-lamp-16797

    04/23/2022, 2:07 PM
    is there best practises how to setup pulumi for microservice env with multi-repo? The way that I did previously is that I had one "infra repo" that would hold main configs and each microservice would have their own pulumi folder & state. I might need to do something simular to different company
    đź‘€ 1
  • b

    bitter-eve-53295

    04/23/2022, 3:17 PM
    I'm curious if anyone has experience with successful gitops patterns? I have an infra monorepo with a cli util that can CRUD stacks, but I'm not sure where to start in building the mechanism for versioning stack yamls. For example, one repo per set of synonymous/related stacks? One repo for all and directories per stack? Any insights welcome!!!
  • i

    icy-controller-6092

    04/24/2022, 12:31 AM
    Hi all, is there a way to use Pulumi from the CLI without a Pulumi account? Or does the Pulumi backend infrastructure play a part when deploying stacks?
    f
    • 2
    • 5
  • i

    icy-controller-6092

    04/24/2022, 2:24 AM
    How can I combine two folders into a single zip archive for upload to lambda? e.g.
    code: FileArchive('./a') + FileArchive('./b')
    e
    • 2
    • 2
  • h

    helpful-account-44059

    04/24/2022, 5:30 AM
    Hi, i'm got something trouble with pulumi/eks, i just update node minSize and maxSize, i don't known why got the errors
  • s

    stocky-petabyte-29883

    04/24/2022, 1:20 PM
    Hi I created an aurora cluster for mysql and 2 instances corresponding to it. The first pass created it successfully, however anytime I do a subsequent pulumi up without any code changes, the cluster and the instances have a replace status. Am I doing anything wrong here?
    const defaultCluster = new aws.rds.Cluster(`${stack}-aurora-mysql-cluster`, {
        availabilityZones: auroraConfig.instances.map(x=> x.zoneName),
        applyImmediately: auroraConfig.applyImmediately,
        backupRetentionPeriod: auroraConfig.backupRetentionPeriod,
        clusterIdentifier: `aurora-cluster-${stack}`,
        databaseName: auroraConfig.database,
        vpcSecurityGroupIds: [sg.id],
        dbSubnetGroupName: subnetGroup.name,
        engine: "aurora-mysql",
        engineVersion: "5.7.mysql_aurora.2.03.2",
        preferredBackupWindow: "07:00-09:00",
        port: 3306,
        masterUsername: "admin",
        masterPassword: dbPassword.result,
        tags: {
            Environment: stack
        },
    });
    
    let clusterInstances: aws.rds.ClusterInstance[] = [];
    
    for (const range = {value: 0}; range.value < auroraConfig.instances.length; range.value++) {
        clusterInstances.push(new aws.rds.ClusterInstance(`${stack}-clusterInstances-${range.value}`, {
            identifier: `aurora-cluster-${stack}-instance-${range.value}`,
            clusterIdentifier: defaultCluster.id,
            instanceClass: auroraConfig.instanceType,
            engine: "aurora-mysql",
            engineVersion: defaultCluster.engineVersion,
            tags: {
                Environment: stack
            },
        }));
    };
    b
    • 2
    • 10
  • a

    astonishing-microphone-39160

    04/25/2022, 2:35 AM
    Hi Pulumi, i’m trying to wrap a Terraform provider terraform-provider-tencentcloud to a Pulumi provider by the pulumi-tf-provider-boilerplate. When i ran the command
    make tfgen
    , there were always some compilation errors that should be caused by golang package versions before and after i tried to resolved them. Here is the provider/go.mod:
    module <http://github.com/danli001/pulumi-tencentcloud/provider|github.com/danli001/pulumi-tencentcloud/provider>
    
    go 1.16
    
    replace (
            <http://github.com/hashicorp/go-getter|github.com/hashicorp/go-getter> v1.5.0 => <http://github.com/hashicorp/go-getter|github.com/hashicorp/go-getter> v1.4.0
            <http://github.com/hashicorp/terraform-plugin-sdk/v2|github.com/hashicorp/terraform-plugin-sdk/v2> => <http://github.com/pulumi/terraform-plugin-sdk/v2|github.com/pulumi/terraform-plugin-sdk/v2> upstream-v2.10.1
    )
    
    require (
            <http://github.com/hashicorp/terraform-plugin-sdk|github.com/hashicorp/terraform-plugin-sdk> v1.9.1
            <http://github.com/pulumi/pulumi-terraform-bridge/v3|github.com/pulumi/pulumi-terraform-bridge/v3> v3.18.0
            <http://github.com/pulumi/pulumi/sdk/v3|github.com/pulumi/pulumi/sdk/v3> v3.25.1
            <http://github.com/tencentcloudstack/terraform-provider-tencentcloud|github.com/tencentcloudstack/terraform-provider-tencentcloud> v1.70.2
    )
    Errors:
    ❯ make tfgen                                                                                                                                                                                              10:28:19
    [ -x /usr/local/bin/pulumi ] || curl -fsSL <https://get.pulumi.com> | sh
    pulumi plugin install resource random 4.3.1
    (cd provider && go build -o /Users/dli/workspace/goproj/src/github.com/danli001/pulumi-tencentcloud/bin/pulumi-tfgen-tencentcloud -ldflags "-X <http://github.com/danli001/pulumi-tencentcloud/provider/pkg/version.Version=0.0.1-alpha.1650620947+25dcfec6.dirty|github.com/danli001/pulumi-tencentcloud/provider/pkg/version.Version=0.0.1-alpha.1650620947+25dcfec6.dirty>" <http://github.com/danli001/pulumi-tencentcloud/provider/cmd/pulumi-tfgen-tencentcloud)|github.com/danli001/pulumi-tencentcloud/provider/cmd/pulumi-tfgen-tencentcloud)>
    
    # <http://github.com/hashicorp/terraform-plugin-test|github.com/hashicorp/terraform-plugin-test>
    /Users/dli/go/pkg/mod/github.com/hashicorp/terraform-plugin-test@v1.3.0/helper.go:184:85: not enough arguments in call to zipDecompressor.Decompress
            have (string, string, bool)
            want (string, string, bool, fs.FileMode)
    # <http://github.com/pulumi/pulumi/pkg/v3/codegen/schema|github.com/pulumi/pulumi/pkg/v3/codegen/schema>
    /Users/dli/go/pkg/mod/github.com/pulumi/pulumi/pkg/v3@v3.23.2/codegen/schema/loader.go:120:31: not enough arguments in call to pkgPlugin.Install
            have (*os.File)
            want (io.ReadCloser, bool)
    make: *** [tfgen] Error 2
    Did i do anything wrong here?
    e
    l
    • 3
    • 8
  • h

    helpful-account-44059

    04/25/2022, 8:09 AM
    Hi, when i put object to aws s3, it give me these Diagnostics:
    Diagnostics:
      aws:s3:BucketObject (assets/NOTICES):
        warning: urn:pulumi:dev::relation-website::aws:s3/bucketObject:BucketObject::assets/NOTICES verification warning: Argument is deprecated
        warning: urn:pulumi:dev::relation-website::aws:s3/bucketObject:BucketObject::assets/NOTICES verification warning: Argument is deprecated
    how to avoid ?
    l
    • 2
    • 2
  • n

    nutritious-continent-48407

    04/25/2022, 10:02 AM
    Hi Pulumi, I'm trying to convert an Azure Secret to work with a VM extension for Azure Virtual Desktop in Golang. In the JSON, I require a password to auto-join the session hosts. To accomplish that I require the following (partial) JSON: {"Password":" "my-very-secret-key"} I retrieved the secret using keyvault.GetSecret(), however, I now need to convert a pulumi.StringOutput to a Go string for the JSON to be marshaled. pulumu.StringOutput will marshal empty. This is the actual relevant code:
    secret, err := keyvault.GetSecret(ctx, "my-secret", config.SessionHostConfig.KeyvaultSecretID, &keyvault.SecretState{})
    	if err != nil {
    		return err
    	}
    	
    	type ADJoinExtensionProtectedConfig struct {
    		Password string `json:"Password"`
    	}
    
    	jsonExtensionProtected := ADJoinExtensionProtectedConfig{
    		Password: secret.Value, // Won't work StringOutput vs string mismatch
    	}
    	
    	jsonExtensionProtectedResult, err := json.Marshal(jsonExtensionProtected)
    	if err != nil {
    		return err
    	}
    What would be the best way to accomplish this, any thoughts? Best regards, Jeroen
    b
    • 2
    • 2
  • j

    jolly-church-88521

    04/25/2022, 3:31 PM
    Is the example of
    aws-go-eks
    working fine? I’m trying to create cluster and I’m getting some errors:
    Diagnostics:
      pulumi:pulumi:Stack (aws-go-eks-dev):
        error: an unhandled error occurred: program exited with non-zero exit code: 2
    
        # aws-go-eks
        ./main.go:144:15: eksCluster.CertificateAuthority undefined (type *eks.Cluster has no field or method CertificateAuthority)
        ./main.go:148:16: eksCluster.CertificateAuthority undefined (type *eks.Cluster has no field or method CertificateAuthority)
    b
    • 2
    • 5
  • a

    able-train-72108

    04/25/2022, 6:40 PM
    What is the difference between
    pulumi stack export
    and pulumi resource state in the console? I have a stack in which I remove one agent pool from AKS. When I do pulumi up, pulumi says it has nothing to do. When I export the stack, the agent profile contains only one agent pool (as expected by the code). But, in the pulumi console (and in Azure), the second agent pool is still there. I preview a refresh and the only thing that is changing is the node image of the second pool. I'm trying to understand what is going on and how to fix this, any ideas?
  • r

    rich-stone-79955

    04/25/2022, 8:34 PM
    Not sure if this is the right place for this, but hoping to get some feedback on this issue comment. If this is not the right place, could someone point me in the right direction?
    b
    • 2
    • 2
  • a

    average-article-76176

    04/25/2022, 10:47 PM
    Q on `AWS S3 Bucket`: https://www.pulumi.com/registry/packages/aws/api-docs/s3/bucket/
    `bucket_prefix`: Creates a unique bucket name beginning with the specified prefix. Conflicts with
    bucket
    .
    What does _"Conflicts with
    bucket
    ._" mean? a. If I use this param, I cannot use the
    bucket
    param. b. If I use this param, it works in conjunction with the
    bucket
    param and may invalidate
    bucket
    if the resulting bucket name is bigger than what's allowed by AWS. (edited) c. Something else.
    l
    • 2
    • 3
  • c

    cuddly-actor-99406

    04/26/2022, 2:49 AM
    Hi all. How can I get the node resources of my k8s cluster, i.e.
    kubectl describe node
    . I have a
    pulumi_eks.Cluster
    resource available. I also have a
    pulumi_kubernetes.Provider
    available. I'm trying to a node's IP address for use in a dns record. Thanks.
    b
    • 2
    • 2
  • a

    abundant-solstice-21589

    04/26/2022, 6:24 AM
    Hello everyone, could you tell me how to achieve the following structured config by using Pulumi GO sdk with Automation API:
    config:
      myNamepace:myStorage:
        name: myStorageName
        size: 50
    I have tried the following:
    jsonString := `{"name": "test", "size": 100}`
    err = stack.SetConfig(ctx, "myNamepace:myStorage", auto.ConfigValue{
            Value:  jsonString,
    	    Secret: false,
    })
    I got the following result which is not what I want:
    config:
      myNamepace:myStorage: '{"name": "test", "size": 100}'
  • g

    great-sunset-355

    04/26/2022, 8:33 AM
    I just watched this great tutorial https://www.pulumi.com/resources/building-container-based-aws-lambda-functions-in-python/ And I noticed it uses a docker provider. Let's say I'll add a test before deployment with https://www.pulumi.com/registry/packages/docker/api-docs/container/ - does that mean I'm going to pay for a pulumi resource that is just run once give the current pay per resource pricing model?
    b
    • 2
    • 1
  • f

    fresh-fountain-30715

    04/26/2022, 10:49 AM
    Hi everyone, I’m new at Pulumi and trying to understand if there’s any way to migrate existing GCP project (manually created) to Pulumi ?
    v
    e
    • 3
    • 3
  • c

    calm-mechanic-93288

    04/26/2022, 11:26 AM
    Question (GCP CloudSQL using Google native provider): Would like to check if anyone encountered similar issue or if this a known issue? For a context, I’m deploying CloudSQL with read replica, after making changes in replica instance (any property) I’m getting an
    Error 400: Invalid request: Invalid instance name in request body
    . Also, I noticed that
    Outputs
    for both main/master instance and the replica are getting the same IP addresses output. Though this can be resolve using
    ignoreChanges: ["settings"]
    as a workaround, however any future changes in that property (
    settings
    ) will be ignored.
  • s

    salmon-account-74572

    04/26/2022, 3:05 PM
    @quiet-wolf-18467 Hey David, following up on a Twitter thread from about a week ago. I posted that I’d noticed a flaw in my code. The issue pertained more to logic/code organization than anything else, I think, and before I wrote a blog post about what I found I wanted to check in here first and make sure I wasn’t overlooking something. Details in 🧵.
    q
    b
    • 3
    • 14
  • o

    orange-fish-38644

    04/26/2022, 3:27 PM
    I trying to create a stack in Azure and several Resource can be created but the creation of the WebApp fails with a non meaningful error message:
    azure-native:web:WebApp (MyApp):
        error: autorest/azure: Service returned an error. Status=<nil> <ni>
    If I activate verbose logging I see following error message, regarding a blob not found:
    I0426 17:05:56.202820   29574 state.go:268] error copying .pulumi/stacks/dev2.json to .pulumi/stacks/dev2.json.bak: blob (key ".pulumi/stacks/dev2.json.bak -> .pulumi/stacks/dev2.json") (code=NotFound): -> <http://github.com/Azure/azure-storage-blob-go/azblob.newStorageError|github.com/Azure/azure-storage-blob-go/azblob.newStorageError>, /Users/brew/Library/Caches/Homebrew/go_mod_cache/pkg/mod/github.com/!azure/azure-storage-blob-go@v0.13.0/azblob/zc_storage_error.go:42
    (I'm using my own pulumi state backend in azure blob store) I'm a bit lost how to to solve this issue and would be happy for any support or hint. Thanks in advance :thank-you:
    e
    • 2
    • 4
  • b

    busy-dentist-99842

    04/26/2022, 3:38 PM
    Hello All, Does anyone know if
    aws.ec2.getSubnets()
    guarantees the order of the
    ids
    returned? In other words, if I have multiple subnets but only use the first id in the array returned, can I expect to always get the same subnet id? https://www.pulumi.com/registry/packages/aws/api-docs/ec2/getsubnets/
  • b

    big-potato-91793

    04/26/2022, 3:53 PM
    is there a better way to generate secret than the cli? We are using s3 bucket for the state. Some people doesn’t have the role in production to set the secret. I wanted to know if someone is using another way to generate the secret correclty? awskms is the security provider.
    b
    • 2
    • 1
  • d

    delightful-monkey-90700

    04/26/2022, 4:19 PM
    Howdy. I'm new to Pulumi and moving from CDK-only to multicloud. I'm wondering if it's possible to start out with S3 for state management and then migrate to hosted in the future (if it's what we end up adopting).
    b
    • 2
    • 3
  • w

    wet-soccer-72485

    04/26/2022, 7:35 PM
    i’m not sure if anyone else here is dealing with performance issues with overconsumption of CPU and RAM/memory on medium-to-large stacks, but figured I would drop this discussion here if my research helps: https://github.com/pulumi/pulumi/discussions/9477
  • c

    cuddly-hairdresser-74798

    04/26/2022, 7:38 PM
    I'm wondering, is there a nice abstraction for adding another language, or any hints for where the code for that is?
    b
    e
    • 3
    • 7
  • c

    careful-oil-55681

    04/26/2022, 10:13 PM
    been out of Pulumi for a bit but getting back in! is there or is there planned support storing stack config (especially encrypted stack values) in a remote backend? Like S3 bucket, Pulumi hosted etc? We have constraints on storing secrets in git (even if encrypted inside of a pulumi stack file)
    b
    b
    f
    • 4
    • 18
  • i

    icy-controller-6092

    04/27/2022, 12:08 AM
    If anyone has experience with Pulumi + #localstack would love some new members in the Slack channel! 🙏 thx
Powered by Linen
Title
i

icy-controller-6092

04/27/2022, 12:08 AM
If anyone has experience with Pulumi + #localstack would love some new members in the Slack channel! 🙏 thx
View count: 1