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
  • a

    adamant-waiter-67103

    08/10/2022, 7:45 PM
    For CI/CD pipelines, is there a way for pulumi in CI to produce an artifact that pulumi in CD can use to deploy
  • v

    victorious-dusk-75271

    08/10/2022, 10:07 PM
    how do i debug state drift?
    l
    • 2
    • 5
  • v

    victorious-dusk-75271

    08/10/2022, 11:26 PM
    I cant figure out why this function does not run first time. i have to rerun this to make it work
    new aws.ec2.Route(`${name}-route-private-sn-to-nat-${index + 1}`, {
                        routeTableId: this.privateRouteTables[index].id,
                        destinationCidrBlock: '0.0.0.0/0',
                        natGatewayId: this.natGateways[index].id,
                    }, { provider: opts.provider, parent: routeTable, dependsOn: routeTable })
    l
    • 2
    • 4
  • s

    some-jelly-76933

    08/11/2022, 12:08 AM
    I'm trying to do a pulumi up that fails due to some "resource already exists" errors - but there are other parts of the update that are unrelated that it doesn't get to - is there a way to continue past these errors? Or change the operation order?
    l
    • 2
    • 9
  • a

    agreeable-scooter-87411

    08/11/2022, 3:54 AM
    403 Unauthorised error to installing
    pulumi-resources-awsx
    : I got this msg below when
    pulumi up
    (in golang with awsx resources) the download url is not correct, right?
    Diagnostics:
    pulumi😛roviders:awsx (default):
    error: no resource plugin ‘pulumi-resource-awsx’ found in the workspace at version v1.0.0-testplsignore.0 or on your $PATH, install the plugin using
    pulumi plugin install resource awsx v1.0.0-testplsignore.0
    l
    • 2
    • 7
  • m

    microscopic-cpu-38113

    08/11/2022, 5:51 AM
    hi all, is there a way to ignore the output changes of a resource? For example managed services like RDS, the cloud provider might do a failover between nodes and such changes when reflected as the output of the resource should not be flagged as a "resource change" in the pulumi plan
    e
    • 2
    • 5
  • f

    future-refrigerator-88869

    08/11/2022, 12:32 PM
    anyone knows if/how can i add tags with
    awsx.ecr.buildAndPushImage
    when i try to create a new image ?
  • h

    hundreds-traffic-617

    08/11/2022, 6:45 PM
    Does anyone know how to launch an AWS MSK cluster as serverless? Pulumi API doesn't seem to have any configuration for it in the obvious spots I checked
    • 1
    • 1
  • m

    magnificent-smartphone-40853

    08/11/2022, 7:33 PM
    I'm getting an error when selecting a stack:
    "AccessDeniedException: The ciphertext refers to a customer master key that does not exist"
    My AWS credentials include Administrator access. What could be the cause?
    b
    • 2
    • 5
  • s

    salmon-musician-20405

    08/11/2022, 7:48 PM
    Hi, Need help . I am setting pulumi_ auth0 passwordless. I have configured the machine-to-machine api and created application from it. I want to turn off username-password connection and setup passwordless email template automatically. any sample code link will be helpful. Pulumi manual or examples are no good.
  • f

    few-yacht-11623

    08/11/2022, 7:52 PM
    Is there a way to get the outputs from a component resource at runtime? If I want to be able to do:
    const myresource = new MyComponentResource('foo');
    export const myResourceOutput = myresource.someOutput;
    do I need to expose those outputs as a property, or is there a way to pull them from the `registeredOutput`(s)?
    b
    • 2
    • 2
  • s

    steep-portugal-37539

    08/11/2022, 8:44 PM
    Hey guys 🙂 is it possible to convert pulumi code to terraform ? instead of only the other way around?
    b
    s
    • 3
    • 9
  • v

    victorious-dusk-75271

    08/12/2022, 12:31 AM
    how do i convert Input<string> to string? (typescript)
    l
    • 2
    • 9
  • s

    steep-toddler-94095

    08/12/2022, 2:50 AM
    I'm sort of confused on how in this example the
    Command
    knows only to run when the EKS cluster is being deleted. Is it because
    environment
    depends on
    cluster
    ? I.e. if the
    KUBECONFIG
    was a hardcoded string then this
    Command
    would just never run under any circumstances? https://www.pulumi.com/registry/packages/command/#graceful-cleanup-of-workloads-in-a-kubernetes-cluster What if this Command depends on multiple pulumi resources? Would it run if just one of the resources is being deleted?
    l
    • 2
    • 6
  • f

    future-window-78560

    08/12/2022, 4:57 AM
    Hey, is there a way to create instance schedules for GCE vm through pulumi?
  • a

    abundant-megabyte-13431

    08/12/2022, 8:04 AM
    Hi, can pulumi's stack use the provider with a different version
    e
    • 2
    • 4
  • r

    rough-jordan-15935

    08/12/2022, 9:36 AM
    Im using pulumi to manage an API Gateway on AWS. However, i need to deploy the api gateway twice, else i run into this error. can i know how to fix it?
  • d

    dry-judge-83479

    08/12/2022, 10:28 AM
    Hi, I’m using Azure key-vault as encryption provider. But after initialising , whenever i’m selecting stack, it’s throwing an error. Can anyone please help me with this. Has anyone faced the similar issue
    error: constructing secrets manager of type "cloud": secrets (code=InvalidArgument): keyvault.BaseClient#Decrypt: Failure responding to request: StatusCode=400 -- Original Error: autorest/azure: Service returned an error. Status=400 Code="BadParameter" Message="The parameter is incorrect.\r\n
  • m

    modern-quill-17695

    08/12/2022, 1:17 PM
    Hi Everyone, I'm trying to use the RandomPassword Getter function to get the resource generated by a different Pulumi solution. The overview is I have 2 domains whose infrastructure if created/maintained by Pulumi. Domain A creates a RandomPassword and I want Domain B to get it. I tried using
    RandomPassword.Get("my-resource", {id});
    but I can't figure out what to use for the id. I tried the urn displayed in the Pulumi Portal, but when I did that the Result string was the same as urn. Is there somewhere else I should look for the id of the RandomPassword?
  • l

    lively-helmet-97905

    08/12/2022, 3:51 PM
    Does it pulumi working in its dsl language ?
    s
    b
    +2
    • 5
    • 8
  • a

    ancient-rose-25146

    08/12/2022, 8:09 PM
    Hi is there a way to copy a stack completely from a personal account to an organization?
    b
    • 2
    • 2
  • d

    dry-beach-58138

    08/13/2022, 5:56 AM
    Hi, I was using Pulumi and import exist AWS resources the VPC and Subnet I add ResourceOptions parent=VPC in Subnet It will try to delete my Subnet and create a new one, but fail with protect what should I do for add parent ResourceOptions without delete exist Subnet ?
    Type                  Name            Plan       Info
         pulumi:pulumi:Stack   kms-dev                    1 error
         ├─ aws:ec2:Vpc        vpn_vpc                    [diff: +enableDnsSupport,instanceTenancy~__defaults]
     +   │  └─ aws:ec2:Subnet  vpc-jp-subnet1  create
     -   └─ aws:ec2:Subnet     vpc-jp-subnet1  delete     1 error
    e
    • 2
    • 2
  • g

    glamorous-telephone-24915

    08/13/2022, 7:21 PM
    what is the performance measuring tool Luke Hoban is using in https://github.com/pulumi/pulumi/issues/3671?
    b
    • 2
    • 1
  • s

    stocky-wire-60053

    08/14/2022, 2:44 PM
    Good morning and good day to all; I'm trying to deploy a Fargate cluster for a FastAPI Python app, using instructions pretty close to Pulumi's user-docs example, but I get the following error;
    ClientException: When networkMode=awsvpc, the host ports and container ports in port mappings must match
    . (I'll post code in the reply as to not clutter here.)
    b
    m
    • 3
    • 8
  • c

    careful-petabyte-65672

    08/14/2022, 5:16 PM
    Hi I'm working with pulumi python, after using
    k8s.yaml.ConfigFile
    and
    k8s.yaml.ConfigGroup
    for a few months with no issues, I'm currently seeing an issue when previewing a new stack with these elements. this is a stuck trace.
    error: Traceback (most recent call last):
          File "/nix/store/4a6xm29r8fpn80ipkqyqhn31mhh7pai6-pulumi-3.32.1/bin/pulumi-language-python-exec", line 107, in <module>
            loop.run_until_complete(coro)
          File "/nix/store/328bxidfhv01x138sjynkzswiskrk1yd-python3-3.9.12/lib/python3.9/asyncio/base_events.py", line 647, in run_until_complete
            return future.result()
          File "/nix/store/s6zf9dbdk4b9cajc6plcw72gg8mgvybq-python3-3.9.12-env/lib/python3.9/site-packages/pulumi/runtime/stack.py", line 126, in run_in_stack
            await run_pulumi_func(lambda: Stack(func))
          File "/nix/store/s6zf9dbdk4b9cajc6plcw72gg8mgvybq-python3-3.9.12-env/lib/python3.9/site-packages/pulumi/runtime/stack.py", line 49, in run_pulumi_func
            func()
          File "/nix/store/s6zf9dbdk4b9cajc6plcw72gg8mgvybq-python3-3.9.12-env/lib/python3.9/site-packages/pulumi/runtime/stack.py", line 126, in <lambda>
            await run_pulumi_func(lambda: Stack(func))
          File "/nix/store/s6zf9dbdk4b9cajc6plcw72gg8mgvybq-python3-3.9.12-env/lib/python3.9/site-packages/pulumi/runtime/stack.py", line 149, in __init__
            func()
          File "/nix/store/4a6xm29r8fpn80ipkqyqhn31mhh7pai6-pulumi-3.32.1/bin/pulumi-language-python-exec", line 106, in <lambda>
            coro = pulumi.runtime.run_in_stack(lambda: runpy.run_path(args.PROGRAM, run_name='__main__'))
          File "/nix/store/328bxidfhv01x138sjynkzswiskrk1yd-python3-3.9.12/lib/python3.9/runpy.py", line 285, in run_path
            return _run_code(code, mod_globals, init_globals,
          File "/nix/store/328bxidfhv01x138sjynkzswiskrk1yd-python3-3.9.12/lib/python3.9/runpy.py", line 87, in _run_code
            exec(code, run_globals)
          File "/Users/uritwig/workspace/arnac/infra/pulumi/./__main__.py", line 19, in <module>
            managed_infra.deploy()
          File "/Users/uritwig/workspace/arnac/infra/pulumi/stacks/managed_infra.py", line 224, in deploy
            create_cluster(network)
          File "/Users/uritwig/workspace/arnac/infra/pulumi/stacks/managed_infra.py", line 195, in create_cluster
            cluster = Cluster(cluster_args)
          File "/Users/uritwig/workspace/arnac/infra/pulumi/components/cluster/cluster.py", line 112, in __init__
            self._create_enclave_smarter_device()
          File "/Users/uritwig/workspace/arnac/infra/pulumi/components/cluster/cluster.py", line 208, in _create_enclave_smarter_device
            self.smarter_device = k8s.yaml.ConfigFile(
          File "/nix/store/s6zf9dbdk4b9cajc6plcw72gg8mgvybq-python3-3.9.12-env/lib/python3.9/site-packages/pulumi_kubernetes/yaml/yaml.py", line 348, in __init__
            __ret__ = pulumi.runtime.invoke('kubernetes:yaml:decode', {'text': text}, invoke_opts).value['result']
        TypeError: 'NoneType' object is not subscriptable
        error: an unhandled error occurred: Program exited with non-zero exit code: 1
    removing these elements removes the issue.I'm using pulumi 3.32.1 with this is the k8s pluging when running
    pulumi plugin ls
    kubernetes                resource  3.20.3   78 MB   2 hours ago  2 hours ago
    kubernetes                resource  3.20.2   78 MB   2 hours ago  2 hours ago
    kubernetes                resource  3.19.0   79 MB   2 hours ago  2 hours ago
    What can I do to fix this?
    b
    • 2
    • 2
  • v

    victorious-dusk-75271

    08/15/2022, 7:15 AM
    is this a dead project? https://github.com/pulumi/eks-blueprint
    e
    q
    • 3
    • 2
  • m

    magnificent-lifeguard-15082

    08/15/2022, 10:38 AM
    Hello. Is there a way to mark a component as protected without making every child protected too? Use case: a "Service" component is marked as protected so that we don't accidentally remove a whole service definition but i dont want the children to be irreplaceable unless explicitly marked as such. One workaround would be to make a no-op child resource of the component and protect that.. but now i'd get charged for that by pulumi cloud. 😕
    b
    l
    • 3
    • 3
  • m

    mammoth-country-64756

    08/15/2022, 3:41 PM
    How do you run pulumi from public repositories? I want to build IaC in the open, but if I have my secret keys as env variables in the github repository, then anyone who can fork and open a PR will be able to also destroy all of my infra. Is there a way to protect from this?
    b
    e
    m
    • 4
    • 18
  • c

    creamy-window-21036

    08/15/2022, 3:42 PM
    Hi, How do I refer one pulumi stack in another pulumi stack? I am using Python inline method to write my stack. My both stack is in same project. I am doing something like below, any suggestions?
    # stack1
    def program1():
        pulumi.export("ec2_role_arn", ec2_role.arn)
    
    # stack2
    def program2():
        ref = pulumi.StackReference("stack1")
        ec2_role = ref.require_output("ec2_role_arn")
        # do something with ec2 role arn
    e
    • 2
    • 10
  • f

    future-window-78560

    08/15/2022, 5:05 PM
    Hi, I need to enable Document AI in GCP, is there any way to do this through pulumi ?
Powered by Linen
Title
f

future-window-78560

08/15/2022, 5:05 PM
Hi, I need to enable Document AI in GCP, is there any way to do this through pulumi ?
View count: 2