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

    chilly-crayon-57653

    06/12/2018, 5:01 PM
    except insread of billingfeatures, you use the ARM stuff for search
  • c

    chilly-crayon-57653

    06/12/2018, 5:02 PM
    here's a search snippet from a similar example
  • c

    chilly-crayon-57653

    06/12/2018, 5:03 PM
    // Search Service const search = new azure.search.Service (deploymentId, { resourceGroupName: resourceGroup.name, location : resourceGroup.location, sku : "standard", replicaCount: 1, partitionCount: 1, });
  • c

    chilly-crayon-57653

    06/12/2018, 5:03 PM
    we're still working on getting the azure E2E stuff out there and will think about your scenarios as we create
  • f

    flaky-continent-74538

    06/12/2018, 10:22 PM
    Okay, thanks @chilly-crayon-57653
  • b

    big-piano-35669

    06/12/2018, 11:01 PM
    @flaky-continent-74538 If you do figure this out, please let us know -- we're stumped over here! Most of the same properties available in ARM seem to be on our resource projection, but I can't seem to figure out where one would add credentials.
  • b

    big-piano-35669

    06/12/2018, 11:01 PM
    https://docs.pulumi.com/reference/pkg/nodejs/@pulumi/azure/search/#Service
  • f

    flaky-continent-74538

    06/12/2018, 11:56 PM
    @big-piano-35669 ARM has list helper functions: https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-group-template-functions-resource#listkeys-listsecrets-and-list
  • f

    flaky-continent-74538

    06/12/2018, 11:57 PM
    It looks like you can use these functions inside of ARM templates: https://stackoverflow.com/questions/33225678/arm-how-can-i-get-the-access-key-from-a-storage-account-to-use-in-appsettings
  • f

    flaky-continent-74538

    06/12/2018, 11:59 PM
    I see that the Azure Portal hits this endpoint to load my service's keys: /subscriptions/<subscription>/resourcegroups/<resource-group>/providers/Microsoft.Search/searchServices/<search-service/listAdminKeys /subscriptions/<subscription>/resourcegroups/<resource-group>/providers/Microsoft.Search/searchServices/<search-service>/listQueryKeys
  • b

    big-piano-35669

    06/13/2018, 2:05 AM
    Ah, I gotcha. Since Pulumi programs can do anything a real program could do, I suspect it's possible to do the equivalent of listKeys from inside of a program, but this would be specific to your program. We have the ability to give built-in resource functions that work across languages which this seems like a great candidate for (e.g., see https://docs.pulumi.com/reference/pkg/nodejs/@pulumi/azure/dns/#getZone).
  • b

    big-piano-35669

    06/13/2018, 2:06 AM
    Keep us posted and in the meantime, if you don't mind filing a feature request for a listKeys equivalent over at https://github.com/pulumi/pulumi-azure, we will make sure this gets attention.
    👍 1
  • a

    adamant-restaurant-73893

    06/13/2018, 5:27 PM
    A reminder that we will be streaming at 11am PDT this morning. https://twitter.com/PulumiCorp/status/1006923522046922760
  • a

    adamant-restaurant-73893

    06/13/2018, 8:25 PM
    If you missed this morning's session from @big-piano-35669, it's now available on YouTube. Marvel at the deep dive, but mainly that we managed to do scene transitions!

    https://www.youtube.com/watch?v=YMAe59BYzm4▾

  • a

    able-eye-75940

    06/16/2018, 6:34 PM
    <!channel> Hi folks! We have a new Pulumi release for you, with lots of new features! 🎉 In
    0.14.0
    , we have a brand new
    aws-serverless
    package, which provides more control over API Gateway and Lambda, as compared to
    @pulumi/cloud
    . But, my favorite change in this release is that Lambda upload sizes are now much smaller. Instead of uploading all
    node_modules
    (which could be around 50MB zipped), we now upload the modules you actually use, making the upload just a few KB in the common case. This means that it’s faster to deploy functions, and cold start times are reduced. You can see all changes here: https://pulumi.io/install/changelog.html. We also have a new home for our docs site: https://pulumi.io/, with a new look and feel. Check it out and tell us what you think! To install the latest version, do
    curl -fsSL <https://get.pulumi.com> | sh
    or follow the steps at https://pulumi.io/install/. We’re looking forward to your feedback!
    💯 1
  • f

    flaky-continent-74538

    06/17/2018, 6:37 AM
    Hey, the DNS record for https://www.pulumi.io/ seems to be broken
    b
    • 2
    • 1
  • f

    flaky-continent-74538

    06/17/2018, 7:11 AM
    Also, I'm running into some difficulties using Pulumi with Azure. If I run
    pulumi update
    I get:
    PS D:\Code\pulumi-test> pulumi update
    Previewing update of stack 'pulumi-test'
    error: failed to load resource plugin azure: no resource plugin 'azure' found in the workspace or on your $PATH
    I tried fixing this with
    npm install @pulumi/azure
    , but that didn't work:
    PS D:\Code\pulumi-test> npm install @echoing-match-29901/azure
    > @echoing-match-29901/azure@0.14.0 install D:\Code\pulumi-test\node_modules\@pulumi\azure
    > pulumi plugin install resource azure v0.14.0
    info: [resource plugin azure-0.14.0] installing
    error: [resource plugin azure-0.14.0] downloading from https://api.pulumi.com: failed to download plugin: [404] 404 page not found
    I tried to run the plugin install command directly, but that also doesn't work:
    PS D:\Code\pulumi-test> pulumi plugin install resource azure v0.14.0
    info: [resource plugin azure-0.14.0] installing
    error: [resource plugin azure-0.14.0] downloading from https://api.pulumi.com: failed to download plugin: [404] 404 page not found
    Any ideas? Also, this Azure installation guide doesn't say anything about installing an azure plugin: https://pulumi.io/install/azure.html. Should that be added in?
    b
    b
    • 3
    • 14
  • b

    big-piano-35669

    06/17/2018, 2:35 PM
    I am able to reproduce this, the plugin did not seem to get published correctly. I'll follow up with the team and get back to you.
  • s

    stocky-spoon-28903

    06/17/2018, 4:41 PM
    Hi all, I've been looking at Pulumi after Dave Remy introduced me to it (I'm an ex-maintainer of Terraform Core, and a current (now community) maintainer of the AWS TF provider, hence the interest). Looks like you've done a great job here - I'm looking forward to playing with it more!
    👋 2
  • b

    big-piano-35669

    06/17/2018, 5:52 PM
    Welcome! Glad to hear you're liking what you see, excited to hear what you think after playing a bit. We just tidied up the Terraform-related docs (see https://github.com/pulumi/pulumi-terraform) in case you want to dig into how it works. For AWS, this is where the interesting stuff begins 🙂 https://github.com/pulumi/pulumi-aws/blob/master/resources.go
  • s

    stocky-spoon-28903

    06/17/2018, 6:06 PM
    Am I missing something with regard to GitHub? Both those links 404 and the only repo I see listed under
    pulumi
    is the examples one?
    b
    • 2
    • 6
  • b

    big-piano-35669

    06/17/2018, 6:17 PM
    Ah, we manually add folks to GitHub anytime someone accepts an invite link (until we are live -- very soon!), so let me invite you now.
  • s

    stocky-spoon-28903

    06/17/2018, 6:19 PM
    Ah, 👍, thanks for clarifying
  • l

    late-beach-61374

    06/18/2018, 3:20 PM
    hello, I seem to have hit a snag right out of the gate, running
    pulumi new [project-name]
    produces
    error: downloading template 'hello-aws' from <https://api.pulumi.com>: failed to download template: [404] 404 page not found
  • b

    bitter-oil-46081

    06/18/2018, 3:21 PM
    Yikes! We’ll take a look right now.
  • b

    bitter-oil-46081

    06/18/2018, 3:24 PM
    FWIW, the source for all the templates is here https://github.com/pulumi/templates/tree/master/templates/
  • b

    bitter-oil-46081

    06/18/2018, 3:25 PM
    Possible that we have some out of date documentation and the template is actually named hello-aws-javascript? If you run pulumi new with no arguments it will give you a list of all templates.
  • m

    microscopic-pilot-97530

    06/18/2018, 3:30 PM
    @late-beach-61374, I think the name of the template is
    hello-aws-javascript
    b
    • 2
    • 2
  • l

    late-beach-61374

    06/18/2018, 3:40 PM
    doh! the heck did I get hello-aws from...
  • m

    microscopic-pilot-97530

    06/18/2018, 3:41 PM
    You can also just run
    pulumi new
    and it will give you a list of available templates to choose from.
    b
    b
    b
    • 4
    • 9
Powered by Linen
Title
m

microscopic-pilot-97530

06/18/2018, 3:41 PM
You can also just run
pulumi new
and it will give you a list of available templates to choose from.
b

breezy-stone-91833

06/18/2018, 3:43 PM
is it possible to create our own templates within our account? thx 🙂
b

bitter-oil-46081

06/18/2018, 3:52 PM
@microscopic-pilot-97530 would know for sure. I think it's possible for you to create a template locally and then be able to
pulumi new
that, but we don't have a great way of sharing templates today. Does seem like something we should add however, do you mind opening an issue at https://github.com/pulumi/pulumi ?
👍 1
m

microscopic-pilot-97530

06/18/2018, 4:08 PM
It's possible to create and use local "offline" templates today, but the experience is a bit rough around the edges. I'd be happy to share more info, if you're interested. Though, as @bitter-oil-46081 says, we don't have a great way to share these currently. Being able to create templates within your Pulumi account is an excellent suggestion!
👍 1
If it's something public that would have broader appeal, we're definitely open to suggestions and PRs at https://github.com/pulumi/templates.
b

breezy-stone-91833

06/18/2018, 4:10 PM
@bitter-oil-46081 @microscopic-pilot-97530 https://github.com/pulumi/pulumi/issues/1527
m

microscopic-pilot-97530

06/18/2018, 4:10 PM
👍💯
b

breezy-stone-91833

06/18/2018, 4:11 PM
I haven’t had a chance to see the other issues. Let me know if the format could be improved.
b

big-piano-35669

06/18/2018, 6:36 PM
I love this idea. I did want to mention that an alternative way to share code amongst your teams is to use packages, rather than templates. A template will end up "copy and pasted", whereas a package lets you depend on it and version it. A good example of this in action is our AWS Infrastructure package, defined here https://github.com/pulumi/pulumi-aws-infra and published as https://www.npmjs.com/package/@pulumi/aws-infra.
It's very possible a template is better for your scenario, however I just wanted to mention this in case.
👍 1
View count: 1