https://pulumi.com logo
Docs
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
  • m

    many-spring-73557

    06/13/2022, 7:14 PM
    Can I set a specific email address to use for an organization, like I can do on GitHub? I signed up for Pulumi using my GitHub account - but for the work org I created, I need it to use my work email. Can I do that, or do I need to create a separate pulumi account for my work email?
    e
    • 2
    • 2
  • f

    famous-salesclerk-74711

    06/13/2022, 10:38 PM
    apologies if this has been asked before but - does pulumi support a concept of a “base” stack configuration file, scoped in a particular project? eg: •
    Pulumi.<base>.yaml
    - has the defaults •
    Pulumi.<a>.yaml
    - has the
    a
    stack’s configs, as overrides from what is specified in
    base
    •
    Pulumi.<b>.yaml
    - has the
    b
    stack’s configs … etc.
    👀 1
    l
    • 2
    • 4
  • b

    blue-judge-71382

    06/13/2022, 11:48 PM
    I am not sure if this is an reopened bug related to https://github.com/pulumi/pulumi-eks/issues/571
    +  pulumi:pulumi:Stack Galaxy-AWS_ECS-96471806 **creating failed** 1 error
     
    Diagnostics:
      aws:iam:RolePolicyAttachment (task-definition-1142-execution-9a42f520):
        error: 1 error occurred:
        	* creating urn:pulumi:AWS_ECS-96471806::Galaxy::awsx:ecs:FargateTaskDefinition$aws:iam/rolePolicyAttachment:RolePolicyAttachment::task-definition-1142-execution-9a42f520: 1 error occurred:
        	* error reading IAM Role Managed Policy Attachment (task-definition-1142-execution-189233a:arn:aws:iam::aws:policy/service-role/AmazonECSTaskExecutionRolePolicy): couldn't find resource
     
      pulumi:pulumi:Stack (Galaxy-AWS_ECS-96471806):
        error: update failed
    Even though I provide the ResouceOptions.transformations like lblackstone said:
    {
              transformations: [
                // Update all RolePolicyAttachment resources to use aws-cn ARNs.
                args => {
                  if (
                    args.type ===
                    'aws:iam/rolePolicyAttachment:RolePolicyAttachment'
                  ) {
                    const arn: string | undefined = args.props['policyArn'];
                    if (arn && arn.startsWith('arn:aws:iam')) {
                      args.props['policyArn'] = arn.replace(
                        'arn:aws:iam',
                        'arn:aws-cn:iam'
                      );
                    }
                    return {
                      props: args.props,
                      opts: args.opts,
                    };
                  }
                  return undefined;
                },
              ],
            }
    Is there anyone encounter this issue during creating AWS ECS stack in cn-northwest-1 region? Thanks!
    🆘 1
    🙏 1
    • 1
    • 1
  • m

    many-spring-73557

    06/14/2022, 12:33 AM
    Is there a way to see the state backend that I’m logged in to?
    pulumi whoami
    just shows the username. But I don’t know if I’m logged into our custom GCP state, or pulumi service. (I can
    pulumi logout && pulumi login
    to be safe, but I want to programmatically determine backend for scripting)
    s
    • 2
    • 2
  • b

    blue-leather-96987

    06/14/2022, 1:24 AM
    I've been trying to find a decent description of this but couldn't find it anywhere. What is the difference between the "classic" and "native" version of plugins?
    l
    • 2
    • 8
  • b

    breezy-laptop-42679

    06/14/2022, 7:29 AM
    Im trying to reuse the github workflow to use pulumi preview . However im getting this error :GitHub Actions / .github/workflows/pull_request.yml Invalid workflow file
    error parsing called workflow "peopleticker/ccc/.github/workflows/pull_request.yml@master": workflow was not found.
    here is the code that I am using:
    name: Call a reusable workflow
    
    permissions:
      id-token: write
      contents: read
    
    on:
      pull_request:
    
    jobs:
      call-workflow-passing-data:
        uses: peopleticker/ccc/.github/workflows/pull_request.yml@master
    l
    • 2
    • 1
  • c

    cuddly-alligator-37434

    06/14/2022, 9:19 AM
    Hi all, I have an issue with the AutoScalingGroup AWS. I need to specify my own userData in the launch configuration. Yet I am unable to remove the suffix from and therefore predict the stack name. As a result I can do whatever i want in my user data but can never send the signal to cloudformation and my stack creation always fail Any pointer on how to get out of this?
    e
    b
    • 3
    • 7
  • c

    cuddly-alligator-37434

    06/14/2022, 12:55 PM
    has anyone experienced an issue with a fully manually created ECS Cluster where the instance during it's creation does not have network access, but does later on ? I went through every bit of my config: • Security Group allow eggress anywhere • the instance is in the private subnet, which routing table for outbound traffic points to the NAT • The NAT Gateway is in public subnet • the pub subnet does have an IG Additionally I created a jumbox and while the stack fails to create (no network so no cfn-signal installed by cloud-init and sent to Cloud formation for the autoscaling group). Once the instance is up, and without changing anything I log in to that specific and can successfully reach internet... confirming that the setup is right. I am thinking that the instance comes up before the NAT is attached or a specific rule added to routing table or Security group. Any pointer would be welcomed
    b
    • 2
    • 2
  • a

    ambitious-father-68746

    06/14/2022, 1:45 PM
    Hi, in the last couple of weeks I've noticed that sometimes, when using
    --target
    , both
    pulumi pre
    and
    pulumi up
    will show only the resources that I want to update (good), but after confirming that I want to perform the update, Pulumi will try to update a resource that I haven't explicitly requested, causing failures. Has anyone seen this behaviour before?
    b
    • 2
    • 4
  • m

    most-mouse-38002

    06/14/2022, 2:08 PM
    I have not been able to find anything that will let me bootstrap Flux with Pulumi (like this for terraform). If anyone know of something I have missed here, I would love to see it before I invest more time on this on my own.
    b
    • 2
    • 4
  • b

    bulky-agent-73210

    06/14/2022, 2:14 PM
    Hey all, I need to run an inline program inside a docker container image. Since I can’t directly install Pulumi, I’m using precompiled binaries and would like to add them to the Pulumi PATH env var. Inside my program, I can get the absolute path to be binary file, and if I run it programmatically, it works OK. but if I add this location to the PATH and pass that auto.LocalWorkspaceOptions inside envvars, the Pulumi SDK can’t find pulumi executable. Any ideas? Using Golang.
    e
    • 2
    • 2
  • p

    purple-plastic-64657

    06/14/2022, 7:26 PM
    Is it possible to conditionally create resources?
    if <condition>: 
        my_lambda = aws.lambda_.Function(...)
    When I tried this, the if statements seem to be ignored. I'm trying to create or ignore resources based on the current pulumi stack
    b
    • 2
    • 3
  • g

    gentle-toddler-99412

    06/14/2022, 10:28 PM
    Pulumi is complaining: error deleting Target Group: ResourceInUse: Target group ‘arn:aws:elasticloadbalancing:XXX’ is currently in use by a listener or a rule I think I understand the reason but how could I make a stack update then? Should I update it in two pass? (one removing the Listener first?)
    l
    • 2
    • 26
  • w

    white-rainbow-89327

    06/15/2022, 3:30 AM
    Hey folks. I've been having an issue with the
    atlastCidrBlock
    in a managed
    mongodbatlas.NetworkPeering
    resource using the Node version of pulumi. The option seems to have no effect and the created resource seems to always have the default value of
    192.168.248.0/21
    .
    export const atlasPeer = new mongodbatlas.NetworkPeering('atlas-peer', {
      providerName: "AWS",
      awsAccountId: AWS_ACCOUNT_ID,
      vpcId: VPC_ID,
      projectId: ATLAS_PROJECT_ID,
      containerId: mongoCluster.containerId,
      accepterRegionName: AWS_REGION,
      routeTableCidrBlock: '10.11.0.0/16',
      atlasCidrBlock: '192.168.232.0/21',
    });
    This snippet creates a stack output of
    {
      "accepterRegionName": "us-west-2",
      "atlasCidrBlock": "192.168.232.0/21",
      "atlasGcpProjectId": "",
      "atlasId": "XXXXXXXXXX",
      "atlasVpcName": "",
      "awsAccountId": "999999999",
      "azureDirectoryId": "",
      "azureSubscriptionId": "",
      "connectionId": "pcx-XXXXXXXX",
      "containerId": "XXXXXXXXXX",
      "errorMessage": "",
      "errorState": "",
      "errorStateName": "",
      "gcpProjectId": "",
      "id": "XXXXXXXXX",
      "networkName": "",
      "peerId": "XXXXXXXXX",
      "projectId": "XXXXXXXX",
      "providerName": "AWS",
      "resourceGroupName": "",
      "routeTableCidrBlock": "10.11.0.0/16",
      "status": "",
      "statusName": "PENDING_ACCEPTANCE",
      "urn": "urn:pulumi:staging::journey::mongodbatlas:index/networkPeering:NetworkPeering::atlas-peer",
      "vnetName": "",
      "vpcId": "vpc-00000000"
    }
    ...with an
    atlasCidrBlock
    of
    192.168.232.0/21
    , though the created peering connection instead has the default Atlas CIDR of
    192.168.248.0/21
    , as does its corresponding route table entry on my aws side. Interestingly, the stack output's value for atlasCidrBlock doesn't even change across
    pulumi refresh
    operations. Is it possible I'm doing something wrong? If not, is this most likely a bug with pulumi or with atlas? Thanks!
    e
    • 2
    • 1
  • b

    broad-translator-40115

    06/15/2022, 9:00 AM
    Hi, awesome people 👋 Having a weird issue with deploying Lambda@Edge functions using
    aws.lambda.CallbackFunction
    . For some reason, Pulumi started deploying these functions included a big portion of
    node_modules
    in the package, which deploys a package size of +15.5 MB (which is too big to use as a Lambda Edge. I have tried stripping everything in the function and making sure to prevent any open closures, basically reducing it to
    callback: () => {}
    . No matter what I do, it keeps including
    node_modules
    in the lambda package itself. It used to worked perfectly, now I have zero idea what I suddenly did wrong to trigger this. Any ideas how I can debug this, or how I can force-exclude
    node_modules
    from the package?
    e
    • 2
    • 14
  • a

    astonishing-magazine-88802

    06/15/2022, 11:57 AM
    Hey All! I wanted to know am I capable of using Pulumi in order to modify a specific lambda I have already deployed> I want to add subscription filters to a few lambdas that I already have. Thanks in advance to anyone who is willing to help! 😄
    e
    • 2
    • 5
  • f

    few-yacht-11623

    06/15/2022, 2:10 PM
    Pulumi does a nice job of generating code for resources I
    pulumi import
    . Is there any way to get pulumi to generate this code without actually importing the infra into my stack? I’d prefer to use the “`import` resource” option to manage my stack state, but I still find the code generation very helpful.
    e
    • 2
    • 1
  • p

    purple-accountant-75904

    06/15/2022, 4:48 PM
    Hi All,
  • p

    purple-accountant-75904

    06/15/2022, 4:49 PM
    Been checking out Pulumi, and I'm having a hard time understanding what Pulumi can offer outside of what is already available in AWS cdk. I've looked at some tutorials and such, but I still haven't seen what I think is a big difference. Could someone enlighten me?
    b
    s
    • 3
    • 5
  • b

    billowy-area-48390

    06/15/2022, 5:31 PM
    Is there a Pulumi provider for Google Cloud Looker ?
    • 1
    • 1
  • s

    sparse-arm-65382

    06/15/2022, 8:01 PM
    Hi, i am pretty new to pulumi. And I want to popluate a pretty big stack, based on some information that i can retrieve from an webservice. Why should it be a bad idea to dynamically determine the resources to create while the host-language runs. The only thing i can think of is possible differences between pulumi preview and pulumi up. Thanks in advance to show my, why this is could be a bad idea.
  • s

    stale-orange-47562

    06/15/2022, 9:29 PM
    Hi guys, I'm implementing some pulumi policy pack, but it seems on a policy pack project is not possible using the pulumi functions like (aws.ec2.get_vpc) or similar like that. When I trying to use one of this I get the following error. Do you guys know if is there a proper way to use this functions on a policy pack? btw if I use this on a pulumi project there is no errors
  • q

    quaint-pillow-20530

    06/16/2022, 8:07 AM
    Hi guys! How can I install kubeflow on GKE using pulumi. I don't see in the documentation. Any Help will be appreciated.
  • q

    quaint-pillow-20530

    06/16/2022, 8:07 AM
    Thanks in advance
  • b

    brief-ram-15160

    06/16/2022, 12:30 PM
    QQ: Is there a way to execute pulumi`crossguard` when running
    pulumi up
    without specifying the
    --policy-pack
    (e.g., using Env-var…)
  • g

    gifted-electrician-66436

    06/16/2022, 1:40 PM
    Hi guys, i'm getting this error while provision gitlab pulumi version : 3.34.1 "@pulumi/gitlab": "^4.7.0", Has anyone success provision gitlab repository?
    Previewing update (dev)
    ilds` must be specified. Examine values at 'Project.MirrorTriggerBuilds'.
        error: gitlab:index/project:Project resource 'my-project' has a problem: Missing required argument: "mirror": all of `import_url,mirror` must be specified. Examine values at 'Project.Mirror'.
        error: gitlab:index/project:Project resource 'my-project' has a problem: Missing required argument: "only_mirror_protected_branches": all of `import_url,only_mirror_protected_branches` must be specified. Examine values at 'Project.OnlyMirrorProtectedBranches'.
        error: gitlab:index/project:Project resource 'my-project' has a problem: Missing required argument: "mirror_overwrites_diverged_branches": all of `import_url,mirror_overwrites_diverged_branches` must be specified. Examine values at 'Project.MirrorOverwritesDivergedBranches'.
  • p

    powerful-rain-97767

    06/16/2022, 3:29 PM
    Hi Team - I am wondering if it is possible to use a regular provider as part of a dynamic provider. The use-case I have is that I want to create a local certificate authority and use that to generate a locally signed cert using pulumi_tls. The reason I would like to use a dynamic provider to manage this is because on create, I would like to install the root ca cert on the user's workstation, and on delete I would like to remove it. Is this possible? I am trying to do this with a minimal example example (just generating a private key and displaying the contents) but running into errors.
    from typing import Any, Optional
    
    from pulumi.dynamic import ResourceProvider, CreateResult, Resource
    from pulumi import Input, ResourceOptions, Output, export
    import pulumi_tls as tls
    import pulumi
    
    tls_provider = tls.Provider('tls_provider')
    
    
    class WildcardProvider(ResourceProvider):
        def create(self, inputs):
    
            key = tls.PrivateKey("someNewKey", algorithm="RSA", opts=pulumi.ResourceOptions(provider=tls_provider))
            outputs = {"private_key_pem": key}
            return CreateResult(id_="foo", outs=outputs)  
    
    
    class Wildcard(Resource):
        private_key: Output
    
        def __init__(self, name: str, props: Any, opts: Optional[ResourceOptions] = None):
            full_args = {"cert_pem": None, "private_key_pem": None, "ca_cert_pem": None, **props}
            super().__init__(WildcardProvider(), name, full_args, opts)
    
    my_wildcard = Wildcard("my-new-resource", {})
    Logs:
    I0616 14:08:49.440319    3760 provider_plugin.go:643] Provider[pulumi-python, 0x140008721e0].Check(urn:pulumi:localca::localca::pulumi-python:dynamic:Resource::my-new-resource) success: inputs=#1 failures=#0
    I0616 14:08:49.440331    3760 step_generator.go:689] Planner decided to create 'urn:pulumi:localca::localca::pulumi-python:dynamic:Resource::my-new-resource' (inputs=map[__provider:{gASVSAMAAAAAAACMCmRpbGwuX2RpbGyUjAxfY3JlYXRlX3R5cGWUk5QoaACMCl9sb2FkX3R5cGWUk5SMBHR5cGWUhZRSlIwQV2lsZGNhcmRQcm92aWRlcpSMFnB1bHVtaS5keW5hbWljLmR5bmFtaWOUjBBSZXNvdXJjZVByb3ZpZGVylJOUhZR9lCiMB19fZG9jX1+UTowKX19tb2R1bGVfX5SMCF9fbWFpbl9flIwNX19zbG90bmFtZXNfX5RdlIwGY3JlYXRllGgAjBBfY3JlYXRlX2Z1bmN0aW9ulJOUKGgAjAxfY3JlYXRlX2NvZGWUk5QoSwJLAEsASwVLB0tDQzZ0AKABZAGhAX0CdABqAmQCZAN0A3wCdARkBI0CZAWNA30DZAZ8A2kBfQR0BWQHfARkCI0CUwCUKE6MDHRsc19wcm92aWRlcpSMCnNvbWVOZXdLZXmUjANSU0GUjAhwcm92aWRlcpSMBnBhcmVudJSGlIwJYWxnb3JpdGhtlIwEb3B0c5SGlIwLcHJpdmF0ZV9rZXmUjANmb2+UjANpZF+UjARvdXRzlIaUdJQojAN0bHOUjAhQcm92aWRlcpSMClByaXZhdGVLZXmUjA9SZXNvdXJjZU9wdGlvbnOUaAqMDENyZWF0ZVJlc3VsdJR0lCiMBHNlbGaUjAZpbnB1dHOUaBmMA2tleZSMB291dHB1dHOUdJSMOS9Vc2Vycy9jbWFydGVlcGFudHMvUHljaGFybVByb2plY3RzL2xvY2FsY2EvLi9fX21haW5fXy5weZRoE0sRQwgAAQoBGAEIAZQpKXSUUpR9lIwIX19uYW1lX1+UaBBzaBNOTnSUUpR9lH2UKIwPX19hbm5vdGF0aW9uc19flH2UjAxfX3F1YWxuYW1lX1+UjBdXaWxkY2FyZFByb3ZpZGVyLmNyZWF0ZZR1hpRiaDcojAxDcmVhdGVSZXN1bHSUaAloLJOUjA9SZXNvdXJjZU9wdGlvbnOUjA9wdWx1bWkucmVzb3VyY2WUaCuTlIwQUmVzb3VyY2VQcm92aWRlcpRoC4wDdGxzlGgAjA5faW1wb3J0X21vZHVsZZSTlIwKcHVsdW1pX3Rsc5SFlFKUdTB1dJRSlCmBlC4=}])
    I0616 14:08:49.440462    3760 step_executor.go:364] StepExecutor worker(-2): worker received chain for execution
    I0616 14:08:49.440471    3760 step_executor.go:364] StepExecutor worker(-2): worker waiting for incoming chains
    I0616 14:08:49.440478    3760 step_executor.go:364] StepExecutor worker(2): launching oneshot worker
    I0616 14:08:49.440508    3760 snapshot.go:130] SnapshotManager: Beginning mutation for step `create` on resource `urn:pulumi:localca::localca::pulumi-python:dynamic:Resource::my-new-resource`
         Type                               Name             Status       
     +   pulumi:pulumi:Stack                localca-localca  creating..   
     +   └─ pulumi-python:dynamic:Resource  my-new-resource  creating     
    I0616 14:08:49.564438    3760 state.go:291] error copying .pulumi/stacks/localca.json.gz to .pulumi/stacks/localca.json.gz.bak: blob (key ".pulumi/stacks/localca.json.gz -> .pulumi/stacks/localca.json.gz.bak") (code=NotFound): NoSuchKey: The specified key does not exist.
            status code: 404, request id: 9YQA6FZAQFJYR64M, host id: yXgNUIt03L09jr7kWkFkZsJB/1IWvVAGdDopL6vj5VpdDVAxItClPl/Vin0eJLfwUMi7vqcf77U=
    I0616 14:08:49.625553    3760 state.go:297] error deleting source object after rename: .pulumi/stacks/localca.json.gz (blob (key ".pulumi/stacks/localca.json.gz") (code=NotFound): NotFound: Not Found
            status code: 404, request id: 9YQ6GE6NZW8ZBENS, host id: nsmxOvwpUIGsaheHH1j2CsehZ+DrcJgF9Qs1IJoCvnKFKduVfkKTorVgv2XnS3jJmtid62MXVkI=) skipping
    I0616 14:08:49.833128    3760 state.go:248] Saved stack localca checkpoint to: .pulumi/stacks/localca.json (backup=.pulumi/stacks/localca.json.bak)
    I0616 14:08:49.833284    3760 step_executor.go:364] StepExecutor worker(2): applying step create on urn:pulumi:localca::localca::pulumi-python:dynamic:Resource::my-new-resource (preview false)
    I0616 14:08:49.833319    3760 registry.go:174] GetProvider(urn:pulumi:localca::localca::pulumi:providers:pulumi-python::default::01ef631b-e17e-43f9-b68d-02b250e6f04e)
    I0616 14:08:49.833356    3760 provider_plugin.go:744] Provider[pulumi-python, 0x140008721e0].Create(urn:pulumi:localca::localca::pulumi-python:dynamic:Resource::my-new-resource) executing (#props=1)
    I0616 14:08:49.833393    3760 rpc.go:74] Marshaling property for RPC[Provider[pulumi-python, 0x140008721e0].Create(urn:pulumi:localca::localca::pulumi-python:dynamic:Resource::my-new-resource).inputs]: __provider={gASVSAMAAAAAAACMCmRpbGwuX2RpbGyUjAxfY3JlYXRlX3R5cGWUk5QoaACMCl9sb2FkX3R5cGWUk5SMBHR5cGWUhZRSlIwQV2lsZGNhcmRQcm92aWRlcpSMFnB1bHVtaS5keW5hbWljLmR5bmFtaWOUjBBSZXNvdXJjZVByb3ZpZGVylJOUhZR9lCiMB19fZG9jX1+UTowKX19tb2R1bGVfX5SMCF9fbWFpbl9flIwNX19zbG90bmFtZXNfX5RdlIwGY3JlYXRllGgAjBBfY3JlYXRlX2Z1bmN0aW9ulJOUKGgAjAxfY3JlYXRlX2NvZGWUk5QoSwJLAEsASwVLB0tDQzZ0AKABZAGhAX0CdABqAmQCZAN0A3wCdARkBI0CZAWNA30DZAZ8A2kBfQR0BWQHfARkCI0CUwCUKE6MDHRsc19wcm92aWRlcpSMCnNvbWVOZXdLZXmUjANSU0GUjAhwcm92aWRlcpSMBnBhcmVudJSGlIwJYWxnb3JpdGhtlIwEb3B0c5SGlIwLcHJpdmF0ZV9rZXmUjANmb2+UjANpZF+UjARvdXRzlIaUdJQojAN0bHOUjAhQcm92aWRlcpSMClByaXZhdGVLZXmUjA9SZXNvdXJjZU9wdGlvbnOUaAqMDENyZWF0ZVJlc3VsdJR0lCiMBHNlbGaUjAZpbnB1dHOUaBmMA2tleZSMB291dHB1dHOUdJSMOS9Vc2Vycy9jbWFydGVlcGFudHMvUHljaGFybVByb2plY3RzL2xvY2FsY2EvLi9fX21haW5fXy5weZRoE0sRQwgAAQoBGAEIAZQpKXSUUpR9lIwIX19uYW1lX1+UaBBzaBNOTnSUUpR9lH2UKIwPX19hbm5vdGF0aW9uc19flH2UjAxfX3F1YWxuYW1lX1+UjBdXaWxkY2FyZFByb3ZpZGVyLmNyZWF0ZZR1hpRiaDcojAxDcmVhdGVSZXN1bHSUaAloLJOUjA9SZXNvdXJjZU9wdGlvbnOUjA9wdWx1bWkucmVzb3VyY2WUaCuTlIwQUmVzb3VyY2VQcm92aWRlcpRoC4wDdGxzlGgAjA5faW1wb3J0X21vZHVsZZSTlIwKcHVsdW1pX3Rsc5SFlFKUdTB1dJRSlCmBlC4=}
    I0616 14:08:49.840313    3760 provider_plugin.go:1586] provider received rpc error `Unknown`: `Exception calling application: Program run without the Pulumi engine available; re-run using the `pulumi` CLI`
    I0616 14:08:49.840345    3760 provider_plugin.go:1589] rpc error kind `Unknown` may not be recoverable
    I0616 14:08:49.840355    3760 provider_plugin.go:800] Provider[pulumi-python, 0x140008721e0].Create(urn:pulumi:localca::localca::pulumi-python:dynamic:Resource::my-new-resource) failed: Exception calling application: Program run without the Pulumi engine available; re-run using the `pulumi` CLI
         Type                               Name             Status                  Info
     +   pulumi:pulumi:Stack                localca-localca  creating..              
     +   └─ pulumi-python:dynamic:Resource  my-new-resource  **creating failed**     error: Exception calling application: Program run without the Pulumi engine available; re-run using the `pulumi` CLI
    I0616 14:08:49.973967    3760 state.go:291] error copying .pulumi/stacks/localca.json.gz to .pulumi/stacks/localca.json.gz.bak: blob (key ".pulumi/stacks/localca.json.gz -> .pulumi/stacks/localca.json.gz.bak") (code=NotFound): NoSuchKey: The specified key does not exist.
            status code: 404, request id: 9YQ5WSE9S77HGJN7, host id: 2DreBH/zBLA7obo9PFGQi6edUO0fxgkU13VBgjC2Sjy0i0gRT3BGfsNHES89YwHc7Tv4K3sNd8c=
    I0616 14:08:50.028370    3760 state.go:297] error deleting source object after rename: .pulumi/stacks/localca.json.gz (blob (key ".pulumi/stacks/localca.json.gz") (code=NotFound): NotFound: Not Found
            status code: 404, request id: K73R852D4NM5HJYM, host id: NU+hZF0GchzOkeIX7n5LiioTpf/ehXB74Sbyp916x3gV8ETV8o5okiorNed6nevbz8Yji3jjEWU=) skipping
    I0616 14:08:50.207675    3760 state.go:248] Saved stack localca checkpoint to: .pulumi/stacks/localca.json (backup=.pulumi/stacks/localca.json.bak)
    I0616 14:08:50.207839    3760 step_executor.go:364] StepExecutor worker(2): step create on urn:pulumi:localca::localca::pulumi-python:dynamic:Resource::my-new-resource failed with an error: Exception calling application: Program run without the Pulumi engine available; re-run using the `pulumi` CLI
    I0616 14:08:50.207883    3760 step_executor.go:364] StepExecutor worker(2): step create on urn:pulumi:localca::localca::pulumi-python:dynamic:Resource::my-new-resource failed, signalling cancellation
    I0616 14:08:50.207933    3760 deployment_executor.go:293] deploymentExecutor.Execute(...): context finished: context canceled
    I0616 14:08:50.207949    3760 step_executor.go:364] StepExecutor worker(-1): StepExecutor.waitForCompletion(): waiting for worker threads to exit
    I0616 14:08:50.207981    3760 step_executor.go:364] StepExecutor worker(-2): worker exiting due to cancellation
    I0616 14:08:50.207998    3760 step_executor.go:364] StepExecutor worker(-1): StepExecutor.waitForCompletion(): worker threads all exited
    I0616 14:08:50.208523    3760 deployment_executor.go:303] deploymentExecutor.Execute(...): step executor has completed
     +   pulumi:pulumi:Stack                localca-localca  creating..              error: update failed
    I0616 14:08:50.208781    3760 deployment_executor.go:161] deploymentExecutor.Execute(...): exiting provider canceller
    I0616 14:08:50.214509    3760 langruntime_plugin.go:193] langhost[python].Run(pwd=/Users/cmarteepants/PycharmProjects/localca,program=.,...,dryrun=false) failed: err=error reading from server: read tcp 127.0.0.1:60993->127.0.0.1:60992: use of closed network connection
    I0616 14:08:50.214547    3760 ignore.go:44] Explicitly ignoring and discarding error: rpc error: code = Canceled desc = grpc: the client connection is closing
    I0616 14:08:50.217677    3760 ignore.go:44] Explicitly ignoring and discarding error: 1 error occurred:
            * operation not permitted
     +   pulumi:pulumi:Stack                localca-localca  **creating failed**     1 error
     +   └─ pulumi-python:dynamic:Resource  my-new-resource  **creating failed**     1 error
     
    Diagnostics:
      pulumi:pulumi:Stack (localca-localca):
        error: update failed
     
      pulumi-python:dynamic:Resource (my-new-resource):
        error: Exception calling application: Program run without the Pulumi engine available; re-run using the `pulumi` CLI
    b
    • 2
    • 4
  • q

    quick-airport-30353

    06/16/2022, 7:53 PM
    Hi all, I have a TypeScript pulumi project with about 7 lambdas. Each lambda has its own folder inside of a parent app folder. Each lambda is its own nodeJS application. My question: does each lambda have to be its own nodejs application or can I roll everything up to one?
  • b

    boundless-painter-62427

    06/17/2022, 2:04 AM
    Hi everyone!! Greetings from 🇨🇴 !! I hope learn more in deep about 😛ulumi-logo: !! Have an excellent day!!
    👋 2
    💜 2
  • m

    many-spring-73557

    06/17/2022, 2:15 AM
    I made some changes to my pulumi config, and it said it needed to replace an AWS VPC. That failed, because of dependent resources. I’ve removed all of the resources from my config now – but when doing
    pulumi up
    , it starts off with
    completing deletion from previous update
    and tries to delete the VPC, so it never deletes the dependent resources. How do I get pulumi to delete the other resources first, so it can complete deleting the VPC?
    q
    • 2
    • 1
Powered by Linen
Title
m

many-spring-73557

06/17/2022, 2:15 AM
I made some changes to my pulumi config, and it said it needed to replace an AWS VPC. That failed, because of dependent resources. I’ve removed all of the resources from my config now – but when doing
pulumi up
, it starts off with
completing deletion from previous update
and tries to delete the VPC, so it never deletes the dependent resources. How do I get pulumi to delete the other resources first, so it can complete deleting the VPC?
q

quiet-wolf-18467

06/17/2022, 1:43 PM
You may need to
pulumi stack export
and remove the pending operation from the JSON file, then reimport it with p`ulumi stack import`
View count: 3