• s

    sticky-barista-20144

    3 months ago
    Hi. I'm wondering what's the difference between AWS S3 bucketv2 and bucket resources? Which one should I use?
    s
    1 replies
    Copy to Clipboard
  • w

    witty-vegetable-61961

    3 months ago
    Hi all, I wrote a bit of code in my c# pulumi program to execute a console app on apply of a variable (To get the variable into another system). However, I noticed that on a preview, this code executes (understandably, as its in the flow). How can I stop this so that the method is only called on an apply?
    w
    l
    20 replies
    Copy to Clipboard
  • s

    salmon-fireman-44748

    3 months ago
    Hey folks, just landing in the pulumi realm where I'd like to test it against some use cases I have with Cluster API and running kubernetes clusters on GCP - is there any existing providers for cluster-api available or any existing examples with this integration?
    s
    1 replies
    Copy to Clipboard
  • w

    witty-vegetable-61961

    3 months ago
    hi all, how can I remove all the state from a stack? I want to start again but don't want to delete by each urn.
    w
    1 replies
    Copy to Clipboard
  • i

    incalculable-monkey-35668

    3 months ago
    Hi all, I am thinking of installing pulumi-mysql.https://github.com/pulumi/pulumi-mysql I want to manage MySQL user permissions, but I don’t seem to be able to execute Grant statements at the column level.Is there a better way to use Pulumi and execute column level Grant statements?I would like to manage the following query using Pulumi.
    GRANT SELECT (col1), INSERT (col1,col2) ON mydb.mytbl TO 'someuser'@'somehost';
    i
    n
    +1
    5 replies
    Copy to Clipboard
  • b

    brave-belgium-54530

    3 months ago
    Hi all, I’m trying to assign my RDS instance with a final snapshot containing the actual ID of the instance (which is dynamic and determine by Pulumi, and I want to keep it that way) I couldn’t find anything in the SDK enable me to update the instance’s final snapshot ID after declaring the new rds instance I imagine something like
    db.apply(x => db.set({finaleSnapshotId: `prefix….${x.id}})
    Does anyone here have an experience with that? Thanks 🙂
    b
    l
    3 replies
    Copy to Clipboard
  • s

    stale-iron-26898

    3 months ago
    Hi all, I have simple use-case but it become harder 😞 I use RandomPassword to generate password and save it into variable
    user_password = RandomPassword().result
    the variable ‘user_password’ I sent to my dynamic resource which only create a query with the ‘user_password’ inside (Eventually is a string ) the problem is that the value is the Object itself
    <pulumi.output.Output at 0x7ffe81ffe6d0>
    is there a way to export the value i get from randomPassword into a string in run time? 😢 Thanks!
    s
    l
    4 replies
    Copy to Clipboard
  • b

    breezy-glass-7721

    3 months ago
    Hi All, This product is new to me. It might be a simple question for you but I would really apricate for your answers. We use pulumi for GCP and BQ service for a product. My question is that: if I have a table in Bigquery with data, can i add new columns to this tables without data deletion in the table? (I couldn’t find or missed good examples for it in documentation.)
  • w

    witty-vegetable-61961

    3 months ago
    when you pass in a func to an apply method, is it executed async?
    w
    b
    5 replies
    Copy to Clipboard
  • m

    magnificent-helicopter-3467

    3 months ago
    Hi all, I have a
    Pulumi.dev.yaml
    of the following form:
    config:
      gcp-go-gke:data:
        cluster:
          initialNodeCount: 2
          machineType: n1-standard-2
          name: my-cluster
        registry:
          appLabel: my-proj
          deployment:
            containers:
            - image: us-central1-docker.pkg.dev/my-gcloud-proj/my-gcloud-repo/my-image:0.1.0
              name: my-image
            name: my-deployment
            replicas: 1
          namespace:
            metadata:
              name: namespace-meta
            name: my-namespace
          service:
            name: my-service
            port: 80
            serviceType: LoadBalancer
            targetPort: 8080
      gcp:project: my-proj
      gcp:zone: us-west1-a
    In
    main.go
    , I have the following code:
    type Data struct {
    	cluster  Cluster
    	registry Registry
    }
    
    type Cluster struct {
    	initialNodeCount int
    	machineType      string
    	name             string
    }
    type Registry struct {
    	appLabel   string
    	deployment Deployment
    	namespace  Namespace
    	service    Service
    }
    
    type Deployment struct {
    	containers []Container
    	name       string
    	replicas   int
    }
    
    type Namespace struct {
    	metadata Metadata
    	name     string
    }
    
    type Service struct {
    	name        string
    	port        int
    	targetPort  int
    	serviceType string
    }
    
    type Container struct {
    	image string
    	name  string
    }
    
    type Metadata struct {
    	name string
    }
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    
    		var d Data
    		cfg := config.New(ctx, "")
    		cfg.RequireObject("data", &d)
    
    		engineVersions, err := container.GetEngineVersions(ctx, &container.GetEngineVersionsArgs{})
    		if err != nil {
    			return err
    		}
    		masterVersion := engineVersions.LatestMasterVersion
    
    		cluster, err := container.NewCluster(ctx, d.cluster.name, &container.ClusterArgs{
                ...
            }
    The
    cfg.RequireObject
    call does not panic, but
    d.cluster.name
    resolves to
    ""
    . I’m using this doc as a reference to read structured configuration. Any tips for troubleshooting why the config is not read properly? I used verbose logging (
    pulumi up --logtostderr --logflow -v=9 2> out.txt
    ) but didn’t find anything useful in the logs. Thanks in advance for your help/guidance! 🙂
    m
    e
    8 replies
    Copy to Clipboard