Giter VIP home page Giter VIP logo

Comments (2)

justinvp avatar justinvp commented on May 30, 2024

@alexandr-x-ursul, apologies for the long delay replying to this! Thanks for opening the issue.

Can you share more details on the resources in your stack? Running pulumi stack will list out all the resources. Could you share that (or an anonymized version of it)? Also, could you share some snippets of what it looks like in your program creating some of these resources?

from pulumi.

alexandr-x-ursul avatar alexandr-x-ursul commented on May 30, 2024

@justinvp, here is a snippet of a function that creates a resource that ends up taking much longer than the resource creation itself:

package gluecrawler

import (
	"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/glue"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

// name = "xxx"
func xxx(ctx *pulumi.Context, name string, input *Input, opts ...pulumi.ResourceOption) (*glue.Crawler, error) {

	newCrawler, err := glue.NewCrawler(ctx, name,
		&glue.CrawlerArgs{
			Configuration: pulumi.String("{\"Version\":1.0}"),
			DatabaseName:  pulumi.String(name),
			Description:   pulumi.String("Crawler for S3 xxx- xxx"),
			Name:          pulumi.String(name),
			Role:          input.ServiceList.Role.xxx,
			S3Targets: glue.CrawlerS3TargetArray{
				&glue.CrawlerS3TargetArgs{
					Path: pulumi.Sprintf("s3://%s/xxx", input.ServiceList.S3Bucket.xxxx),
				},
			},
			Tags: pulumi.StringMap{
				"xxx": pulumi.String("true"),
				"xxx":      pulumi.String("xxxx"),
			},
		},
		pulumi.Parent(input.Parent),
		pulumi.Protect(true),
	)
	if err != nil {
		return nil, err
	}

	return newCrawler, nil
}

This function eventually gets called to create the resource

I will also attach an anonymized output from pulumi stack
pulumi_stack.txt

from pulumi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.