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

    better-umbrella-26052

    07/02/2022, 2:19 PM
    I am curious if the Pulumi install on Windows utilizes executables and installs executables? I have an extremely restrictive work environment which limits me to a Windows system on which I cannot run any executables I install on the system. I do have Python and can run Python scripts, as well as JS and possibly Java. Based on my install of Pulumi on my Linux system, I see that is executables.
    e
    • 2
    • 2
  • r

    rhythmic-branch-12845

    07/04/2022, 3:10 PM
    hi all, does anybody know if pulumi works with python’s asyncio?
    b
    g
    l
    • 4
    • 6
  • w

    white-activity-5432

    07/08/2022, 7:38 PM
    Hi
    b
    • 2
    • 2
  • w

    white-activity-5432

    07/08/2022, 7:40 PM
    I'm following the tutorial, but polumi returns an error
    b
    • 2
    • 12
  • w

    white-activity-5432

    07/08/2022, 7:40 PM
    this tuturial
  • w

    white-activity-5432

    07/08/2022, 7:40 PM
    https://www.pulumi.com/learn/pulumi-fundamentals/configure-and-provision/
  • w

    white-activity-5432

    07/08/2022, 7:41 PM
  • w

    white-activity-5432

    07/08/2022, 8:51 PM
    Can anyone solve a doubt, within a microservices structure I add a project for each microservice there is or I can manage everything in a single project ?
    b
    • 2
    • 1
  • j

    jolly-plumber-1488

    07/11/2022, 11:13 AM
    Hi guys, has anyone seen this error before when creating eks cluster?
    Message_: "Security group(s) [sg-0cb56162e90f5f571] are not in the same VPC as the subnets. Please specify a security group that is associated with the VPC: vpc-0b6bc0745054144c7."
    This the python code to create cluster:
    cluster = eks.Cluster(
        cluster_name,
        version="1.22",
    
        skip_default_node_group=True,
    
        vpc_id=vpc.id,
        public_subnet_ids=vpc.public_subnet_ids,
        node_associate_public_ip_address=False,
        private_subnet_ids=vpc.private_subnet_ids,
        cluster_security_group=cluster_sg,
    
        service_role=cluster_role,
        instance_roles=[node_role],
    
        create_oidc_provider=True,
    
        cluster_tags=common_tags
    )
    I know EKS will create a separate security group for cluster service, but seems it’s using my default VPC instead of the
    vpc.id
    that I passed.
    b
    b
    • 3
    • 3
  • t

    thousands-area-40147

    07/11/2022, 1:45 PM
    Hey folks, I'm trying to use
    pulumi config set --path '<http://abc.xyz|abc.xyz>' '---test---'
    but it's trying to parse the value as a flag, despite it being in single quotes. How would I go about adding a string starting with dashes as a value using
    config set
    ?
    b
    • 2
    • 4
  • t

    thousands-area-40147

    07/12/2022, 8:51 AM
    And another thing, is there a way to check during execution whether we're in the
    preview
    or in the
    up
    phase? Some sort of context maybe?
    l
    • 2
    • 1
  • a

    acoustic-tiger-77630

    07/12/2022, 6:57 PM
    Does anyone knows where I can watch previously recorded Pulumi Webinars?
    w
    • 2
    • 1
  • w

    white-activity-5432

    07/12/2022, 7:48 PM
    Hello
  • w

    white-activity-5432

    07/12/2022, 7:49 PM
    i have this file
  • w

    white-activity-5432

    07/12/2022, 7:49 PM
    apiVersion: cert-manager.io/v1 kind: ClusterIssuer metadata: name: letsencrypto-homolog spec: acme: server: "https://acme-staging-v02.api.letsencrypt.org/directory" email: fabio@uliving.com.br privateKeySecretRef: name: letsencrypto-homolog solvers: - http01: ingress: class: nginx
  • w

    white-activity-5432

    07/12/2022, 7:50 PM
    I need to use on pulumi
  • w

    white-activity-5432

    07/12/2022, 7:55 PM
    but it dont have a file conversion
    f
    • 2
    • 1
  • r

    rhythmic-branch-12845

    07/13/2022, 7:27 AM
    basic question that I’m still trying to clarify: 1 “project” can have only 1 “program”, right?
    l
    • 2
    • 2
  • r

    rhythmic-branch-12845

    07/13/2022, 8:08 AM
    is there any way to have
    pulumi new aws-python
    not force the creation of a virtualenv? i.e. “don’t create a venv, don’t install anything for me because I have one already, or I will take care of it myself”. I don’t see any options in
    pulumi new --help
    . I’ve also tried
    pulumi new aws-native-python
    in case that is it. Nope. Don’t know how the 2 are different (
    aws-native-python
    vs
    aws-python
    ), but it creates a venv for me too
    l
    w
    • 3
    • 7
  • r

    rhythmic-branch-12845

    07/13/2022, 8:33 AM
    I’m not exactly getting a good experience from my first actual Pulumi program:
    Do you want to perform this update? yes
    Updating (stage)
    
    View Live: <https://app.pulumi.com/jf/xxxxxxx/stage/updates/1>
    
         Type                 Name           Status                  Info
     +   pulumi:pulumi:Stack  xxxxxxx-stage  **creating failed**     1 error
     +   └─ aws:route53:Zone  main           **creating failed**     1 error
    
    Diagnostics:
      pulumi:pulumi:Stack (xxxxxxx-stage):
        error: update failed
    
      aws:route53:Zone (main):
        error: 1 error occurred:
            * error creating Route53 Hosted Zone: InvalidDomainName: main-468bb55 is reserved by AWS!
            status code: 400, request id: ...
    Resources:
        + 1 created
    
    Duration: 4s
    I’m just trying to create a route53 zone, and I see absolutely no signs or warnings anywhere in the doc about what
    name
    is supposed to even mean, or what namespace it’s supposed to be in (https://www.pulumi.com/registry/packages/aws/api-docs/route53/zone/) This is my program:
    """An AWS Python Pulumi program"""
    
    import pulumi
    import pulumi_aws as aws
    
    main = aws.route53.Zone("main", tags={ "mananged_by": "Pulumi" })
    
    pulumi.export('route53_Zone__main__name_servers', main.name_servers)
    (and for the record, changing
    main
    to
    primary
    gives me no joy either: I get basically the same error, just with “primary” in place of “main”
    l
    e
    • 3
    • 7
  • f

    famous-eye-35723

    07/13/2022, 7:26 PM
    hi, qstn re
    command.remote.Command()
    using python. Ho do I pass environment variables?
    e
    d
    • 3
    • 8
  • b

    bulky-agent-73210

    07/14/2022, 3:27 PM
    I’m importing an Auth0 client via inline program. It’s getting hung up because I need to provide all attributes of the client and if I put empty string as
    args.Description
    field, Pulumi tries to fill it with “Managed by Pulumi”, causing the import to fail. Can I trick pulumi into leaving an empty string for description?
    = auth0:index/client:Client: (import)
            [id=someid2344534635735]
            [urn=urn:pulumi:myapp::tenant::auth0:index/client:Client::my-app]
          + description: "Managed by Pulumi"
    v
    • 2
    • 1
  • a

    adorable-angle-8714

    07/14/2022, 6:40 PM
    hi! i’ve been following this example to deploy a django app to AWS ECS / Fargate but have unable to get it to work out of the box. the stack deploys successfully but the URL doesn’t load. are you aware of any gotchas or updates to this? thanks!
  • i

    important-night-82492

    07/17/2022, 10:59 AM
    hello dears, this package is very awesome, but i have an issue with kind: Ingress rule it fails
    apiVersion: <http://networking.k8s.io/v1|networking.k8s.io/v1>
    kind: Ingress
    metadata:
      name: XXXX-web-ingress-rule-development
      annotations:
        <http://kubernetes.io/ingress.class|kubernetes.io/ingress.class>: nginx
        <http://nginx.ingress.kubernetes.io/rewrite-target|nginx.ingress.kubernetes.io/rewrite-target>: /$1
        <http://nginx.ingress.kubernetes.io/use-regex|nginx.ingress.kubernetes.io/use-regex>: "true"
        <http://nginx.ingress.kubernetes.io/proxy-body-size|nginx.ingress.kubernetes.io/proxy-body-size>: "0"
        <http://nginx.ingress.kubernetes.io/proxy-read-timeout|nginx.ingress.kubernetes.io/proxy-read-timeout>: "600"
        <http://nginx.ingress.kubernetes.io/proxy-send-timeout|nginx.ingress.kubernetes.io/proxy-send-timeout>: "600"
        <http://cert-manager.io/cluster-issuer|cert-manager.io/cluster-issuer>: letsencrypt-production
        <http://nginx.ingress.kubernetes.io/ssl-redirect|nginx.ingress.kubernetes.io/ssl-redirect>: 'true'
        <http://nginx.ingress.kubernetes.io/custom-http-errors|nginx.ingress.kubernetes.io/custom-http-errors>: "404"
        <http://nginx.ingress.kubernetes.io/from-to-www-redirect|nginx.ingress.kubernetes.io/from-to-www-redirect>: "true"
        <http://nginx.ingress.kubernetes.io/preserve-trailing-slash|nginx.ingress.kubernetes.io/preserve-trailing-slash>: "true"
        <http://nginx.ingress.kubernetes.io/default-backend|nginx.ingress.kubernetes.io/default-backend>: ءءءء-web-service-development
        <http://nginx.ingress.kubernetes.io/use-regex|nginx.ingress.kubernetes.io/use-regex>: "true"
        <http://nginx.ingress.kubernetes.io/custom-http-errors|nginx.ingress.kubernetes.io/custom-http-errors>: "404"
    spec:
      tls:
      - hosts:
        - <http://oci.ءءءء.com|oci.xn--ggbaaa.com>
        secretName: tls-secret-ءءءء-prodd
      rules:
      - host: <http://oci.ءءءء.com|oci.xn--ggbaaa.com>
        http:
          paths:
          - path: /(.*)
            pathType: Prefix
            backend:
              service:
                name: ءءءء-web-service-development
                port:
                  number: 3000
    image.png
  • i

    important-night-82492

    07/17/2022, 10:59 AM
  • e

    eager-lawyer-9843

    07/18/2022, 10:49 PM
    When trying to import npm modules into
    aws.lambda.callbackFunction
    , I get an error. This has happened so far with
    yup
    ,
    zod
    ,
    joi
    and
    validator.js
    . Currently I am working on just the
    validator.js
    issue, which I will paste below:
    error: Error: Error serializing '() => { // const { object, string }  ...': main.js(1505,40)
    
        '() => { // const { object, string }  ...': main.js(1505,40): captured
          variable 'util_helpers_1' which indirectly referenced
            function 'get': main.js(2343,46): which captured
              variable 'm' which indirectly referenced
                '(countryCode) => { if (countryCode = ...': main.js(2240,33): which captured
                  'isISO31661Alpha3_1', a function defined at
                    function 'isISO31661Alpha3': main.js(1178,25): which captured
                      variable 'validISO31661Alpha3CountriesCodes' which indirectly referenced
                        function 'has': which could not be serialized because
                          it was a native code function.
    
        Function code:
          function has() { [native code] }
    Any guidance will help. I have been running into this issue for the last few days and cannot find a solution
    • 1
    • 3
  • s

    steep-fireman-60729

    07/18/2022, 11:06 PM
    So I have a question about stacks. What’s considered best practice for creating developer sandboxes? Our company is doing some work that involves event grid topics, subscriptions, queues, and some other resources that will not be shared across devs. Is it common practice to create one stack per developer? What about checking those into stack definitions into source control?
    v
    • 2
    • 8
  • b

    bulky-agent-73210

    07/19/2022, 8:49 AM
    I’m trying to get SES SMTP password from AWS Access Key, but API is rejecting my generated credentials. Since SES password is region-locked, how is the region selected when generating the resource? https://www.pulumi.com/registry/packages/aws/api-docs/iam/accesskey/#sessmtppasswordv4_go
    b
    • 2
    • 2
  • s

    shy-dentist-79386

    07/20/2022, 3:02 AM
    Hi, can we set config from code?? I found Config.get but didn’t see Config.set
    l
    • 2
    • 17
  • s

    shy-dentist-79386

    07/20/2022, 7:51 AM
    Hi, another question. I found in js code generated by
    pulumi.runtime.serializeFunction()
    is in non-strict mode. can we make it generated code that can be run in strict-mode??
Powered by Linen
Title
s

shy-dentist-79386

07/20/2022, 7:51 AM
Hi, another question. I found in js code generated by
pulumi.runtime.serializeFunction()
is in non-strict mode. can we make it generated code that can be run in strict-mode??
View count: 13