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

    elegant-pager-5412

    04/26/2021, 5:03 AM
    It seems like I can’t construct a resource name using an
    Output
    . Are there any ways around that?
  • e

    elegant-pager-5412

    04/26/2021, 5:04 AM
    My use case is that I have a
    Queue
    and a
    CallbackFunction
    defined and I want to add the
    CallbackFunction
    as the `Queue`’s event source. I’m trying to use the
    queue.onEvent
    method to do so, but I’m required to give the
    onEvent
    a name for the source mapping. I would like that name to just be my lambda’s name and the word
    Event
    at the end of it. How can I achieve that?
    b
    • 2
    • 5
  • w

    wet-noon-14291

    04/26/2021, 8:09 AM
    What is the real benefit of using the github action tasks? I usually put what I need in a script and trigger that instead to be able to trigger it the same way locally as on github actions. @broad-dog-22463, I guess you might have input?
    b
    • 2
    • 1
  • s

    swift-agency-29333

    04/26/2021, 10:12 AM
    Can I set pulumi login path using Automation API? Right now doing it one time through CLI.
    f
    b
    r
    • 4
    • 19
  • g

    gifted-city-99717

    04/26/2021, 11:58 AM
    Hi! I'm trying to build an s3stream component (firehose + s3 bucket). I want to be able to pass a callback function into the component, but need add/inject resources into the function at runtime - namely the firehose name so my callback function Put's the record onto the correct stream. I'm new to Typescript - what's the best way to accomplish this?
    import { FirehoseClient, PutRecordCommand } from "@aws-sdk/client-firehose";
    import * as aws from "@pulumi/aws";
    import * as s3stream from "./s3stream";
    
    export const myStream = new s3stream.S3Stream("my-test-steam", {
      provider: new aws.Provider("provider", { region: <aws.Region>awsConfig.get("region")}),
    
      runtime: <aws.lambda.Runtime>config.get("runtime"),
    
      callback: async(event: awsx.apigateway.Request): Promise<awsx.apigateway.Response> => {
    
        const params = {
            DeliveryStreamName: firehose.name.get(), //  <-- firehose is created in the s3stream.S3Stream component
            Record: {Data: new TextEncoder().encode(body)}
        };
      }
    });
  • b

    broad-dog-22463

    04/26/2021, 12:01 PM
    hey @worried-knife-31967 so as per your awesome feedback on our action to install pulumi, @elegant-window-55250 has a pull request open that will allow you to do the following:
    - uses: pulumi/action-install-pulumi-cli@master
            with:
              pulumi-version: 3.0.*
    ✅ 1
    • 1
    • 2
  • b

    brash-country-7541

    04/26/2021, 12:13 PM
    How do I ekport the kubernetes config file descibed in the Cluster.ts to the .kubeconfig file
    Clustered.ts
    i
    • 2
    • 2
  • b

    bumpy-summer-9075

    04/26/2021, 12:51 PM
    Anyone know of a repository with community "modules" already made? I'm looking to set-up a self-hosted Gitlab instance, but I'm interested in any stacks that's publicly available. The best I found is https://github.com/ghuntley/awesome-pulumi but it's pretty barren.
    m
    • 2
    • 1
  • i

    incalculable-engineer-92975

    04/26/2021, 12:55 PM
    Open question. We started with Pulumi when it was only Typescript and haven't spent any time evaluating other language options since. What are people's opinions about the different languages that Pulumi now supports? Do you feel that some other language works "better" then Typescript does? I'm not really interested in a language war. We've used all of them in the past. Just curious whether one language "fits" the Pulumi model better then another.
    m
    • 2
    • 1
  • s

    shy-sandwich-50117

    04/26/2021, 1:28 PM
    Hi All, whats the difference between these 2 references - I see them interchanged in the docs
    using Pulumi.AzureNative
    and
    using Pulumi.Azure
    l
    • 2
    • 1
  • g

    gorgeous-match-99659

    04/26/2021, 2:16 PM
    Hi all, Anyone seen this error since going to Pulumi 3.1.0 Windows10 new project
    error: could not get cloud url: could not load current project: project is missing a 'name' attribute
    p
    b
    • 3
    • 25
  • a

    average-ability-11166

    04/26/2021, 2:48 PM
    Hi all. I'm receiving
    inputs to import do not match the existing resource; importing this resource will fail
    when importing a CloudFormation template and I can't find the difference between my supplied parameters and the template parameters. Is there a way to debug which parameters are out of sync?
  • w

    worried-church-46455

    04/26/2021, 4:47 PM
    Hi ! 👋, I’m new to Pulumi and I’m very excited about what I’ve seen so far. Some one once said, Pulumi is
    a great solution to the horror that is Terraform
    and I +1 to that 🙂 I’m curious if there’s any updates to the Ruby language support? It’d make migrating to Pulumi more compiling to the teams that use Ruby!
    b
    • 2
    • 1
  • e

    enough-truck-34175

    04/26/2021, 5:59 PM
    Hello! How should we handle mocking register component resources for testing purposes. I followed the unit testing guide for golang here. When I ran my test against this code snippet…
    func NewAKSComponent(ctx *pulumi.Context, name string, params Parameters, opts ...pulumi.ResourceOption) (*Component, error) {
    	aksComponent := &Component{}
    
    	err := ctx.RegisterComponentResource("r1-compute-infra:k8scp:AKSComponent", name, aksComponent, opts...)
    I got this error
    --- FAIL: TestAKSComponent (0.00s)
        /workspaces/r1-compute-infra/pkg/aks/index_test.go:26: 
            	Error Trace:	index_test.go:26
            	            				run.go:103
            	            				run.go:84
            	            				index_test.go:24
            	Error:      	Received unexpected error:
            	            	resource name argument (for URN creation) cannot be empty
            	            	RegisterComponentResource failed
            	            	<http://github.com/relativityone/r1-compute-infra/pkg/aks.NewAKSComponent|github.com/relativityone/r1-compute-infra/pkg/aks.NewAKSComponent>
            	            		/workspaces/r1-compute-infra/pkg/aks/index.go:48
            	            	<http://github.com/relativityone/r1-compute-infra/pkg/aks.TestAKSComponent.func1|github.com/relativityone/r1-compute-infra/pkg/aks.TestAKSComponent.func1>
            	            		/workspaces/r1-compute-infra/pkg/aks/index_test.go:25
            	            	<http://github.com/pulumi/pulumi/sdk/v3/go/pulumi.RunWithContext|github.com/pulumi/pulumi/sdk/v3/go/pulumi.RunWithContext>
            	            		/home/vscode/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.1.0/go/pulumi/run.go:103
            	            	<http://github.com/pulumi/pulumi/sdk/v3/go/pulumi.RunErr|github.com/pulumi/pulumi/sdk/v3/go/pulumi.RunErr>
            	            		/home/vscode/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.1.0/go/pulumi/run.go:84
            	            	<http://github.com/relativityone/r1-compute-infra/pkg/aks.TestAKSComponent|github.com/relativityone/r1-compute-infra/pkg/aks.TestAKSComponent>
            	            		/workspaces/r1-compute-infra/pkg/aks/index_test.go:24
            	            	testing.tRunner
            	            		/usr/local/go/src/testing/testing.go:1194
            	            	runtime.goexit
            	            		/usr/local/go/src/runtime/asm_amd64.s:1371
            	Test:       	TestAKSComponent
    Is there a process in place for testing resource components or is the way I’ve setup my code not the intended strategy? Currently, I’m calling
    NewAKSComponent
    to the AKS cluster and its azure resource group. Thanks!
    • 1
    • 1
  • w

    worried-queen-62794

    04/26/2021, 10:05 PM
    Is there any benefit to component resources compared to a function that creates multiple resources? I personally find the hierarchical URN's a pain in the butt. Having to prepend the parent name to all the children to make it unique is silly. It's also not possible to import a resources as a child of a component resource that doesn't exist yet which is really problematic when that component comes from a package.
    l
    b
    • 3
    • 20
  • l

    little-cartoon-10569

    04/27/2021, 4:02 AM
    Is there a general way to have an API key that isn't tied to a specific person? I'm guessing I need to hand that off to our corporate email tools?
    r
    • 2
    • 6
  • h

    handsome-state-59775

    04/27/2021, 5:02 AM
    How can I rename a project which has its state at app.pulumi.com? I've destroyed stack resources, but when I change the name in Pulumi.yaml,
    pulumi preview
    doesn't list stacks anymore. If I revert name change, select stack lists correctly. How can I migrate an existing stack to use the new project name?
    ✅ 1
    l
    • 2
    • 5
  • n

    nice-hamburger-80052

    04/27/2021, 7:29 AM
    Hi together, I am trying to access the gcp cloudasset api with the google native providers. However, I always get an error 403. I have already tried the following: gcloud auth application-default login gcloud auth activate-service-account gcloud config set billing/quota_project gcloud config set auth/impersonate_service_account
    error sending request: googleapi: Error 403: Your application has authenticated using end user credentials from the Google Cloud SDK or Google Cloud Shell which are not supported by the <http://cloudasset.googleapis.com|cloudasset.googleapis.com>. We recommend configuring the billing/quota_project setting in gcloud or using a service account through the auth/impersonate_service_account setting. For more information about service accounts and how to use them in your application, see <https://cloud.google.com/docs/authentication/>.
    l
    • 2
    • 3
  • d

    damp-tiger-87899

    04/27/2021, 11:10 AM
    When creating an S3 bucket + EKS cluster with Pulumi, what's the easiest way to give a pod access to the bucket?
    b
    • 2
    • 2
  • e

    elegant-pager-5412

    04/27/2021, 12:17 PM
    Hey! Is there any way to run
    pulumi up
    recursively? It is great that Pulumi knows that it depends on some variable from another stack, however, I have to manually run
    pulumi up
    in that stack in order for my dependent stack to use that output from that stack. Is there any way to run
    pulumi up
    recursively?
    p
    • 2
    • 5
  • w

    wonderful-dog-9045

    04/27/2021, 12:22 PM
    Just submitted a proposal for handling imports in CI: https://github.com/pulumi/pulumi/issues/6889 Hopefully not a dupe. 🙂
    b
    • 2
    • 5
  • b

    bored-car-38257

    04/27/2021, 3:29 PM
    reposting here for better reach
  • b

    better-rose-9818

    04/27/2021, 5:17 PM
    Hello! 👋 We went through the Pulumi docs as well as the AWS docs. Does anyone have any idea on how one would go about having Pulumi setup a Lambda with a custom runtime? I see Runtime.Custom as a configuration type but can’t figure how to include the bootstrap file. The end goal would be to install OpenSSH (in addition to node) on the Lambda; so we can do some SFTP. We’re doing TypeScript if that matters.
    b
    • 2
    • 2
  • b

    bumpy-summer-9075

    04/27/2021, 6:33 PM
    Is there a way to get a K8S provider for a non-crosswalk-generated EKS cluster?
    const eksCluster = aws.eks.Cluster.get('myCluster', clusterName);
    works, but it does not provide a
    .provider
    attribute to pass to K8S resources
    b
    b
    w
    • 4
    • 13
  • f

    fast-dinner-32080

    04/27/2021, 7:24 PM
    Hi, Is it possible to query the last state of a resource in my stack? Basically my goal is to set a property only on create and then ignore any external changes to it. I already have the ignore changes part but I am not sure how to keep the last value while only providing an updated one to new resources. My thought was I could query the state of that resource if it exists and use the value it was set too but I am unsure if the Python SDK have a way to accomplish this.
    l
    g
    • 3
    • 19
  • b

    bumpy-summer-9075

    04/27/2021, 9:37 PM
    I can't seem to find a combination of repo/chart/fetchOpts that works to get nginx-ingress. I tried https://pulumi-community.slack.com/archives/C84L4E3N1/p1616682965392300?thread_ts=1616681841.384200&amp;cid=C84L4E3N1 but still get
    Error: invocation of kubernetes:helm:template returned an error: failed to generate YAML for specified Helm chart: failed to pull chart: chart "nginx-ingress" not found in <https://kubernetes.github.io/ingress-nginx> repository
    (also the error stack trace is humongous) Any ideas? edit: It's
    ingress-nginx
    and not
    nginx-ingress
    , I've gone derpy derp.
    p
    l
    • 3
    • 10
  • r

    refined-ambulance-81475

    04/27/2021, 11:42 PM
    Hi! Do someone know if it's possible to import several resources at once to my stack?
    l
    f
    • 3
    • 3
  • g

    glamorous-helmet-50600

    04/28/2021, 12:04 AM
    Sometimes I get this issue when working with Output.Tuple() but I don't quite get why:
    The call is ambiguous between the following methods or properties: 'Output.Tuple<T1, T2>(Input<T1>, Input<T2>)' and 'Output.Tuple<T1, T2>(Output<T1>, Output<T2>)'
    I definitely have some instances where I mix Input with Output in the parameters and don't get that error
  • g

    glamorous-helmet-50600

    04/28/2021, 12:05 AM
    CertificateThumbprint = Output.Tuple<string, string>(args.ResourceGroupName, certificatePassword).Apply(parameters => {
                (string resourceGroupName, string certPassword) = parameters;
    
               // omitted for brevity
    
                return certificate.Thumbprint;
            });
  • g

    glamorous-helmet-50600

    04/28/2021, 12:07 AM
    in this case args.ResourceGroupName is an Input and certificatePassword is a secret (hence Output)
Powered by Linen
Title
g

glamorous-helmet-50600

04/28/2021, 12:07 AM
in this case args.ResourceGroupName is an Input and certificatePassword is a secret (hence Output)
View count: 1