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

    little-cartoon-10569

    04/28/2021, 12:44 AM
    Is there an easy way to get the URN of a resource for use with
    pulumi state delete
    ? I can't see it in the console.
    b
    • 2
    • 10
  • d

    dazzling-greece-40309

    04/28/2021, 7:28 AM
    Hi guys
  • d

    dazzling-greece-40309

    04/28/2021, 7:29 AM
    i am using pulumi to create ec2 instance unable to create and attack ebs block device
  • d

    dazzling-greece-40309

    04/28/2021, 7:29 AM
    raise AssertionError(f"Unexpected type. Expected 'dict' got '{typ}'") AssertionError: Unexpected type. Expected 'dict' got 'typing.Sequence[typing.Union[pulumi_aws.ec2._inputs.InstanceEbsBlockDeviceArgs, typing.Awaitable[pulumi_aws.ec2._inputs.InstanceEbsBlockDeviceArgs], pulumi.output.Output[~T]]]'
  • d

    dazzling-greece-40309

    04/28/2021, 7:30 AM
    getting the above error
  • d

    dazzling-greece-40309

    04/28/2021, 7:30 AM
    ebs_block = { "device_name": "/dev/sdc", "volume_size": 10, "volume_type": "gp2"
  • d

    dazzling-greece-40309

    04/28/2021, 7:30 AM
    this i s the syntax used
  • c

    chilly-noon-57744

    04/28/2021, 7:56 AM
    Hi Everyone! Does anyone knows what is the longest name a Pulumi resource can have? I have a function on my codebase that uses Hungarian notation generate resource names and I'm worried it might be too long at some point (a resource name would look like
    <environment>-<k8s-cluster-name>-<namespace>-<resource name>
    ).
    g
    s
    b
    • 4
    • 8
  • p

    proud-art-41399

    04/28/2021, 10:14 AM
    Hi, I'm using Pulumi with GitHub Actions. In the Pulumi program, I first build a Docker image using
    pulumi_docker.Image
    (link) while pushing it to Amazon ECR and then use the Docker image for AWS Batch job definition in a later step. I'm curious how I can leverage caching Docker layers. There's
    cache_from
    argument of
    pulumi_docker.DockerBuild
    , but as per the documentation, it's a list of build stages to use for caching that will be pushed to the target repository. However, I'd like to use local cache on the GitHub Actions runner (as per https://github.com/docker/build-push-action/blob/master/docs/advanced/cache.md#github-cache). Would it work to use BuildKit by specifying
    DOCKER_BUILDKIT=1
    to
    env
    argument of
    pulumi_docker.DockerBuild
    and also supplying
    --cache-from
    and
    --cache-to
    (link) to
    extra_options
    ?
    b
    t
    p
    • 4
    • 13
  • b

    brief-printer-34348

    04/28/2021, 2:31 PM
    Has there been any consideration of extending Pulumi to host level configuration management? (e.g. as an alternative to Ansible, Puppet, etc)
    b
    • 2
    • 4
  • b

    bumpy-laptop-30846

    04/28/2021, 4:24 PM
    Hi guys, I have an issue with postgresql as the setup must be passed through the pulumi config or an env variable. My issue is that the values to pass come from my pulumi program. So how can I pass my endpoint + credentials to the postgresql provider inside my program?
    b
    • 2
    • 5
  • f

    faint-dog-16036

    04/28/2021, 5:35 PM
    Is there a recommended way to extend a base configuration for a particular resource? For example, I have configuration for a Kubernetes pod that I want to layer with a readiness probe in certain services but not in others.
  • w

    worried-knife-31967

    04/28/2021, 5:50 PM
    Does anyone have any information on the new syntax for creating a Mock helper in C# for 3.1? seems to have changed considerably...
  • w

    worried-knife-31967

    04/28/2021, 5:56 PM
    https://www.pulumi.com/docs/guides/testing/unit/#add-mocks I'm looking at that, and it doesn't seem to compile?
  • b

    broad-dog-22463

    04/28/2021, 6:12 PM
    you will see it in the migration guide @worried-knife-31967 - https://www.pulumi.com/docs/get-started/install/migrating-3.0/
  • b

    broad-dog-22463

    04/28/2021, 6:12 PM
    https://github.com/pulumi/examples/blob/master/testing-unit-cs/Testing.cs
  • b

    broad-dog-22463

    04/28/2021, 6:12 PM
    we also have the example here
  • b

    broad-dog-22463

    04/28/2021, 6:12 PM
    I will chck that guide out as to why it wasn't upgraded
  • b

    broad-dog-22463

    04/28/2021, 6:12 PM
    thanks for linking that
  • w

    worried-knife-31967

    04/28/2021, 6:21 PM
    I think the mocks link above shows Moq, which is very different to the handrolled example
  • b

    broad-dog-22463

    04/28/2021, 6:30 PM
    this is amocks based example as well but not using Moq - https://github.com/pulumi/examples/tree/master/testing-unit-cs-mocks
  • b

    broad-dog-22463

    04/28/2021, 6:30 PM
    I need to track down the source of the Moq work and update it
  • g

    gifted-city-99717

    04/28/2021, 6:35 PM
    hi. I want to use a yaml config file to drive my pulumi automation. Is there a way to pass a list of strings to the stack? maybe something like stack.SetConfig(string, auto.ConfigValue) that I can use?
    r
    b
    • 3
    • 4
  • b

    bumpy-summer-9075

    04/28/2021, 6:55 PM
    Is there a way to ignore some config changes? Because my
    AWS_PROFILE
    is locally different than a collegue's or even my CI, whenever I do a
    pulumi up
    , the value in the stack changes and breaks my CI (which doesn't expect an aws profile to be set).
    Do you want to perform this update? details
      pulumi:pulumi:Stack: (same)
        [urn=urn:...]
        ~ pulumi:providers:aws: (update)
            [id=...]
            [urn=urn:...]
          + profile                  : "mfa"     <- no pls
    b
    • 2
    • 5
  • r

    red-football-97286

    04/29/2021, 8:59 AM
    Looking pulumi folder inside the node_modules of a project, I can see the version of TypeScript being used in the TSconfig.json, can you upgrade to version 4?
  • a

    acoustic-memory-71095

    04/29/2021, 10:13 AM
    Hi guys! New in here 🙂 I have a general question. My team and I consider working on some automation. We need to synchronize stack state and keep a cache of some fields of the stack’s state in one of our services. StackUpdate webhooks only include a nomination of the changes without further details(following this page of the docs). I searched for a public Web API(for Pulumi) but couldn’t find any documentation for such a thing. Is there a way for me to use an API to retrieve the state of a stack when I receive a StackUpdate webhook? Thanks in advance!!!!
    b
    • 2
    • 3
  • b

    bland-lunch-5883

    04/29/2021, 12:11 PM
    hi 🙂 do you guys have any best practices to share configs among team members? our configs are quite large atm (think 20+ fields), and it's pita to keep them updated for each member's dev-env. Any tips would be appreciated!
  • b

    bland-lunch-5883

    04/29/2021, 12:17 PM
    would it be a good idea to use a project like dotenv to move the config's to outside pulumi's control?
    d
    • 2
    • 3
  • s

    stale-hamburger-8953

    04/29/2021, 12:17 PM
    we use pulumi with github actions
  • s

    stale-hamburger-8953

    04/29/2021, 12:17 PM
    pulumi env vars live under github env
    b
    • 2
    • 1
Powered by Linen
Title
s

stale-hamburger-8953

04/29/2021, 12:17 PM
pulumi env vars live under github env
b

bland-lunch-5883

04/29/2021, 1:12 PM
sounds like a great idea! thanks 🙂
❤️ 1
View count: 2