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

    rough-parrot-6341

    10/05/2020, 1:46 PM
    I don't know how or where does Pulumi retain the project -> stack connection on disk
    l
    • 2
    • 1
  • e

    elegant-island-39916

    10/05/2020, 3:23 PM
    Hi, I am creating multiple Pulumi projects and wish to share outputs via stack references between them (using an S3 backend). Different projects with the same stack name is not possible so I am resorting to namespaced stack names for each project e.g.
    infra-dev
    ,
    services-dev
    ,
    infra-prod
    ,
    services-prod
    Though that is a bit of a pain to manage and would make sense to simply namespace on a project level rather than purely via stacks. Is there a way around this that allows setting up multiple projects with the same stack name, similar to how the documentation outlines? https://www.pulumi.com/docs/intro/concepts/organizing-stacks-projects/#inter-stack-dependencies
    c
    • 2
    • 2
  • n

    nutritious-shampoo-16116

    10/05/2020, 4:07 PM
    so I have a function which can return a string (if what I look for is an env var) or an
    Output
    which will grab that from another place, is there a way to "cast" a string to pulumi output so that the output will be consistent?
    g
    • 2
    • 4
  • m

    millions-furniture-75402

    10/05/2020, 4:07 PM
    > pulumi update --skip-preview --yes -v=6
    
    Updating (catmeme/pulumi-v1-102)
    View Live: <https://app.pulumi.com/>...
    pulumi:pulumi:Stack gameserver-pulumi-v1-102 creating
    @ Updating........
    
    + pulumi:pulumi:Stack gameserver-pulumi-v1-102 creating error: an unhandled error occurred: Program exited with non-zero exit code: -1
    
    + pulumi:pulumi:Stack gameserver-pulumi-v1-102 **creating failed** 1 error
    
    Diagnostics:
    
    pulumi:pulumi:Stack (gameserver-pulumi-v1-102):
    
    error: an unhandled error occurred: Program exited with non-zero exit code: -1
    
    Resources:
    
    + 1 created
    
    Duration: 1m55s
    How can I debug this failure further? I’m using -v=6 and not getting any helpful output
    c
    • 2
    • 2
  • n

    nutritious-shampoo-16116

    10/05/2020, 4:08 PM
    try v=9
  • m

    millions-furniture-75402

    10/05/2020, 4:14 PM
    did not make a difference :-/
  • f

    few-pillow-1133

    10/05/2020, 4:53 PM
    Anyway to see why a stack is stuck
  • k

    kind-mechanic-53546

    10/06/2020, 12:47 AM
    Another day, another question about string interpolation 🙂 Is there any clean way to apply a resource into a getResource, e.g.
    aws.iam.getPolicyDocument
    ? The below works, but is nasty, casting to any just to avoid compile time errors about transforming from output to string
    const assumeDevelopersRolePolicyData = await aws.iam.getPolicyDocument({
        version: "2012-10-17",
        statements: [
          {
            effect: "Allow",
            actions: ["sts:AssumeRole"],
            resources: [
              <any>(
                pulumi.interpolate`arn:aws:iam::${dev_account_id}:role/${devRole.name}`
              ),
            ],
          },
        ],
      });
    Or is the only reason this is working currently is that I'm lucky and it'll fail at some point in the future 🙂
    w
    m
    • 3
    • 12
  • w

    worried-queen-62794

    10/06/2020, 1:17 AM
    Hi. What is
    aws_vpc
    that is shown in some of the Python examples? For example: https://www.pulumi.com/docs/reference/pkg/aws/ec2/securitygroup/#example-usage
    l
    • 2
    • 3
  • q

    quick-city-76163

    10/06/2020, 4:19 AM
    Is there a way to use the name of a provider in the logical name of a resource if you only have a reference to the provider and not the configuration of the provider? For example:
    function createVpc(provider: ProviderResource) {
        new aws.ec2.Vpc(`${provider.id}-main`, {
            cidrBlock: "10.0.0.0/16",
        }, {provider: provider});
    }
    Using the code exactly as it is in my example yields the error:
    error: Duplicate resource URN 'urn:pulumi:main::acddevops-eks::aws:ec2/vpc:Vpc::Calling [toString] on an [Output<T>] is not supported.
    l
    • 2
    • 19
  • w

    worried-queen-62794

    10/06/2020, 9:01 AM
    Why do I keep seeing:
    Outputs:
      - bucket_name: "tlayen-pulumi-demo"
    In the output when I have long deleted that output?
  • b

    bland-lamp-16797

    10/06/2020, 2:59 PM
    I'm not sure but... https://www.pulumi.com/docs/reference/pkg/gcp/firestore/ If I click on "Index" it gives 404. I assume this is a bug
    b
    • 2
    • 1
  • a

    adamant-translator-31969

    10/06/2020, 3:24 PM
    Hi! i'm new using pulumi and I have a doubt .... what is the difference between id and name in resource AWS Nodegroup?
    b
    • 2
    • 7
  • l

    loud-egg-62954

    10/06/2020, 3:59 PM
    With Pulumi/GCP, what is the equivalent of the
    allow all
    firewall rule? I'd like to enable all traffic on all ports within a subnetwork
    w
    • 2
    • 3
  • w

    worried-queen-62794

    10/07/2020, 1:39 AM
    Any idea why today when I do
    config.require('role')
    that it doesn't expect it to be prefixed with the name as in
    foo:role
    ?
  • w

    worried-queen-62794

    10/07/2020, 1:39 AM
    It worked fine yesterday
  • w

    worried-queen-62794

    10/07/2020, 1:42 AM
    Oh never mind. It was something else. I have to be honest the error messages in Pulumi are not very good. I thought terraform was bad but this is worse. I don't mean any offence, just some critical feedback.
    l
    m
    • 3
    • 4
  • a

    ambitious-father-68746

    10/07/2020, 9:37 AM
    Long shot, but is anyone using the Okta provider? I can't find a way to add an OAuth app to the Okta dashboard. Thank you.
    👀 1
    • 1
    • 1
  • g

    gorgeous-animal-95046

    10/07/2020, 2:27 PM
    anyone have any tips on using Pulumi in CI/CD pipelines? Specifically if someone cancels a CI/CD job that’s in process of running pulumi. This causes pulumi to get into a
    pending operations
    state and requires manual intervention in the state data. Fixing that requires special aws privileges in our env and most people who run into the error can’t actually fix the problem without contacting internal support.
    c
    k
    • 3
    • 7
  • t

    thankful-area-1764

    10/07/2020, 3:01 PM
    Hi there, is someone know how to manage KeyVault keys/secrets using Azure NextGen provider?
    b
    t
    • 3
    • 7
  • s

    steep-spoon-2023

    10/07/2020, 3:52 PM
    Hi guys, I'm struggling to get into the talks despite having signed up weeks back, is this intended until closer to 5pm BST?
    b
    s
    b
    • 4
    • 9
  • s

    steep-spoon-2023

    10/07/2020, 3:54 PM
  • s

    steep-spoon-2023

    10/07/2020, 3:54 PM
  • n

    nutritious-rainbow-58472

    10/07/2020, 4:04 PM
    Same problem here 😞 have someone managed to get in?
  • s

    steep-spoon-2023

    10/07/2020, 4:05 PM
    @nutritious-rainbow-58472 this is a test session the Pulumi team are running, it is not intended for anyone to view. They are tracking this in the #cloudengineering-support channel
  • n

    nutritious-rainbow-58472

    10/07/2020, 4:06 PM
    @steep-spoon-2023 Thanks for info. It is just strange that I was able to add it to my schedule
  • i

    incalculable-jewelry-88469

    10/07/2020, 4:25 PM
    hello - I have a newbie question: is there a way to print the output of
    pulumi up
    as a json? I see the
    --json
    option for
    pulumi preview
    but not for
    pulumi up
    motivation: log it in a structured manner so that it can be easily parsed by datadog
  • c

    cool-jordan-85318

    10/07/2020, 5:26 PM
    Hi folks, I would like to attend but being on vacation and being off makes it not possible for me to join. Any chance to see the content later on as a video?
    c
    • 2
    • 2
  • a

    agreeable-plastic-45345

    10/07/2020, 5:53 PM
    Trying to Get a pass for the conference but nothing is coming back my way as in pass. (i shared via twitter)
    e
    • 2
    • 3
  • e

    elegant-island-39916

    10/07/2020, 6:10 PM
    Hi, I'm getting issues deploying to kubernetes where a deployment config is scheduled to be pushed before a configmap is created. Causing errors like this:
    [diff: ~spec]; warning: [Pod redis-deployment-pv20lh90-8479b5d5f-9w74q]: containers with unready status: [redis] -- [CreateContainerConfigError] configmap "redis-env-configmap" not found
    Is there a way I can force pulumi to create a resource before another?
    s
    • 2
    • 4
Powered by Linen
Title
e

elegant-island-39916

10/07/2020, 6:10 PM
Hi, I'm getting issues deploying to kubernetes where a deployment config is scheduled to be pushed before a configmap is created. Causing errors like this:
[diff: ~spec]; warning: [Pod redis-deployment-pv20lh90-8479b5d5f-9w74q]: containers with unready status: [redis] -- [CreateContainerConfigError] configmap "redis-env-configmap" not found
Is there a way I can force pulumi to create a resource before another?
s

straight-flower-13757

10/07/2020, 6:14 PM
you can use
depends_on
property
https://www.pulumi.com/docs/intro/concepts/programming-model/#dependson
e

elegant-island-39916

10/07/2020, 6:17 PM
perfect, thanks a ton @straight-flower-13757 !
s

straight-flower-13757

10/08/2020, 2:31 AM
you are welcome
View count: 1