https://pulumi.com logo
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
  • m

    mysterious-apartment-62241

    10/19/2022, 3:47 PM
    Hey everyone! I was wondering if there was a Slack integration for Pulumi which would allow Pulumi Cloud to send stack update information as Slack messages to a a particular channel. Any help would be appreciated! Thank you 🎈
  • g

    gifted-fall-44000

    10/19/2022, 5:21 PM
    Is there a govcloud topic?
  • q

    quick-wolf-8403

    10/19/2022, 5:41 PM
    Hey folks. In a shell script developers use, I loop over the the
    pulumi
    command. Is there a way to disable warnings? I don't want
    warning: A new version of Pulumi is available...
    printed over and over. I could just redirected stderr to null, but I'd rather show other errors. (Tried
    --verbose 0
    and
    --non-interactive
    already.)
    s
    • 2
    • 3
  • k

    kind-country-41992

    10/19/2022, 5:49 PM
    I am looking for argcd helm chat deployment to pulumi using python. could some on help me
    b
    • 2
    • 10
  • m

    mysterious-battery-54431

    10/19/2022, 10:13 PM
    Has anyone been able to successfully set the
    version_retention_period
    for GCP Spanner as per here https://www.pulumi.com/registry/packages/gcp/api-docs/spanner/database/? When we try to set it, we get back the response
    TypeError: _internal_init() got an unexpected keyword argument 'version_retention_period'
    • 1
    • 1
  • w

    wonderful-finland-26211

    10/19/2022, 10:46 PM
    I got errors when I use pulumi up.
    Traceback (most recent call last):
          File "/home/ubuntu/.pulumi/bin/pulumi-language-python-exec", line 14, in <module>
            import pulumi
        ModuleNotFoundError: No module named 'pulumi'
        It looks like the Pulumi SDK has not been installed. Have you run pip install?
        If you are running in a virtualenv, you must run pip install -r requirements.txt from inside the virtualenv.
    
        error: an unhandled error occurred: Program exited with non-zero exit code: 1
    I use the setup.py install requirements.txt. Below is the code. (pip install .) /usr/bin/python3 -V Python 3.9.15
    #!/usr/bin/python3
    import os
    import setuptools
    
    packages_path = os.path.join(os.getcwd(), "_install")
    
    with open(os.path.join(os.getcwd(), "_install", "requirements.txt")) as f:
        required = f.read().splitlines()
    
    setuptools.setup(
        name="deployment",
        version="1.4.1",
        author_email="email address",
        description="service to create clusters and other common infrastructure",
        url="URL",
        include_package_data=True,
        package_dir={"": "src"},
        packages=setuptools.find_packages(where="src"),
        install_requires=[
            required,
        ],
        extras_require={
            "dev": [
                f"common_variables[dev] "
                f"@ <file://localhost/{packages_path}/common_variables-1.4.5.tar.gz#egg=common_variables>",
            ],
        }
    )
    pip freeze
    Arpeggio==1.10.2
    attrs==19.3.0
    Automat==0.8.0
    blinker==1.4
    certifi==2019.11.28
    chardet==3.0.4
    Click==7.0
    cloud-init==22.3.4
    colorama==0.4.3
    configobj==5.0.6
    constantly==15.1.0
    cryptography==2.8
    dbus-python==1.2.16
    deployment==1.4.1
    dill==0.3.5.1
    distro==1.4.0
    distro-info===0.23ubuntu1
    ec2-hibinit-agent==1.0.0
    entrypoints==0.3
    grpcio==1.47.0
    httplib2==0.14.0
    hyperlink==19.0.0
    idna==2.8
    importlib-metadata==1.5.0
    incremental==16.10.1
    Jinja2==2.10.1
    jsonpatch==1.22
    jsonpointer==2.0
    jsonschema==3.2.0
    keyring==18.0.1
    launchpadlib==1.10.13
    lazr.restfulclient==0.14.2
    lazr.uri==1.0.3
    MarkupSafe==1.1.0
    more-itertools==4.2.0
    netifaces==0.10.4
    oauthlib==3.1.0
    parver==0.3.1
    pexpect==4.6.0
    protobuf==4.21.7
    pulumi==3.43.1
    pulumi-aws==5.16.2
    pulumi-docker==3.4.1
    pyasn1==0.4.2
    pyasn1-modules==0.2.1
    PyGObject==3.36.0
    PyHamcrest==1.9.0
    PyJWT==1.7.1
    pymacaroons==0.13.0
    PyNaCl==1.3.0
    pyOpenSSL==19.0.0
    pyrsistent==0.15.5
    pyserial==3.4
    python-apt==2.0.0+ubuntu0.20.4.8
    python-debian===0.1.36ubuntu1
    python-dotenv==0.21.0
    PyYAML==6.0
    requests==2.22.0
    requests-unixsocket==0.2.0
    SecretStorage==2.3.1
    semver==2.13.0
    service-identity==18.1.0
    simplejson==3.16.0
    six==1.14.0
    sos==4.3
    ssh-import-id==5.10
    systemd-python==234
    Twisted==18.9.0
    ufw==0.36
    urllib3==1.25.8
    wadllib==1.3.3
    zipp==1.0.0
    zope.interface==4.7.1
    b
    • 2
    • 7
  • e

    early-intern-90238

    10/20/2022, 1:29 AM
    Is it possible to call an API in my code during a pulumi up? Like as the last step I want to call an API to clear my cloudflare cache for example
    l
    b
    • 3
    • 5
  • l

    little-cartoon-10569

    10/20/2022, 3:30 AM
    Is the implementation of pulumi-docker considered idiomatic / "correct"? Specifically, that the resource constructors do actual work, including building images? In cloud-centric packages, all work is done in providers, once the Pulumi engine is called. But for Pulumi docker, work is being done in our Pulumi code, before the engine gets involved. As it currently stands, it's not possible to write unit tests with these resources.
    s
    • 2
    • 6
  • s

    sparse-intern-71089

    10/20/2022, 4:10 AM
    This message was deleted.
  • b

    bland-tailor-50336

    10/20/2022, 4:11 AM
    When using stack references (a sub application referencing another applications stack) What is one to do when a constructor (e.g. awsx.ecs.FargateService) requires as parameter argument a rich object (like awsx.ecs.Cluster) land not a string value?
    • 1
    • 2
  • b

    bland-tailor-50336

    10/20/2022, 4:28 AM
    I'm confused as to why the types in the Docs are different from my project... this is frustrating
    b
    m
    • 3
    • 88
  • r

    ripe-russia-4239

    10/20/2022, 11:42 AM
    Hi all, is there any information published as to where (geographically) the Pulumi Service is hosted--or, specifically, the project/stack state data? I found the security page and whitepaper, but these only mention hosting on AWS VPC, not a geography.
  • m

    mysterious-apartment-62241

    10/20/2022, 2:24 PM
    Hey guys! I want to use the Pulumi GitHub Action to automate infrastructure updates. I was wondering if there's some way to check if the action caused the configured stack to update. This is because I need to conditionally run some other actions
  • t

    tall-crowd-93084

    10/20/2022, 3:45 PM
    Hey everyone, kick pulumi's tyres for the first time today. I'm sure this is a version thing, but I can't get the types to line up with some
    tf2pulumi
    code... Even the example code here: https://www.pulumi.com/registry/packages/hcloud/api-docs/servernetwork/ isn't working. Details in the thread so as not to pollute the channel edit, sorry - I've just seen greetbot's note about #typescript
    • 1
    • 3
  • g

    gifted-fall-44000

    10/20/2022, 4:32 PM
    When could I expect this unreleased PR to be released? I really need this change as it blocking some initial testing in GovCloud.
    b
    • 2
    • 5
  • l

    late-smartphone-64073

    10/20/2022, 5:46 PM
    hello. we are thinking about using pulumi over tf for certain projects. my question is are all supported code languages created equally, or is their a gap where some languages lag behind on features / capability / or support? we are mostly a .net shop and would love to use that, but we see more examples in pyhon then .net
    g
    b
    • 3
    • 8
  • r

    rapid-eve-24229

    10/20/2022, 8:04 PM
    Hello All, I just wanted to put out there something that just happened to me using your service. I have a long-standing database that is part of the Pulumi deployment.
    pulumi==3.43.1
    pulumi-aws==5.18.0
    pulumi-docker==3.4.1
    python-dotenv==0.21.0
    So, anyway, I was trying to deploy my stack with the updated versions. I received an error message "name" is deprecated and replaced with "db_name" in aws.rds.Instance So, I changed "name" to "db_name" Deployed. Pulumi deleted my old database and backups, and created a new database with all data lost.
    l
    b
    • 3
    • 18
  • r

    rapid-eve-24229

    10/20/2022, 8:13 PM
    Starting up another thread here since I am having two problems
    pulumi==3.43.1
    pulumi-aws==5.18.0
    pulumi-docker==3.4.1
    python-dotenv==0.21.0
    Deployed Failure = " no digest available for image"
    s
    • 2
    • 2
  • m

    most-laptop-7275

    10/20/2022, 8:40 PM
    Quick question to anyone that might be so kind as to help: ... I feel like there's no way this is only happening to me. I have a freshly spun up EC2 instance in AWS that I have installed Pulumi to. Mind you everything works in that I can deploy IaC resources with pulumi up, but whenever I go to initialize my stack with 'pulumi new aws-python', I receive the following error (after a very long time of doing nothing): Successfully built pulumi-aws Installing collected packages: arpeggio, six, semver, pyyaml, protobuf, dill, attrs, parver, grpcio, pulumi, pulumi-aws error: installing dependencies failed; rerun manually to try again, then run
    pulumi up
    to perform an initial deployment: installing dependencies via '/home/ec2-user/PulumiPoC/venv/bin/python -m pip install -r requirements.txt': signal: killed.
  • m

    many-spring-73557

    10/20/2022, 8:41 PM
    I want to make a shared library that I use across all pulumi projects. So I have a file like:
    import * as aws from "@pulumi/aws";
    
    export function newRdsCpu(...) {
      new aws.cloudwatch.MetricAlarm(...);
    }
    I am hoping to import it with something like
    import * as alarms from "../../pulumi-shared/alarms";
    but when I do, I get
    Cannot find module '@pulumi/aws'
    If I add a
    package.json
    to
    pulumi-shared
    with
    @pulumi/aws
    in it then it works… but I don’t really want that file as an independent library. It should use the
    @pulumi/aws
    of whatever library is calling it. Does anyone have any suggestions for how to proceed? I am searching lots of TypeScript on how to import files from outside the root dir, but so far not having any luck.
    a
    • 2
    • 2
  • m

    most-laptop-7275

    10/20/2022, 8:42 PM
    I have cleared my pip cache and tried again only to get the same result... this has been happening since yesterday, but it didn't happen the day before. Put Pulumi on a new instance and got the same result, so it probably isn't anything with my Pulumi, Python/PIP installation. I turned on verbose logging but it didn't really give me much more information so I was hoping this was a common issue with an easy fix.
  • m

    most-laptop-7275

    10/20/2022, 8:43 PM
    also thanks in advance for anyone that does help. Tried Google first obviously so either my Google-fu sucks or it's not as common as my reasoning would lead me to believe...
  • m

    most-laptop-7275

    10/20/2022, 8:57 PM
    nvm... answered my own question. If anyone happens to find themselves receiving the same error message, it looks to be an out of memory error. Resized my VM to have more memory and all is well.
  • f

    fast-flower-40813

    10/20/2022, 11:57 PM
    Hello everyone, I'm using the pulumi operator and when I'm trying to deploy a stack from my aws codecommit private repo, I'm getting this error:
    unable to enlist in git repo: unable to clone repo: reference delta not found.
    Does anyone have the same error or is there a workaround it? Thank you
  • d

    dazzling-gigabyte-42983

    10/21/2022, 8:25 AM
    Hi all, When using the AzureAD Provider, does anyone know how to configure API Permissions when configuring a new application?
    var serverApplication = new AzureAD.Application($"{prefix}-{appName}", new AzureAD.ApplicationArgs
        {
            
            SignInAudience = "AzureADandPersonalMicrosoftAccount",
            SinglePageApplication = new ApplicationSinglePageApplicationArgs
            {
                RedirectUris = "<http://localhost:4200/>"
            },
            DisplayName = "Azure AD Example Server",
            IdentifierUris =
            {
                $"api://{prefix}-{appName}"
            },
            Api = new AzureAD.Inputs.ApplicationApiArgs
            {
                RequestedAccessTokenVersion = 2,
            },
            
        });
    I'm trying to delegate the token to another backend API. Thanks
  • c

    creamy-toothbrush-23183

    10/21/2022, 2:49 PM
    HI, i so happy to be part of this community
  • l

    late-smartphone-64073

    10/21/2022, 3:28 PM
    I am a longtime tf user. I did my first "getting started" tutorial for azure-csharp and I am very impressed with its capabilities; native secret encryption and the features u get the free portal blow away tfcloud
  • l

    late-smartphone-64073

    10/21/2022, 3:31 PM
    does pulumi have the concept of custom modules? I ask because if wanted to start converting to pulumi how would that effect our opinionated tf modules?
    b
    • 2
    • 6
  • l

    late-smartphone-64073

    10/21/2022, 3:33 PM
    I was looking at Opta which uses tf under the hood, but I like its concept of using yml to pull in pre-fab modules, making it easier for devs to use https://docs.opta.dev/
    b
    • 2
    • 1
  • w

    white-rain-67342

    10/21/2022, 4:36 PM
    Running into an error when trying to bring down my stack. How do I tell Pulumi to delete the
    kable-db-rdsf41604a
    before deleting the subnet group?
    Diagnostics:
      aws:rds:SubnetGroup (kable-db-sng):
        error: deleting urn:pulumi:staging::kable-infrastructure::custom:resource:DB$aws:rds/subnetGroup:SubnetGroup::kable-db-sng: 1 error occurred:
            * deleting RDS Subnet Group (kable-db-sng-9841ed7): InvalidDBSubnetGroupStateFault: Cannot delete the subnet group 'kable-db-sng-9841ed7' because at least one database instance: kable-db-rdsf41604a is still using it.
            status code: 400, request id: 4a24205a-a1d9-4586-a4a5-a1aa1e13173f
     
      pulumi:pulumi:Stack (kable-infrastructure-staging):
        error: update failed
    l
    • 2
    • 1
Powered by Linen
Title
w

white-rain-67342

10/21/2022, 4:36 PM
Running into an error when trying to bring down my stack. How do I tell Pulumi to delete the
kable-db-rdsf41604a
before deleting the subnet group?
Diagnostics:
  aws:rds:SubnetGroup (kable-db-sng):
    error: deleting urn:pulumi:staging::kable-infrastructure::custom:resource:DB$aws:rds/subnetGroup:SubnetGroup::kable-db-sng: 1 error occurred:
        * deleting RDS Subnet Group (kable-db-sng-9841ed7): InvalidDBSubnetGroupStateFault: Cannot delete the subnet group 'kable-db-sng-9841ed7' because at least one database instance: kable-db-rdsf41604a is still using it.
        status code: 400, request id: 4a24205a-a1d9-4586-a4a5-a1aa1e13173f
 
  pulumi:pulumi:Stack (kable-infrastructure-staging):
    error: update failed
l

little-cartoon-10569

10/21/2022, 7:15 PM
Add a dependsOn opt to the database, referring to the subnet group id.
View count: 1