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

    big-island-38073

    10/07/2020, 6:20 PM
    I am trying to attend Cloud Engineering Summit. Unable to get into current session. Anyone have any ideas. (I am registered,...)
    b
    b
    • 3
    • 4
  • b

    best-garden-6174

    10/07/2020, 6:32 PM
    There are some registration issues affecting today’s workshop. You should be able to sign-in here if you are getting blocked by heysummit: If you’re still trying to join today’s workshop, please sign-in here: https://register.gotowebinar.com/register/3556611563132069136
    👍 2
  • l

    little-intern-43446

    10/07/2020, 7:00 PM
    👋 could anyone point me to a good example of deploying a JS GCP function using Pulumi that has requirements for node_modules as well as functions imported from local directories? all of the examples I've been able to find just have an inline closure for the GCP cloud function callback
  • q

    quick-city-76163

    10/07/2020, 8:03 PM
    Is there a way with a typescript dynamic provider to indicate to pulumi that a resource already exists when the
    pulumi up
    command is executed for the first time? I have a kubernetes resource that already exists that I want to apply a patch to. So the resource already exists, and I would like my dynamic provider to recognize whether or not the patch needs to be applied even on the first time
    pulumi up
    is executed
    s
    • 2
    • 4
  • a

    adamant-translator-31969

    10/07/2020, 8:33 PM
    Hello ...I want to encode string to base64... is it possible?
    w
    s
    • 3
    • 5
  • w

    worried-queen-62794

    10/07/2020, 9:43 PM
    What is the format for specifying configuration during
    pulumi up
    ? The docs say
    --config stringArray
    but what is
    stringArray
    ? A JSON array? Where each odd element is the key and each even element the value?
    c
    • 2
    • 1
  • q

    quick-city-76163

    10/07/2020, 9:44 PM
    Is there any documentation available on how to write a new provider for go?
  • e

    elegant-island-39916

    10/07/2020, 10:54 PM
    Hi, I am refactoring my code and have moved a K8s namespace from one
    pulumi.ComponentResource
    to another, requiring it to be deleted and created once more. The problem is, Pulumi schedules the creation of this namespace first before deleting the old one of the same name. Resulting in this error:
    resource ci was not successfully created by the Kubernetes API server : namespaces "ci" already exists
    Is there a way to tell Pulumi that it should delete the previously existing namespace before creating a new one?
    l
    b
    b
    • 4
    • 10
  • a

    adventurous-garage-59192

    10/08/2020, 7:01 AM
    Is it possible to have the Pulumi github bot edit its message on each new preview within a PR instead of posting a new message every time? It generates a lot of noise on a busy branch, and doesn't fit in with the behavior of other bot integrations like Vercel & Cypress.
    g
    • 2
    • 2
  • w

    worried-queen-62794

    10/08/2020, 7:26 AM
    When importing a resource how can I tell which inputs do not match the existing resource? I get
    aws:route53:Zone (TlayenZone):
        warning: inputs to import do not match the existing resource; importing this resource will fail
    But I have no idea why it doesn't match.
    b
    • 2
    • 2
  • a

    astonishing-quill-88807

    10/08/2020, 12:22 PM
    I've got some code that is doing a conditional import of resources using boto3 and matching on managed tags. Unfortunately, that has a side effect that the managed tag never gets updated, so the ignored attributes are never updated. Is there any way to include in my conditional whether a given resource ID is already present in the Pulumi state file? Something along the lines of
    if resource.tags['pulumi_managed'] or pulumi_state[resource_id]: do stuff
    l
    • 2
    • 12
  • h

    happy-queen-35662

    10/08/2020, 2:41 PM
    Hi everybody 👋 quick q, I am sure I am missing something obvious. I have a config with many sites, each site has many domains, each domain has a bucket. In my program I allow users to define a path to the folder of the site they would like to put into the bucket for each domain. the paths might looks something like this
    ../package-a/public
    ../package-b/public
    . Thing is when I go through bucket objects in those folders I want to remove the '../package/pubic' from the file name else, strangely (for me at least) I get an error about incorrect region of the bucket. Anyhow, I end up with names for objects that will be duplicated. for example
    index.html
    for objects that will go into A and B buckets. The thing is I was like "ok, I will add some ident to the start so the path in the buckets will be
    ident/index.html
    " however that also will not work as for a website bucket the index doc must be at the root of the folder. I guess the tldr issue I have is, how can I have two bucket objects with the path as index.html into two different buckets if the name prop of bucket object is also the path it will create in the bucket? I am also using pulumi aws on typescript if that helps
    w
    • 2
    • 7
  • b

    broad-dog-22463

    10/08/2020, 3:34 PM
    message has been deleted
  • m

    many-spring-73557

    10/08/2020, 4:41 PM
    Hey there, I hit
    ctrl-c
    in the middle of a
    pulumi up
    , and it apparently removed the stack state (similar to https://pulumi-community.slack.com/archives/C84L4E3N1/p1596230652357900). I am now trying to
    pulumi stack import
    from one of the many files in
    .pulumi/backups/<my stack>
    but get the error:
    error: could not deserialize deployment: unexpected end of JSON input
    . Logging to stderr gives a tiny bit more info:
    main.checkDeploymentVersionError
    . I’m using GCP w/ google storage as the state backend.
    jq
    parses the file fine. Any ideas why I wouldn’t be able to import a backup? Is there any documentation on restoring from backups? I couldn’t find any on the docs site. All the resources still exist in GCP - I’m hoping there’s a way to reconnect pulumi to them
  • c

    curved-waitress-45592

    10/08/2020, 5:26 PM
    We are facing a state consistency issue when we delete kafka topics. If the topic has a lot of partitions, it may take a while to effectively delete the topic and a timeout can occur (I think it's set to 30s). Eventually Kafka will delete the topic in the background, but Pulumi will still think the topic exist. Next time pulumi destroy is called it will try to delete the topic, but it fails as the topic does not exist anymore.
  • c

    curved-waitress-45592

    10/08/2020, 5:26 PM
    what is the best way to deal with such an issue?
    f
    • 2
    • 1
  • w

    worried-queen-62794

    10/08/2020, 8:30 PM
    Is it possible to create a resource and then delete it as part of the same update? I want to create a temporary SSH RSA key, use a custom provisioner to SSH to the instance and replace the key with an ED25519 key (which the stupid AWS API doesn't let me specify), then delete the original key?
    l
    • 2
    • 4
  • t

    tall-needle-56640

    10/08/2020, 8:44 PM
    How do I increase verbosity for
    ~\Source\pulumi> pulumi plugin install resource azure v3.20 -v 3?
    ? It errors out for me: "An error occurred: unknown shorthand flag: 'v' in -v".
    --verbose
    gives same results.
    l
    b
    • 3
    • 16
  • w

    worried-queen-62794

    10/08/2020, 10:45 PM
    I copied the custom provisioner example and it was adding the results to the inputs which is annoying as it would considered it to be changed every time. I tried modifying the example to remove that property from the inputs but it is still there. When I check the resource in the console it is there too. How can I get rid of it?
    • 1
    • 1
  • b

    blue-pilot-69163

    10/09/2020, 3:09 AM
    Hello everyone, I just started using Pulumi. The coolest DevOps tool I've seen so far. Glad to join the community.
    🎉 3
    b
    • 2
    • 2
  • e

    enough-oil-63049

    10/09/2020, 3:18 AM
    welcome!
  • b

    blue-pilot-69163

    10/09/2020, 3:38 AM
    Thanks!
  • p

    prehistoric-arm-87050

    10/09/2020, 3:58 AM
    I am blown away with the depth and breadth of Pulumi, the awesome speakers and presenters and the Cloud Engineering Summit in general - Great job, and thank you!
    b
    • 2
    • 2
  • w

    worried-queen-62794

    10/09/2020, 7:01 AM
    Any idea what this error is talking about?
    error: Exception calling application: Object of type Unknown is not JSON serializable
    Debug logging doesn't really help.
    l
    • 2
    • 20
  • l

    late-ghost-74230

    10/09/2020, 10:18 AM
    Hello 👋 first day user here. I just created a S3 bucket with
    pulumi up
    . I am evaluating Pulumi to use it inside the reconciliation loop of a K8s controller. Do you think this is a good use case for it?
    l
    g
    • 3
    • 8
  • m

    mammoth-journalist-45153

    10/09/2020, 12:45 PM
    Hi all, would appreciate any reference or direction to solve an issue, in which pulumi recreates a resource (dynamodb global secondary index) on every deployment again and again and that takes a very long time. Is there a way to debug why the state isn't being stored or used and why pulumi recreates the index over and over again?
    c
    • 2
    • 2
  • c

    colossal-plastic-46140

    10/09/2020, 1:35 PM
    Hi Folks, I think it was mentioned yesterday in the summit, that there will be a CLI of sorts for importing existing assets, is there anything public that can be shared about this?
    b
    • 2
    • 4
  • p

    prehistoric-arm-87050

    10/09/2020, 2:12 PM
    for ‘DigitalOcean k8s’ I’m assuming it’s just a regular kubenetes API call
    b
    • 2
    • 5
  • p

    prehistoric-arm-87050

    10/09/2020, 2:16 PM
    anyone here, able to help get one on the github CodeSpaces beta, or did that ship sail already?
  • l

    loud-egg-62954

    10/09/2020, 4:29 PM
    Hey folks--I have a Rancher cluster that's properly configured, up, reachable, etc. Yet when I try to use the rancher2 integration, I'm getting back a "rancher is not ready". I've configured the rancher url, access key, and secret key
    b
    • 2
    • 13
Powered by Linen
Title
l

loud-egg-62954

10/09/2020, 4:29 PM
Hey folks--I have a Rancher cluster that's properly configured, up, reachable, etc. Yet when I try to use the rancher2 integration, I'm getting back a "rancher is not ready". I've configured the rancher url, access key, and secret key
b

billowy-army-68599

10/09/2020, 4:34 PM
hey! when you say "rancher cluster" do you mean rancher running on a Kubernetes cluster, or a Kubernetes cluster specifically?
l

loud-egg-62954

10/09/2020, 4:35 PM
I have a HA k3s cluster up and routable (https://admin.motorefi.cloud)
I've created an API key, and I've configured the RANCHER_URL to be https://admin.motorefi.cloud/v3
(I've tried several permutations of that, too)
b

billowy-army-68599

10/09/2020, 4:37 PM
did you install rancher on the cluster?
k3s != rancher
l

loud-egg-62954

10/09/2020, 4:37 PM
Yes, Rancher is installed there
b

billowy-army-68599

10/09/2020, 4:37 PM
oh I see, you did
the
ping
url is returning okay, so it looks to be okay
can you redact any secrets and share the code you're using to connect to rancher?
l

loud-egg-62954

10/09/2020, 4:41 PM
new Setting('hello', {
    value: 'world',
  })
The RANCHER_URL, RANCHER_ACCESS_KEY, and RANCHER_SECRET_KEY are set as environment variables right now
Since this is exploratory I can give you an API key
View count: 1