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

    damp-honey-93158

    05/16/2022, 1:53 PM
    When setting stack outputs in C#, it appears that anything I write to any output does not appear in the pulumi service if I do the variable assignment from within an Apply() function. Is that expected?
    • 1
    • 2
  • f

    future-window-78560

    05/16/2022, 5:43 PM
    Hi there How can we download GCP service account key on creation thru pulumi??
  • d

    damp-room-84921

    05/16/2022, 7:16 PM
    Hey all! I'm trying to use the official Pulumi github action from here but it seems like the action is built with a known EKS authentication bug because it's using a very old version of kubectl that hasn't been updated for 8 months or so... is this on the docket to get squared away? I cannot use the Pulumi github action until then 😐
    b
    l
    e
    • 4
    • 36
  • d

    damp-room-84921

    05/16/2022, 7:17 PM
    Unless I fork it. After a few days of messing with it, i'm at the point of just tossing the action aside and doing it by hand 😐
  • d

    damp-room-84921

    05/16/2022, 7:17 PM
    @refined-student-28919 👋
    b
    • 2
    • 1
  • i

    important-train-1965

    05/16/2022, 8:30 PM
    Good afternoon. Decided to join here to see if I can get some more info on pricing and adoption. Is there a tool that can be provided to determine how much it costs for my current infra?
    b
    • 2
    • 4
  • a

    average-tiger-58107

    05/16/2022, 9:06 PM
    I'm noticing that updating ECS task definitions are quite slow on Pulumi free tier. I'm assuming things are much faster when paying for an org?
    l
    b
    q
    • 4
    • 16
  • b

    billowy-area-48390

    05/16/2022, 10:24 PM
    We are building a multi tenant SaaS solution with Pulumi (Python) and are wondering if anybody has an idea on how to solve these issues: • We are using Pulumi components to create our resources. We wish to use different versions of components (as Python packages) within the same stack for different logical infra groups, what would be the best approach ? • Alternative is to create separate stacks for those logical groups, however is there a way to create dependencies between stacks (in case we need a certain output that hasn't been provisioned yet)
    m
    • 2
    • 2
  • h

    hundreds-megabyte-76150

    05/16/2022, 10:39 PM
    Where would I be able to get support about my Pulumi account? We just enabled the GitLab Identity Provider on our org’s account and I completely lost access…
    l
    • 2
    • 4
  • s

    stocky-helmet-82003

    05/17/2022, 6:20 AM
    Hey everyone. Seems like Pulumi’s auto-naming feature uses URNs of the resource name to generate the random string. So these URNs are of the format:
    urn:pulumi:{stack-name}::{project-name}::{provider}:resources:{resource-type}::{resource-name}
    Example URN:
    urn:pulumi:dev::azure-ts-functions-many::azure-native:resources:ResourceGroup::windowsrg
    Therefore, it seems to generate the same random string if run with the same project and stack name. Is this the ideal and expected behaviour? Facing issues for global resources when trying to deploy example projects with common stack names.
    b
    d
    p
    • 4
    • 5
  • d

    damp-honey-93158

    05/17/2022, 7:25 AM
    Is there a way to fetch the pulumi org currently in use, so I can make up the org/project/stack reference string? I know about Deployment.Instance for the project/stack name already - thanks! C# if that matters (probably doesnt).
  • d

    damp-honey-93158

    05/17/2022, 2:35 PM
    Hi ho and hello! Is there an easy way to tell Pulumi to ignore changes in one of the attributes I am setting? I am creating a service principal; and the Owner is being set - in CICD, the owner is different and I don't want to bother trying to change it ...
    var app = new Application($"{Deployment.Instance.StackName}-app", new ApplicationArgs
    {
        DisplayName = $"{Deployment.Instance.StackName}-cicd",
        Owners = { current.Apply(c => c.ObjectId), },
        SignInAudience = "AzureADMultipleOrgs"
    }, new CustomResourceOptions()
    {
        IgnoreChanges = {
            "Owners"
        }
    });
    I thought the above "IgnoreChanges" might be the key, but I suspect I am using that incorrectly in this case. Tips appreciated.
    • 1
    • 2
  • b

    bulky-hamburger-30930

    05/17/2022, 4:27 PM
    Hi team. I want to create a terraform wrapper but there are two issues that are not allowing me to do it. Could you please help me here? https://github.com/pulumi/pulumi/issues/9606 Is it also possible to onboard this package into pulumi's official registry. I would be happy to prepare the package and do the onboarding.
    b
    • 2
    • 1
  • f

    fast-river-57630

    05/17/2022, 6:48 PM
    I saw someone mention "pulumi config" and then slack scrolled away. not sure if it's related. is there a good pre-commit hook for ensuring the pulumi yaml files match what pulumi expects. pulumi preview+up always re-orders fields
    l
    • 2
    • 3
  • b

    broad-island-71889

    05/17/2022, 7:08 PM
    Hi guys, we have a transformation defined on stack level that registers common tags for AWS resources (similar to the one described here). The only problem with it is that if we use same resource in another project(below), it rewrites the tags
    bucket = aws.s3.Bucket.get(
        f"{name}-some-bucket", id=f"bucket-created-in-another-program")
    )
    I was wondering if there is a way to filter auto-tagging by the operation, i.e. if it’s only reading resources, then do not apply the transformation.
    aws:s3/bucket:Bucket: (read)
    w
    • 2
    • 2
  • e

    echoing-oil-42947

    05/17/2022, 8:47 PM
    👋 hey all, I think I have the answer to this question (likely a no), but out of curiosity, is there a way to create a foreign data wrapper in postgres via pulumi?
    • 1
    • 1
  • a

    adamant-father-26302

    05/18/2022, 7:24 AM
    How can i get servicename from a helm.Release ? (for use in input in another resource)
    b
    • 2
    • 3
  • a

    adamant-father-26302

    05/18/2022, 11:36 AM
    is it possible to convert a pulumi.Map to yaml as pulumi.String ?
    b
    • 2
    • 1
  • p

    prehistoric-ram-58389

    05/18/2022, 2:22 PM
    👋 Hi everyone!
    👋🏻 1
    👋 1
  • p

    prehistoric-ram-58389

    05/18/2022, 2:39 PM
    I previously use login --local. Now I want to switch to using Pulumi cloud. How can I do that?
    b
    f
    • 3
    • 7
  • m

    microscopic-flower-5848

    05/18/2022, 3:21 PM
    Hey all looking for concrete reasons to choose Pulumi over Terraform Cdk? Need to convince my decision makers... 🙂
    l
    • 2
    • 2
  • b

    big-finland-87761

    05/18/2022, 7:04 PM
    What's the best policy checker for pulumi? We currently use checkov for our CFN templates, but checkov doesn't support pulumi (yet? https://github.com/bridgecrewio/checkov/issues/568 ) The AWS policy validators in the Pulumi repo are... pretty barebones. Looks like only one has been added in the last couple years. I really don't want to lose coverage and/or rewrite all of the checkov tests. when I poked around in the checkov code, it looks like a decent chunk of the IAM validation in Checkov actually delegates to Salesforce's cloudsplainer library. May or may not be relevant, but I thought it was an interesting bit of trivia
    v
    • 2
    • 18
  • d

    damp-honey-93158

    05/18/2022, 8:19 PM
    Dear Pulumiers (er, new word?) - I'd like to run a command on "destroy" only - to purge something from my cloud - is there a defined way that I can hook into the "post-delete" of a resource ?
    b
    • 2
    • 7
  • f

    future-window-78560

    05/19/2022, 2:43 AM
    Hey team! any guide on how can we create folders in gcp bucket using pulumi??
    f
    • 2
    • 4
  • c

    clever-bear-11061

    05/19/2022, 6:35 AM
    Hi everyone,
  • c

    clever-bear-11061

    05/19/2022, 6:40 AM
    What hashing/diff mechanism used by new pulumi.asset.FileArchive? I am updating aws LambdaLayer with .tar.gz nodejs code, but as I regenerate it every deploy pulumi detects change even though content of the zip is same, only date of creation/modification is different. Any idea how to avoid that?
  • p

    prehistoric-ram-58389

    05/19/2022, 9:52 AM
    Hi, how can I use an ARN of a resource I create?
    f
    • 2
    • 9
  • n

    nice-lizard-13594

    05/19/2022, 9:53 AM
    Hey Pulumi lovers 👋 Is it possible to tell Pulumi to ensure that a resource does not exist (delete if is present)? My use case is as follows: • install a Helm release • the Helm Chart creates a ConfigMap and the values to not permit to skip creation • I want to ensure the Configmap is deleted after the Helm chart is installed Any help or hints into the correct direction are highly appreciated. Thanks in advance 🙂
    s
    • 2
    • 1
  • f

    future-window-78560

    05/19/2022, 10:28 AM
    Team, Any guide on how to choose between Native mode and Datastore mode GCP using pulumi I am creating datastore resources through pulumi which has to be fully automated. Datastore index is created when I am manually enabling mode and creating datastore-database from GCP console. How can I avoid this manual step?
  • a

    average-tiger-58107

    05/19/2022, 2:09 PM
    I'm struggling with a code example shared in the documentation for pulumi crosswalk for aws. I would like to create an
    awsx.ecs.FargateService
    and would like to pass it a
    cluster
    as an argument. These docs show an example of passing
    cluster.arn
    from an
    aws.ecs.Cluster
    resource, (type
    Output<string>
    ). However the code for
    awsx.ecs.FargateService
    expects cluster to be a non-output_,_ of type
    ecs.Cluster
    Is this a bug? What I would really like to do is pass a cluster from a StackReference to my various ECS services that are each managed on their own stacks.
    m
    • 2
    • 11
Powered by Linen
Title
a

average-tiger-58107

05/19/2022, 2:09 PM
I'm struggling with a code example shared in the documentation for pulumi crosswalk for aws. I would like to create an
awsx.ecs.FargateService
and would like to pass it a
cluster
as an argument. These docs show an example of passing
cluster.arn
from an
aws.ecs.Cluster
resource, (type
Output<string>
). However the code for
awsx.ecs.FargateService
expects cluster to be a non-output_,_ of type
ecs.Cluster
Is this a bug? What I would really like to do is pass a cluster from a StackReference to my various ECS services that are each managed on their own stacks.
m

miniature-musician-31262

05/19/2022, 7:13 PM
Hi there — apologies for the confusion here. The code in this doc is correct for the updated (i.e., new beta) version of awsx, which is currently at
1.0.0-beta.5
. I’m guessing your awsx is maybe
0.40.x
or similar. Is that right?
(I happened to hit this myself this morning and remembered your question, so hopefully this’ll help you also.)
this combo produces a working example for me: https://gist.github.com/cnunciato/05a143fac501f12816c12a79ae312ec0
a

average-tiger-58107

05/19/2022, 7:55 PM
Sweet! Thanks for the responsiveness. I love using the opinionated
awsx
because it speeds up my life quite a bit. I started down the road of defining the underlying
aws.ecs.{TaskDefinition, Service}
, but there's a ton of added complexity with defining a JSON container definition, etc
I'll bump my version
Broke a couple other things but hoping they will be easier to fix
m

miniature-musician-31262

05/19/2022, 8:13 PM
Awesome, you bet, hope that works out for ya
a

average-tiger-58107

05/19/2022, 8:42 PM
Any idea here? When running
pulumi up
pulumi:providers:awsx (default_1_0_0_beta_5):
    error: could not read plugin [/Users/wizardfiction/.pulumi/plugins/resource-awsx-v1.0.0-beta.5/pulumi-resource-awsx] stdout: EOF
I have pulumi installed via homebrew
v3.32.1
Appears to be an issue on my M1 mac, but not in a Linux github actions runner
View count: 3