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

    average-dream-51210

    06/14/2019, 3:15 AM
  • a

    average-dream-51210

    06/14/2019, 3:15 AM
    From my understanding, Pulumi uses Terraform under the hood which uses the aws cli?
    w
    • 2
    • 2
  • c

    chilly-analyst-14900

    06/14/2019, 12:35 PM
    I see .NET/C# language support is in the works. Is the right place to track progress on this PR? https://github.com/pulumi/pulumi/pull/2003
    t
    • 2
    • 6
  • c

    chilly-analyst-14900

    06/14/2019, 12:36 PM
    We use Cake extensively for our .NET Builds (https://cakebuild.net/ ) , so having .NET support would make a great fit for us
    👍 1
  • a

    abundant-airplane-93796

    06/14/2019, 1:52 PM
    anyone have a link to an example of creating a kubernetes secret containing a google service account key also created via pulumi?
  • b

    brave-salesmen-42327

    06/14/2019, 3:51 PM
    docker --tlsverify=false Is there a way to prevent TLS Verification in the pulumi api that builds docker containers? I have a VPN and no-VPN use cases, so I bind my docker-daemon to a virtual box network forwarded port so that I can execute the docker daemon commands while on VPN or not. In other words, my virtual box NAT network passes docker daemon port through from 127.0.0.1 to the docker machine IP. I protect the port with a fire wall at the host level, only allowing local traffic. The certs generated are only good for the IP address of the docker virtual machine. I can set DOCKER_* variables and an alias to execute
    docker
    as
    docker -tlsverify=false
    and it works, but doesn't work when a pulumi script is running. Any suggestions welcome, not limited to turning off TLS verification in the pulumi API calls to docker.
  • m

    most-judge-33290

    06/14/2019, 4:53 PM
    when configuring a Fargate service in pulumi where can you configure container port if it is not 80 ?
    const alb = new awsx.elasticloadbalancingv2.ApplicationLoadBalancer(
        "net-lb",
        {
          external: true,
          securityGroups: cluster.securityGroups
        }
      );
    
      const web = alb.createListener("web", { port: 80, external: true });
      
      // Step 4: Create a Fargate service task that can scale out.
      const appService = new awsx.ecs.FargateService("scolasticus_api", {
        cluster,
        taskDefinitionArgs: {
          container: {
            image: "scolasticus_api",
            cpu: 256 /*10% of 1024*/,
            memory: 256 /*MB*/,
            portMappings: [web]
          }
        },
        desiredCount: 1
      });
  • b

    big-piano-35669

    06/14/2019, 5:00 PM
    Reminder, we have a Crosswalk community call in an hour at 11am PT, joined by our AWS and Tableau partners. Apologies for the tech difficulties earlier in the week, it will happen this time! Hope to see you there.

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

    • 1
    • 1
  • d

    dazzling-memory-8548

    06/14/2019, 5:36 PM
    Hi all! I'm hoping someone could give me a quick sanity check before I file a bug report on something. I've noticed that attributes of resources that contain a secret value are not encrypted in the stack when the parent resource is exported. However, individual references to that attribute as export are encrypted. In both examples, the output is correctly masked. My expectation is that the secret never shows up in plaintext in the stack export in either case. Am I missing something?
    import * as pulumi from "@pulumi/pulumi";
    import * as docker from "@pulumi/docker";
    
    const config = new pulumi.Config("secrets-demo");
    const containerImage = config.requireSecret("containerImage");
    
    // This exposes the secret in the stack export.
    export const remoteImage = new docker.RemoteImage("myImage", {
      name: containerImage
    });
    
    const container = new docker.Container(
      "myContainer",
      {
        image: containerImage
      },
      {
        dependsOn: remoteImage
      }
    );
    
    // This correctly encrypts the secret.
    export const imageName = remoteImage.name;
    w
    g
    b
    • 4
    • 12
  • p

    proud-alarm-92546

    06/14/2019, 7:34 PM
    question: is the terraform
    lifecycle
    block actually supported? how would it be passed? a lot of docu references it, but I also realize that docu is generated from the tf docs. https://pulumi.io/reference/pkg/nodejs/pulumi/aws/ecs/
    You can utilize the generic Terraform resource lifecycle configuration block with ignore_changes to create an ECS service with an initial count of running instances, then ignore any changes to that count caused externally
    ...the example in the tf docs for this section shows the lifecycle block, but the example in the pulumi version lacks it, making me thing it's being excluded in the autogen somewhere.......
    w
    • 2
    • 18
  • b

    busy-umbrella-36067

    06/14/2019, 9:14 PM
    Is there an easy way to use the interfaces from the Pulumi TS Packages? We’re building internal API’s that abstract K8S Deployments and it would be great to have the interfaces used by Pulumi as inputs for some of our ComponentResources, for ex: https://github.com/pulumi/pulumi-kubernetes/blob/master/sdk/nodejs/types/input.ts#L12609-L12656
    w
    • 2
    • 1
  • n

    nice-airport-15607

    06/14/2019, 10:40 PM
    Is there a way to remove a resource before
    pulumi up
    ?
    c
    n
    • 3
    • 20
  • s

    sparse-tomato-56640

    06/15/2019, 4:53 PM
    I'm trying to get the organization name programmatically in order to use cross stack references without hardcoding. Is there an elegant way to approach this? Perhaps something similar to
    pulumi.getStack()
    ?
    b
    • 2
    • 3
  • a

    average-dream-51210

    06/16/2019, 12:50 AM
    Hm ran into this error when doing a pulumi update - Cognito gave me an error: https://github.com/terraform-providers/terraform-provider-aws/issues/8827
  • a

    average-dream-51210

    06/16/2019, 12:50 AM
  • a

    average-dream-51210

    06/16/2019, 3:07 AM
    Untitled.js
  • a

    average-dream-51210

    06/16/2019, 3:08 AM
    Hmm, I think i'm having a circular dependency problem. I'm trying to create a CognitoUserPool with a CognitoDomain and CognitoClient resource. CognitoDomain relies on CognitoUserPool Id, CognitoClient also relies on CognitoUserPool Id. However, there in the inviteEmailTemplate email string on the CognitoUserPool resource, the link relies on CognitoDomain and CognitoClient to construct the url so im using Pulumi.all.apply to construct it.
  • a

    average-dream-51210

    06/16/2019, 3:08 AM
    Here's a snippet that are in 3 seperate files
  • a

    average-dream-51210

    06/16/2019, 3:08 AM
    The error i'm getting is
    Error: Missing required property 'userPoolId'
    on the UserPoolDomain file
  • a

    average-dream-51210

    06/16/2019, 3:09 AM
    Is it because of a circular dependency?
    b
    • 2
    • 2
  • a

    average-dream-51210

    06/16/2019, 3:11 AM
    I tried putting
    a dependsOn: userPool
    in the userPoolDomain file but still no go
  • a

    average-dream-51210

    06/16/2019, 8:49 PM
    Just saw Pulumi.interpolate! Awesome!
  • g

    gifted-teacher-6458

    06/17/2019, 2:03 AM
    Could you give a class for Pulumi on Udemy? There are some classes about cloudformation on Udemy ( https://www.udemy.com/topic/aws-cloudformation/ ). It's easier for beginner to learn new techniques on that kind platform.
    🤔 1
    👍 3
    t
    • 2
    • 1
  • c

    cold-coat-35200

    06/17/2019, 8:38 AM
    hi, is it possible to get the stack state for a previous update/refresh? Or a previous point in time? Would be useful when something went wrong during an update or reset a refresh
    w
    • 2
    • 1
  • l

    limited-rainbow-51650

    06/17/2019, 10:03 AM
    Hello @bitter-oil-46081 , in the blog article “Managing Secrets with Pulumi”, could you add bullets to the different ways to create secrets in section “Output and Secrets”?
  • t

    thousands-telephone-86052

    06/17/2019, 4:37 PM
    Hello folks, thanks for creating this framework. We are exploring using it for managing kubernetes (eks) clusters and deployments. I added a PR for some small enhancements : https://github.com/pulumi/pulumi-eks/pull/159 - could someone please review and provide feedback? Thank you.
    w
    • 2
    • 1
  • b

    bored-river-53178

    06/17/2019, 6:21 PM
    is that somehow possible to use separate AWS credentials for Pulumi S3 state file access and for 'pulumi up' command? I've thought that 'pulumi login s3://...' actually logins to AWS account but it doesn't seem to be the case
    w
    • 2
    • 12
  • n

    nice-airport-15607

    06/17/2019, 6:34 PM
    has anyone ran into this
    UNKNOWN: failed to compute archive hash
    ?
    Figured this out btw.
    w
    • 2
    • 2
  • b

    big-glass-16858

    06/17/2019, 7:58 PM
    Hi there, is there a plan for a nomad provider ? https://www.terraform.io/docs/providers/nomad/index.html
    w
    • 2
    • 2
  • b

    bored-river-53178

    06/17/2019, 9:01 PM
    I need help with adapting awsx vpc example (https://pulumi.io/reference/crosswalk/aws/vpc/#getting-the-default-vpc) to work across multiple aws profiles
    -.ts
    w
    p
    l
    • 4
    • 23
Powered by Linen
Title
b

bored-river-53178

06/17/2019, 9:01 PM
I need help with adapting awsx vpc example (https://pulumi.io/reference/crosswalk/aws/vpc/#getting-the-default-vpc) to work across multiple aws profiles
-.ts
it seems that setting profile has no effect here
i see the output for the same vpc twice
looks like I've found the answer https://github.com/pulumi/pulumi-awsx/issues/314
the problem is - i am experiencing this with awsx v0.18.5, though the issue is supposed to be fixed in it
w

white-balloon-205

06/17/2019, 11:24 PM
cc @lemon-spoon-91807
p

proud-alarm-92546

06/18/2019, 12:11 AM
@bored-river-53178 just to be sure, you did
npm install
and all right? I set to a dev build earlier today and spent an hour trying to figure out why I wasn't seeing any change.......doh. 🙂
l

lemon-spoon-91807

06/18/2019, 12:57 AM
Well look when I get home tonight!
b

bored-river-53178

06/18/2019, 1:40 AM
I completely removed npm_modules and then installed them from scratch, that didn't help
after that I cloned awsx repo, built it, removed
node_modules/@pulumi/awsx/
and replaced it with freshly built files from
pulumi-awsx/nodejs/awsx/bin
(unfortunately I don't know how to replace npm module with the one built from master branch properly)
that didn't help either
l

lemon-spoon-91807

06/18/2019, 2:09 AM
There may have been multiple issues, and I may have closed one out incorrectly! Will find out in a bit
yes, i closed out the wrong bug.
will fix this one tonight
apologies
b

bored-river-53178

06/18/2019, 2:53 AM
no problem, thanks a lot for a quick response!
l

lemon-spoon-91807

06/18/2019, 3:39 AM
Fix: https://github.com/pulumi/pulumi-awsx/pull/332
still validating all scenarios
b

bored-river-53178

06/18/2019, 7:37 AM
do you know if there is a better way for me to use it, comparing to how I've done it before (manually replacing awsx module content from npm_modules)?
now the code snippet I provided initially produces this error message: Diagnostics: awsx❌ec2:Vpc (default-vpc): error: Duplicate resource URN 'urn😛ulumi:main::aws-infra::awsx:x:ec2:Vpc::default-vpc'; try giving it a unique name
probably related to https://github.com/pulumi/pulumi/issues/2647
Is there some general way to workaround https://github.com/pulumi/pulumi/issues/2647 ?
w

white-balloon-205

06/18/2019, 4:18 PM
I'll look into that issue today.
I've opened https://github.com/pulumi/pulumi-awsx/issues/335 which is the immediate cause of this. @lemon-spoon-91807 will be addressing as part of updating the PR above.
View count: 2