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
getting-started
  • c

    creamy-knife-93354

    05/09/2021, 2:35 PM
    What's generally the way one would access Pulumi stack outputs in other non-Pulumi projects? For example I've got a CICD workflow where I want to push a new container image to a ECR repo. Said repo gets created by my Pulumi stack.. Any suggestions on how to pass along the details of that ECR repo to my workflow?
    b
    m
    • 3
    • 4
  • f

    fast-vegetable-68654

    05/09/2021, 7:04 PM
    When organizing projects and stacks for core infrastructure resources (IAM, Guardduty, Cloudtrail) across all AWS accounts, is the preferred approach to have a single "infra" project that contains the resources that belong in each account and then have a stack in that project for each account ("root", "dev", "prod", "networking", "ops")? If so, what if you want to conditionally create resources in some accounts and not others, say a role in only the ops account and not the others? Are there downsides to wrapping resources with
    if (config.accountName === "ops") {...}
    or is that even possible? I'm coming from TF and am possibly trying to fit Pulumi to the patterns in TF and that may be a bad idea. Any guidance would be great!
    i
    • 2
    • 2
  • r

    refined-activity-51649

    05/10/2021, 5:46 AM
    Hi everyone, I am having hard time to understand the concept of stack. What I want to know is the way to setup different infrastructure for each stacks, i.e. dev, prod, test. As far as I know, if I want to define my infra in python, I have to write down everything in
    __main__.py
    . But this file doesn’t change when I switch between stacks(of course). What should I do? Should I use git? 😞
    ✅ 1
    m
    m
    • 3
    • 5
  • f

    fast-vegetable-68654

    05/10/2021, 3:35 PM
    What is the Pulumi equivalent to Terraform modules? Component Resources? What about wrapping resources in a function and importing those into the main file and passing options to it?
    b
    • 2
    • 1
  • e

    elegant-garden-76734

    05/10/2021, 6:43 PM
    any good way to troubleshoot a very long running
    pulumi destroy
    c
    • 2
    • 2
  • f

    fast-vegetable-68654

    05/10/2021, 6:56 PM
    Are there any examples out there of large-scale, multi-account architectures? I've come across a lot of examples for small services and simple resource groupings, but setting up environments, accounts, permissioning across a provider like AWS or Azure would be really useful. Since Pulumi is so flexible, it seems like there is a need for more guidance at scale.
    👍 4
  • i

    important-leather-51045

    05/11/2021, 4:09 AM
    Who can help me setting Azure pipeline with self-hosted Pulumi state in Azure blob ?
  • b

    billowy-army-68599

    05/11/2021, 5:16 AM
    hi all! I'd love to get some user feedback on this blog about understanding
    apply()
    - if you're struggling to understand, let me know if this helps! https://www.leebriggs.co.uk/blog/2021/05/09/pulumi-apply.html
  • r

    ripe-room-94618

    05/11/2021, 7:55 AM
    Hello there - I am using aws-typescript. Doing first basic provisioning of EC2 instances, and the name of the instances is not getting set on creation? I would assume the resource name is used as the VM name? no other args to tap into to be able to set the EC2 instances name either as far as I can tell.
    b
    • 2
    • 4
  • t

    thousands-art-55778

    05/11/2021, 12:16 PM
    Hey folks! I'm trying to use Pulumi in my organization and I'm a little messed with how to configure some AWS stuffs. In my case, I have a Lambda Function to be triggered by an event in S3. It's working pretty well, but I'd like to put Pulumi to create/deploy it. Is there a way to export my already configured Lambda Function so I could let Pulumi work in it?
    b
    • 2
    • 1
  • f

    flat-queen-33017

    05/11/2021, 8:24 PM
    hey all, I want to split up my index.ts main file into resource group files (e.g. database.ts and beanstalk.ts) And have the different files connect to each other using es6 imports When I tried this earlier it fails and only picks up index.ts for changes : / Is there a way I can make pulumi pick up changes for a folder? or even a collection of files?
    s
    c
    • 3
    • 7
  • g

    glamorous-alligator-88004

    05/12/2021, 12:26 PM
    👋 Quick question: what are the Azure role assignments needed for the Service Principal to be used with Pulumi? That is not clearly articulated in the Pulumi documentation from what I can make out. Thanks in advance!
  • b

    bored-hamburger-89415

    05/12/2021, 12:42 PM
    What am I doing wrong?
    ❯ pulumi config set aws:region us-west-2
    ❯ pulumi config get aws:region
        us-west-2
    ❯ pulumi up
    error: 1 error occurred:
        	* missing required configuration key "aws:region": The region where AWS operations will take place. Examples are us-east-1, us-west-2, etc.
        Set a value using the command `pulumi config set aws:region <value>`.
    c
    b
    • 3
    • 5
  • b

    best-nest-62071

    05/12/2021, 7:26 PM
    Are there any examples of what options I can pass to the
    -c
    option for starting a new pulumi project? example command
    pulumi new aws-python -n test -c .....
    I want to start a pulumi python project and configure the
    main
    and
    venv
    option in the Pulumi.yaml file at project creation.
  • b

    best-nest-62071

    05/12/2021, 7:28 PM
    I see in the help from
    pulumi new
    that
    -c
    accepts a stringArray but I can not figure this out.
    • 1
    • 2
  • c

    chilly-appointment-94535

    05/17/2021, 9:52 PM
    Hello, My team is evaluating various infrastructure as code tools to enable management and expansion of our Cloud resources. We have gotten some smaller, individual workloads managed by Pulumi so far and we would like to realize case studies, examples, or templates for managing a multi-account, multi-cloud environment. We haven’t been able to find anything more than very general guidance. Unfortunately, this general guidance does not enable us to complete our evaluation to determine Pulumi’s ability to suit our needs. Who should we reach out to for help?
    b
    • 2
    • 2
  • a

    alert-oyster-87530

    05/18/2021, 2:09 AM
    I've been struggling for the past few hours trying to deploy my code to Google Cloud Function. An internal library that we're using is causing
    which could not be serialized because Cannot read property 'executionQueuePromise' of undefined
    and other similar serialisation errors. I did get some success with the deploy when I used
    import('./../dist/src/rpc/startTransaction.js')
    inside the GCF handler, but now the
    dist
    directory is not uploaded as a dependency and is not present in the GCF (and it fails on request). How can I force Pulumi to include additional source files?
    • 1
    • 1
  • a

    able-toothbrush-92865

    05/18/2021, 2:53 PM
    Hey everyone! I'm considering multi-cloud tools for an Electron app I'm developing which needs to facilitate users setting up cloud VM's through a GUI. I was considering Terraform but I don't want to have to bundle another binary in my app. It looks like Pulumi acts as a library, will it work for what I'm trying to do?
    b
    b
    • 3
    • 19
  • s

    stale-refrigerator-86789

    05/18/2021, 6:19 PM
    Hello teams! I'm just landed on Pulumi plantet! I'm follow the getting started guide, I've setup the aws cli and created the aws-typescript project but when I do pulumi up I get this error: SyntaxError: eval at <anonymous> (/home/dometec/test/pulumi/node_modules/@pulumi/pulumi/runtime/closure/v8_v10andLower.js:82:27)1️⃣7 Expected an operand but found %    return %FunctionGetScriptSourcePosition(func);
  • s

    stale-refrigerator-86789

    05/18/2021, 6:21 PM
    I've tried on two linux machine and I get the same error, node version is v12.20.1 and pulumi ver is v3.2.1
  • s

    stale-refrigerator-86789

    05/18/2021, 6:21 PM
    any help?
    l
    • 2
    • 6
  • a

    alert-oyster-87530

    05/18/2021, 6:47 PM
    is there any way to disable function serialization?
  • h

    happy-window-22449

    05/19/2021, 3:01 PM
    I have a multiple region project in AWS - but Pulumi seems to only take one region via config. Does this mean I need a different stack for each region? So dev.us-east-1, dev.us-west-1, prod.us-east-1, etc etc ?
    b
    b
    • 3
    • 6
  • q

    quiet-truck-58459

    05/19/2021, 3:46 PM
    Is there any way to force and output to a str. I ran into this error when passing
    extra_args
    to the docker local
    Image
    buider:
    File ".../venv/lib/python3.9/site-packages/pulumi_docker/docker.py", line 574, in get_command_line_message
            argstr = " ".join(args) if report_full_command_line else args[0]
        TypeError: sequence item 2: expected str instance, Output found
        error: an unhandled error occurred: Program exited with non-zero exit code: 1
  • q

    quiet-truck-58459

    05/19/2021, 3:48 PM
    The output should have already been resolved, so all I really want is the way to access the result/value
  • q

    quiet-truck-58459

    05/19/2021, 3:51 PM
    Code is roughly:
    image_name = <<Output>>
    
    image = Image(
        "image",
        image_name=image_name,
        build=DockerBuild(
            context="..",
            extra_options=["--cache-from", image_name],
        ),
    
    )
  • s

    straight-teacher-66836

    05/19/2021, 5:13 PM
    🙋 Roll call! Who else is here? I need help
    b
    i
    • 3
    • 16
  • a

    adventurous-camera-87788

    05/19/2021, 9:25 PM
    Hey guys, we recently started implementing Pulumi as IaC for our organization. I was creating Aure cache for redis using
    azure-native
    module & couldn't find a way to specify that I want redis version 6.0.3 and by default it creates redis version 4.0.14. Can someone please help?
    w
    t
    • 3
    • 20
  • b

    bumpy-pillow-82843

    05/20/2021, 7:13 AM
    👋 Hi all, heard about Pulumi via a podcast a while back and finally tried it out against Terraform (which I've no experience with either) yesterday. Pulumi is a winner so far! Nice to meet everyone, look forward to getting more involved!
    ❤️ 1
    👍 1
    👋🏻 1
    🙌 4
    b
    • 2
    • 2
  • q

    quiet-translator-27586

    05/20/2021, 2:14 PM
    Hi everyone, i new in pulumi i have this basic code to deploy a fargate cluster but i need to add to the task a permission to access a dynamodb table, how can I do it?
    import * as pulumi from "@pulumi/pulumi";
    import * as awsx from "@pulumi/awsx";
    
    // Create a load balancer to listen for requests and route them to the container.
    const listener = new awsx.elasticloadbalancingv2.NetworkListener("bff-meds", { port: 8888 });
    
    // Define the service, building and publishing our "./app/Dockerfile", and using the load balancer.
    const service = new awsx.ecs.FargateService("bff-meds", {
      desiredCount: 2,
      taskDefinitionArgs: {
          containers: {
              nginx: {
                  image: awsx.ecs.Image.fromPath("bff-meds", "./app"),
                  memory: 512,
                  portMappings: [listener],
              },
          },
      },
    });
    
    // Export the URL so we can easily access it.
    export const frontendURL = pulumi.interpolate `http://${listener.endpoint.hostname}/`;
    c
    • 2
    • 4
Powered by Linen
Title
q

quiet-translator-27586

05/20/2021, 2:14 PM
Hi everyone, i new in pulumi i have this basic code to deploy a fargate cluster but i need to add to the task a permission to access a dynamodb table, how can I do it?
import * as pulumi from "@pulumi/pulumi";
import * as awsx from "@pulumi/awsx";

// Create a load balancer to listen for requests and route them to the container.
const listener = new awsx.elasticloadbalancingv2.NetworkListener("bff-meds", { port: 8888 });

// Define the service, building and publishing our "./app/Dockerfile", and using the load balancer.
const service = new awsx.ecs.FargateService("bff-meds", {
  desiredCount: 2,
  taskDefinitionArgs: {
      containers: {
          nginx: {
              image: awsx.ecs.Image.fromPath("bff-meds", "./app"),
              memory: 512,
              portMappings: [listener],
          },
      },
  },
});

// Export the URL so we can easily access it.
export const frontendURL = pulumi.interpolate `http://${listener.endpoint.hostname}/`;
c

crooked-wolf-21506

05/20/2021, 5:40 PM
I’m working on a similar issue with the awsx.apigateway.API For FargateService you can access the
service.service.iamRole
as an
Output<string>
for a role arn, but not sure yet how to translate that to a role name needed for PolicyAttachments
I think the better route for
awsx.apigateway.API
is to use an
aws.lambda.CallbackFunction
to pass in a role that can be created with any Policy / Permissions I need
Yes, the CallbackFunction worked for me
q

quiet-translator-27586

05/20/2021, 8:07 PM
ok thanks 🙂
View count: 3