• c

    cold-toothbrush-60276

    2 months ago
    hi, is there a way to use stack references when storing state in s3 buckets?
    c
    m
    +3
    30 replies
    Copy to Clipboard
  • f

    fancy-spoon-7206

    2 months ago
    How do I remove stale stacks that are in a weird state? These are stacks that were never deleted as something went wrong during testing and they were not cleaned up. For more context, I am using the integration testing set up using Golang.
    ➜ vpc-builder (main) ✔ pulumi stack rm p-it-ny6j4r57fl-aep-base-i-1768dd0e
    error: failed to decrypt: incorrect passphrase, please set PULUMI_CONFIG_PASSPHRASE to the correct passphrase or set PULUMI_CONFIG_PASSPHRASE_FILE to a file containing the passphrase
  • m

    magnificent-sugar-26362

    2 months ago
    👋 Hi everyone!
  • m

    many-spring-73557

    2 months ago
    I want to make sure that we’re running commands on a stack against the correct AWS account. My first approach is to use
    aws.getCallerIdentity({})
    to get the accountId and compare it, but that’s not possible:
    const accountId = await aws.getCallerIdentity({}).then(current => current.accountId);
    
    if((pulumi.getStack() == "prod" && accountId != "512302493601") || (pulumi.getStack() != "prod" && accountId != "497659568814")) {
      process.exit(1);
    }
    (
    await
    can only be used against an async function). I also tried
    await aws.getCallerIdentity({})
    and got the same result. Any suggestions? I want to add a little safeguard so we don’t inadvertently run stack commands against the wrong account.
    m
    f
    4 replies
    Copy to Clipboard
  • m

    microscopic-postman-4756

    2 months ago
    Is anyone running their Pulumi stack in something like AWS Lambda? As in,
    index.ts
    of Pulumi is actually a function and I can trigger it from all the usual lambda sources?
    m
    b
    5 replies
    Copy to Clipboard
  • a

    acoustic-tiger-77630

    2 months ago
    Does anyone knows where I can watch previously recorded Pulumi Webinars?
  • w

    wooden-hydrogen-21594

    2 months ago
    Hello everyone 👋 I couldn't find example in TS how to set up Route53 / ALB / ECS / Fargate / RDS in VPC with needed SGs. Could anyone share such example?
    w
    c
    +1
    6 replies
    Copy to Clipboard
  • s

    swift-intern-18856

    2 months ago
    Having a really confusing problem creating a CRD object that I generated using crd2pulumi. The diff shows the correct spec for the resource I’m trying to create, but when I actually execute I get
    [spec.source: Invalid value: "string": spec.source in body must be of type object: "string", <nil>: Invalid value: "": "spec.source" must validate one and only one schema (oneOf). Found 2 valid alternatives]
    indicating that a nil or empty value is actually being passed to k8s and failing validation server side. Since the diff is correct and shows the populated value, I have no idea how to debug. Any ideas? EDIT: Figured this out, the type was generated as
    any
    and I was improperly supplying the wrong value due to type inference missing.
  • c

    crooked-laptop-67565

    2 months ago
    I'm working with a third-party plugin (Twingate) and I think I've found a bug in the plugin, but just want to check the expected behaviour before I report it or try to fix it. I am running
    pulumi refresh
    and it's giving an error about not finding an expected Twingate resource (because it's been deleted via the Twingate UI). IMO this should update the current state by removing the resource, rather than failing with an error. Does that seem right?
  • c

    crooked-laptop-67565

    2 months ago
    Currently I'm fixing it by running
    pulumi export
    and removing the deleted resource from the JSON