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

    acoustic-window-73051

    08/19/2021, 7:47 PM
    hi guys, I'm stumped with a hanging preview, when I
    pulumi up --logtostderr -v=9 --debug
    it.hangs with:
    I0819 19:39:01.591124   23811 eventsink.go:59] waiting for quiescence; 100 RPCs outstanding
    I0819 19:39:01.591137   23811 eventsink.go:62] eventSink::Debug(<{%reset%}>waiting for quiescence; 100 RPCs outstanding<{%reset%}>)
    I0819 19:39:01.591479   23811 eventsink.go:59] waiting for quiescence; 99 RPCs outstanding
    I0819 19:39:01.591491   23811 eventsink.go:62] eventSink::Debug(<{%reset%}>waiting for quiescence; 99 RPCs outstanding<{%reset%}>)
    I0819 19:39:01.592633   23811 eventsink.go:59] waiting for quiescence; 98 RPCs outstanding
    I0819 19:39:01.592646   23811 eventsink.go:62] eventSink::Debug(<{%reset%}>waiting for quiescence; 98 RPCs outstanding<{%reset%}>)
    I0819 19:39:01.593078   23811 eventsink.go:59] waiting for quiescence; 97 RPCs outstanding
    I0819 19:39:01.593091   23811 eventsink.go:62] eventSink::Debug(<{%reset%}>waiting for quiescence; 97 RPCs outstanding<{%reset%}>)
    d
    • 2
    • 4
  • a

    acoustic-window-73051

    08/19/2021, 7:47 PM
    bash/aws/python
  • v

    victorious-dusk-75271

    08/20/2021, 6:15 AM
    👋 I’m here! What’d I miss?
  • v

    victorious-dusk-75271

    08/20/2021, 6:17 AM
    Hi, how do i define custom provider?
  • v

    victorious-dusk-75271

    08/20/2021, 6:17 AM
    i need to build something before building docker image
  • v

    victorious-dusk-75271

    08/20/2021, 6:18 AM
    so here is the steps i need to do • build a go program • build docker file
    g
    l
    • 3
    • 3
  • f

    famous-train-16653

    08/20/2021, 7:45 AM
    Just upgraded pulumi to version 3.10.3 and getting these errors:
    'error: installing [resource plugin kubernetes-3.5.0] from : untarring file /Users/johndoe/.pulumi/plugins/resource-kubernetes-v3.5.0/pulumi-resource-kubernetes: stream error: stream ID 1; PROTOCOL_ERROR\n'
    âś… 1
    • 1
    • 4
  • m

    magnificent-gigabyte-61048

    08/20/2021, 10:02 AM
    Hi all! Does this: https://www.pulumi.com/docs/reference/pkg/azure-native/subscription/ mean that Pulumi is not capable of creating Azure subscriptions (only aliases) ?
    p
    • 2
    • 2
  • c

    creamy-table-33432

    08/20/2021, 10:53 AM
    Hi everybody! I'm trying to run azure portal's automation scripts using pulumi https://stackoverflow.com/a/48673001/2720104 How can I achieve the same results using pulumi? You can answer here or in this issue. I'll post your answer to the GitHub issue anyway. Thanks in advance
  • m

    millions-eve-97186

    08/20/2021, 1:03 PM
    Hi! I wonder if I am the only one getting unwarranted warnings as Pulumi creates Docker images. Details in đź§µ
    a
    • 2
    • 8
  • l

    little-journalist-4778

    08/20/2021, 4:03 PM
    Are you considering to allow import and edit of a resource on the same run? (maybe disabled by default)
    g
    • 2
    • 3
  • b

    brash-quill-35776

    08/20/2021, 5:09 PM
    Hi, I get the following error most of time, but it sometimes working, pretty weird issue
    error: Preview failed: refreshing urn:pulumi:cluster.dev::a207937_stratus-cluster::gcp:serviceAccount/account:Account$gcp:serviceAccount/key:Key::serviceAccount-key: 1 error occurred:
        * Error when reading or editing Service Account Key "projects/a207937-stratus-cicd/serviceAccounts/stratus@a207937-stratus-cicd.iam.gserviceaccount.com/keys/c69bf4cd7b0f1d4d0d2f0e667a8bf61542c88aa2": Get "<https://iam.googleapis.com/v1/projects/a207937-stratus-cicd/serviceAccounts/stratus@a207937-stratus-cicd.iam.gserviceaccount.com/keys/c69bf4cd7b0f1d4d0d2f0e667a8bf61542c88aa2?alt=json&prettyPrint=false&publicKeyType=TYPE_X509_PEM_FILE>": Post "<https://oauth2.googleapis.com/token>": dial tcp: lookup <http://oauth2.googleapis.com|oauth2.googleapis.com> on 100.64.0.1:53: read udp 192.168.2.11:57302->100.64.0.1:53: i/o timeout (Client.Timeout exceeded while awaiting headers)
    This happens back and forth, sometimes working sometimes not, it for now only snarl me for GCP project only I can use the same setup to
    pulumi up
    an Azure project succesfully
  • b

    brave-angle-33257

    08/20/2021, 9:18 PM
    Outputs question.. I'm pulling in a stack reference from another stack, and it returns a map of data. usually I would do like this:
    var stackref = new pulumi.StackReference('s3stack');
    var resource = new <http://aws.XXX|aws.XXX>('resource', {
        bucket: stackref.getOutput('outputs').apply(v=>v['storagebucket']['bucket'])
    })
    I'm trying to use this with a pulumi.all like this but can't get it working, it always shows up as [object] in the policy I'm trying to create. The deploy bucket is created in another stack, and the artifact bucket is created in this same stack with the build project
    let pipeline_role_policy = new aws.iam.Policy(pipeline_role_name, {
        name: pipeline_role_name,
        policy: pulumi
            .all([stackref.getOutput("outputs"), this_stack_pipeline_bucket.arn])
            .apply(([bucketOutputs, artifactBucketArn]) => {
                return {
                    Version: "2012-10-17",
                    Statement: [
                        {
                            Effect: "Allow",
                            Action: ["s3:*"],
                            Resource: [
                                `${bucketOutputs['deploy']['bucket']}`,
                                `${bucketOutputs['deploy']['bucket']}/*`,
                                `${artifactBucketArn}`,
                                `${artifactBucketArn}/*`,
                            ],
                        },
                    ],
                };
            })
            .apply(JSON.stringify),
    });
    g
    • 2
    • 2
  • b

    brave-angle-33257

    08/20/2021, 9:19 PM
    this above returns the following in the policy details:
    {\"Effect\":\"Allow\",\"Action\":[\"s3:*\"],\"Resource\":[\"[object Object]\",\"[object Object]/*\",
  • b

    big-island-38073

    08/22/2021, 9:18 PM
    After
    pulumi up
    I see my nested resources in my pulumi cloud resources tab, can I fetch those outputs from the command line?
    b
    s
    • 3
    • 18
  • b

    bland-smartphone-19451

    08/23/2021, 2:12 AM
    Hi, i'm following this example to Running Containers on ECS Fargate, how to add a route 53 record to point the load balancer endpoint?
    g
    • 2
    • 6
  • a

    acoustic-yacht-17594

    08/23/2021, 9:01 AM
    Hi folks, I am building a solution based on the automation API in python, and based on this example: https://github.com/komalali/self-service-platyform I have a specific requirement that I'm not sure how to address: deploy the same set of resources (i.e. stack) to different azure subscriptions. I found this article which explains how to create multiple providers, but I am not sure how to use the automation API to make use of these providers. Any help (including reference to the relevant pulumi.automation documentation) would be appreciated
  • t

    thousands-planet-78612

    08/23/2021, 10:44 AM
    Hi there! I am using Pulumi to create s3.NewBucket in golang and I am having trouble accessing the outputs of my resources.
    // this function defines our pulumi S3 static website in terms of the content that the caller passes in.
    // this allows us to dynamically deploy websites based on user defined values from the POST body.
    func createPulumiProgram(content string) pulumi.RunFunc {
    	return func(ctx *pulumi.Context) error {
    		// our program defines a s3 website.
    		// here we create the bucket
    		siteBucket, err := s3.NewBucket(ctx, "s3-website-bucket", &s3.BucketArgs{
    			Website: s3.BucketWebsiteArgs{
    				IndexDocument: pulumi.String("index.html"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    
    		// here our HTML is defined based on what the caller curries in.
    		indexContent := content
    		// upload our index.html
    		if _, err := s3.NewBucketObject(ctx, "index", &s3.BucketObjectArgs{
    			Bucket:      siteBucket.ID(), // reference to the s3.Bucket object
    			Content:     pulumi.String(indexContent),
    			Key:         pulumi.String("index.html"),               // set the key of the object
    			ContentType: pulumi.String("text/html; charset=utf-8"), // set the MIME type of the file
    		}); err != nil {
    			return err
    		}
    
    		// Set the access policy for the bucket so all objects are readable.
    		if _, err := s3.NewBucketPolicy(ctx, "bucketPolicy", &s3.BucketPolicyArgs{
    			Bucket: siteBucket.ID(), // refer to the bucket created earlier
    			Policy: pulumi.Any(map[string]interface{}{
    				"Version": "2012-10-17",
    				"Statement": []map[string]interface{}{
    					{
    						"Effect":    "Allow",
    						"Principal": "*",
    						"Action": []interface{}{
    							"s3:GetObject",
    						},
    						"Resource": []interface{}{
    							pulumi.Sprintf("arn:aws:s3:::%s/*", siteBucket.ID()), // policy refers to bucket name explicitly
    						},
    					},
    				},
    			}),
    		}); err != nil {
    			return err
    		}
    		// export the website URL
    		ctx.Export("websiteUrl", siteBucket.WebsiteEndpoint)
    		return nil
    	}
    }
    b
    • 2
    • 4
  • c

    creamy-holiday-75376

    08/23/2021, 1:46 PM
    Hi, Just to clarify can we create muiltple resouces in the same stack for example , can we have muitple ec2 ,s3 in the same stack or do we need to create seprate for different resources
    p
    • 2
    • 1
  • n

    nice-yak-27438

    08/23/2021, 3:03 PM
    Hi, Im a beginner, just finished some pulumi aws tutorial , now i want to destroy the stack i dont remember the passphrase... how can I destroy the stack without it? I dont see an option in the GUI or using the access token ? (closest option from the docs seem to be the stack rm with -f flag, but that will leave the resources online)
    🙏 1
    b
    • 2
    • 1
  • d

    damp-memory-66729

    08/23/2021, 5:20 PM
    Hi, I would like clarify how
    ignoreChanges
    option is working for aws.route53.Record. If we ignore change on one prop and another one changes, does Pulumi override all the props of a resource?
    b
    • 2
    • 5
  • e

    echoing-jelly-67975

    08/23/2021, 8:10 PM
    When using the Pulumi automation API, is there a way to get the same colored/formatted output as from the CLI?
    b
    • 2
    • 3
  • d

    dry-florist-5950

    08/24/2021, 1:48 PM
    Hi, does anyone have any examples of how to link an API to a function for google cloud? e.g. Create an endpoint and set the target function? I have done this in AWS using pulumi and was able to point each route to a lambda. Is the equivalent possible in GCF? I cant see much in the docs or online about this. Thanks in advance.
  • c

    colossal-flower-87257

    08/24/2021, 7:51 PM
    Good afternoon! I was just talking to matt stratton on twitter about trying to deploy a dotnet container I have via pulumi which I had a contributor start some pulumi code in a private devops repo. I don't know enough to know if there's creds in there or how to even use it. Could use a hand figuring out what I even have. my code itself is a day or two from being ready to deploy i guess.
    b
    • 2
    • 21
  • b

    big-london-74366

    08/25/2021, 6:40 AM
    Is there a way for me to attach a security group to another resource without replacing the existing one?
    vpcSecurityGroupIds
    is read only, so, I can't do something like:
    rds.vpcSecurityGroupIds = [rds.vpcSecurityGroupIds.concat(anotherSecurityGroup.id)]
    Background story: I created the RDS outside Pulumi, so, I just import it. In order to allow access from another resource to that RDS, I need to add the security group to that RDS
    l
    • 2
    • 20
  • s

    sparse-intern-71089

    08/25/2021, 6:44 AM
    This message was deleted.
    w
    • 2
    • 3
  • t

    thousands-planet-78612

    08/25/2021, 1:01 PM
    i am creating multiple eks cluster in single stack using automation api in golang, Now i would like to delete one of eks cluster using automation api , could anyone pls point me to some example to delete resource in stack
    b
    d
    • 3
    • 16
  • w

    white-cat-90296

    08/25/2021, 4:49 PM
    Hi there! Is there a way of passing a callback to the Pulumi script to execute after it creates the resources? For example
    // Create an Azure resource (Storage Account)
    const storageAccount = new storage.StorageAccount('sa', {
      resourceGroupName: resourceGroup.name,
      sku: {
        name: storage.SkuName.Standard_LRS,
      },
      kind: storage.Kind.StorageV2,
    });
    
    // Export the primary key of the Storage Account
    const storageAccountKeys = pulumi
      .all([resourceGroup.name, storageAccount.name])
      .apply(([resourceGroupName, accountName]) =>
        storage.listStorageAccountKeys({ resourceGroupName, accountName })
      );
    export const primaryStorageKey = storageAccountKeys.keys[0].value;
    
    // MAYBE A FUNCTION HERE TO BE EXECUTED AFTER SA IS CREATED/MODIFIED
    const callback = () => { axios.get(`<http://mycustomserver.com/blabla/${> primaryStorageKey }`) }
    c
    b
    • 3
    • 11
  • f

    fancy-judge-41348

    08/25/2021, 4:58 PM
    Hi guys, when creating a CloudFront distribution with an S3 bucket, is there anyway to automatically update the bucket's policy like selecting this option from the UI?
    b
    • 2
    • 2
  • m

    millions-orange-97816

    08/25/2021, 6:51 PM
    Hi there, I am trying below example from Pulumi github, but for some reason the register_output is not printing the or registering the output examples/kubernetes-py-guestbook/components at master · pulumi/examples · GitHub
Powered by Linen
Title
m

millions-orange-97816

08/25/2021, 6:51 PM
Hi there, I am trying below example from Pulumi github, but for some reason the register_output is not printing the or registering the output examples/kubernetes-py-guestbook/components at master · pulumi/examples · GitHub
View count: 1