• b

    bored-table-20691

    7 months ago
    I am seeing an odd issue with
    ConfigFile
    in Go, where I have an older stack that works fine, but in a new stack,
    ConfigFile
    loads no data - I’ve actually made an edit to the
    pulumi-kubernetes
    SDK and the invocation to
    kubernetes:yaml:decode
    is returning an empty list of objects. Same code, same version of Pulumi, etc - if I switch to the older stack, it works, and if I switch to the new one, it doesn’t.
    b
    2 replies
    Copy to Clipboard
  • c

    chilly-waiter-37725

    7 months ago
    Hi All, I’ve updated aws iam user name to use controlled naming(https://www.pulumi.com/blog/infrastructure-as-code-resource-naming/#controlled-naming). Now while deleting the user resource, pulumi is still looking for the user with old name and is failing with No such entity error.
    aws.iam.User(
                name=_user['name'], // Added this field to have the name field updated with name 'pulumi_sample_user'
                resource_name=_user['name'],
                path=_user['path'],
                tags=_user['tags']
            )
    Error message: 
    error removing IAM User (pulumi_sample_user) group memberships: Error removing user "pulumi_sample_user" from all groups: NoSuchEntity: The user with name pulumi_sample_user cannot be found
    How to proceed?
    c
    h
    4 replies
    Copy to Clipboard
  • l

    late-energy-66663

    7 months ago
    Hi I am creating multiple EC2 multiple instances with following Code . I would like to export , publicip, ec2name , hostname for each ec2 machine in a separate record . I am creating a ec2.Instance slice and then exporting their value . What would be the best way to get the output in the following format, desired output:
    Machine 1
    hostname: <http://ec2-15-161-152-141.eu-south-1.compute.amazonaws.com|ec2-15-161-152-141.eu-south-1.compute.amazonaws.com>
    Public ip : 15.161.152.141
    Machine2
    hostname: <http://ec2-15-160-154-234.eu-south-1.compute.amazonaws.com|ec2-15-160-154-234.eu-south-1.compute.amazonaws.com>
    Public ip : 15.160.154.234
    Current Code :
    var nodeList []*ec2.Instance
    
    for i := 1; i <= args.NumberOfNodes; i++ {
       vm.Instance, err = ec2.NewInstance(ctx, fmt.Sprintf("machine-%d", i), &ec2.InstanceArgs{
          Tags: pulumi.StringMap{"Name": pulumi.String(fmt.Sprintf("kafka-%d", i))},
          //InstanceType:        pulumi.String("t3.large"),
          InstanceType:        args.InstanceType,
          VpcSecurityGroupIds: pulumi.StringArray{vm.SecurityGroup.ID()},
          Ami:                 pulumi.String("ami-0f8ce9c417115413d"),
          UserData:            userData,
          KeyName:             deployer.KeyName,
       })
       if err != nil {
          panic("error creating ec2 instance")
       }
       nodeList = append(nodeList, vm.Instance)
    }
    
    for k, v := range nodeList {
       ctx.Export("publicIp"+strconv.Itoa(k), v.PublicIp)
       ctx.Export("publicHostName"+strconv.Itoa(k), v.PublicDns)
    
    
    }
    Current Outputs:
    publicHostName0: "<http://ec2-15-161-152-141.eu-south-1.compute.amazonaws.com|ec2-15-161-152-141.eu-south-1.compute.amazonaws.com>"
    publicHostName1: "<http://ec2-15-160-154-234.eu-south-1.compute.amazonaws.com|ec2-15-160-154-234.eu-south-1.compute.amazonaws.com>"
    
        publicIp0      : "15.161.152.141"
        publicIp1      : "15.160.154.234"
    l
    1 replies
    Copy to Clipboard
  • g

    great-sunset-355

    7 months ago
    Is it possible to set default pulumi organization for projects? I have a problem that when I create a new stack it's created under my user namespace instead of the org namespace. This happens to me quite often because I naturally go into the directory of "org" and run
    stack init
    g
    b
    +2
    11 replies
    Copy to Clipboard
  • c

    colossal-car-2729

    7 months ago
    hey, im trying to run
    pulumi preview --show-secrets --diff
    but it still outputs
    + data : "[secret]"
    any idea how to check what pulumi will do?
    c
    q
    3 replies
    Copy to Clipboard
  • a

    ancient-eve-13947

    7 months ago
    Hi, we had an incident yesterday where after a
    pulumi refresh
    command pulumi for the next
    pulumi up
    got the idea that an sql server instance had to be re-created. (Despite our Pulumi code regarding the databases not having changed at all.) As a result, all databases on said server were lost. Luckily, this was our DEV environment, so no harm done, BUT I would like to investigate why this happened, to ensure something like this can never happen on PROD. How do we go about this? I can point you guys at the relevant pulumi up and refresh builds, I assume you can see more in your logs than I do, to figure out why this happened. On a separate note, I think that even if pulumi decides a database server needs to be re-created, at the very least it should come with a HUGE warning that one needs to actively confirm. Even better would be if it copied the databases, so no data gets lost.
    a
    q
    40 replies
    Copy to Clipboard
  • m

    many-yak-61188

    7 months ago
    good morning /afternoon / evening quick qq: I noticed that the pulumi version on nix-pkgs hasn't been updated since
    3.17.1
    - https://search.nixos.org/packages?channel=21.11&amp;from=0&amp;size=50&amp;sort=relevance&amp;type=packages&amp;query=pulumi any insight on how / when / who updates it? We use nix with direnv to set up developer machines without any instructions. This isn't pressing but pulumi does like to remind everyone that we are on an older version
    m
    a
    3 replies
    Copy to Clipboard
  • m

    mammoth-art-6111

    7 months ago
    anyone have general strategies for organizing pulumi projects? started to split up my infra into a few files and noticed pulumi is not detecting them in the way i expect. found an article for defining things as dynamic resources and grouping subcomponents into resources, but does pulumi not allow things like
    import * from webhooks
    and it will instantiate whatever is in
    webhooks.ts
    ?
    m
    m
    +2
    22 replies
    Copy to Clipboard
  • m

    millions-journalist-34868

    7 months ago
    I have starting testing the new Command package in preview and I was wondering how I could debug it. My script seems not to work inside the Command resource and I have no way to debug it as I can't get any error message. Does anyone know how to get error messages from the Command package ?
    m
    b
    +1
    14 replies
    Copy to Clipboard
  • l

    lemon-salesclerk-6224

    7 months ago
    Is there an easy way to retrieve a pulumi stack file for something run in github actions? I'm relatively new to all this and am not sure where the stack is being persisted across github action runs. I'm in a situation where a previous run was interrupted so I need to manually fix the stack file.
    l
    1 replies
    Copy to Clipboard