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

    ambitious-ram-5811

    11/02/2019, 2:48 AM
    Any other type and you get this extremely specific and useful error message 😕
  • t

    tall-librarian-49374

    11/02/2019, 7:34 AM
    @ambitious-ram-5811 You can also generate an ssh key inside your program with `pulumi-tls`: https://github.com/pulumi/examples/blob/master/azure-ts-aks-keda/cluster.ts#L32-L35
  • a

    ambitious-ram-5811

    11/02/2019, 7:35 AM
    Now that is handy
  • a

    ambitious-ram-5811

    11/02/2019, 7:35 AM
    I'm over here generating them by hand like a sucker! 😅
  • w

    witty-yacht-82771

    11/03/2019, 12:12 PM
    Question: is there a best/cleanest way to handle the pattern of conditionally creating resources? For example, my
    dev
    and
    prod
    stacks might deploy an RDS instance, while my
    test
    stack just provisions a small EC2 server running Postgres. The resources deployed in the cloud are totally different, but everything else in the db infrastructure is the same.
    b
    • 2
    • 3
  • e

    early-intern-90238

    11/03/2019, 10:19 PM
    Kubernetes: So If I try to set the min in my HPA I get an error, and the comment on intellisense says I need to enable HPAScaleToZero feature gate?
    • 1
    • 1
  • m

    magnificent-petabyte-57952

    11/04/2019, 12:56 AM
    Azure func question: do you know how to manage existing Azure function with pulumi? I have tried to use
    import
    but I am getting
    error: Plan apply failed: A resource with the ID "/subscriptions/02bc198f-4492-4ee8-adaf-ca7c5dbf4c16/resourceGroups/TDW-NPE-DEV-ARG-PaymentService/providers/Microsoft.Web/sites/TDW-NPE-DEV-APP-PayInSub" already exists - to be managed via Terraform this resource needs to be imported into the State. Please see the resource documentation for "azurerm_function_app" for more information.
    w
    • 2
    • 1
  • b

    breezy-butcher-78604

    11/04/2019, 3:18 AM
    hi all, trying to create some resources inside an AWS VPC defined by another stack. I’m using the
    awsx.ec2.Vpc.fromExistingIds()
    method but can’t quite figure out how to supply the right IDs. here’s what I’ve got so far:
    function toArray<T>(v: T | T[]) {
        return Array.isArray(v) ? v : [v];
    }
    
    const cfg = new pulumi.Config();
    
    // Grab the VPC ID from the existing VPC stack
    const vpcStack = new pulumi.StackReference(cfg.require("vpcStack"));
    
    // Now create a VPC object from the id
    const vpc = awsx.ec2.Vpc.fromExistingIds("vpc", {
        vpcId: vpcStack.getOutput("vpcId"),
        publicSubnetIds: toArray(vpcStack.getOutput("publicSubnetIds"))
    });
    however when running pulumi up, i get the below error message. I’m pretty new to typescript so my guess is I’m not handling the
    Output<T>
    type returned from
    getOutput()
    properly. the output should be an array of subnet IDs, eg:
    [
        "subnet-abcdefg123456",
        "subnet-foobah12345",
        "subnet-blahblahblah"
    ]
    however it appears its not making it through properly.
    t
    • 2
    • 4
  • w

    wide-dress-96388

    11/04/2019, 6:36 AM
    Hi all 🙂 I'm trying to move an existing project from my personal organization to another organization, is there a way to do that from the console/CLI? couldn't find it 😞
    c
    • 2
    • 2
  • b

    bulky-businessperson-73745

    11/04/2019, 5:18 PM
    Pretty new to both gcp and pulumi (coming from an aws/serverless framework background fwiw). It looks like the
    HttpCallbackFunction
    is meant to serve as an abstraction over the regular
    gcp.cloudfunctions.Function
    resource. Am I correct in assuming that only the latter allows for customization of the node runtime, available memory, etc.?
    t
    • 2
    • 6
  • b

    busy-umbrella-36067

    11/04/2019, 6:37 PM
    Is there any way to not
    create/replace
    when the resources provider changes? We use the output from an EKS cluster to build a k8s provider, anytime the CloudFormation stack is modified all of the Helm chart resources are slated for deletion.
    w
    g
    • 3
    • 3
  • w

    witty-yacht-82771

    11/04/2019, 6:58 PM
    What option should I pass to my EC2 instances/VPCs so that their logs will be accessible from
    pulumi logs
    ? Been digging around in docs but can’t find it. Thanks!
  • w

    worried-engineer-33884

    11/04/2019, 7:13 PM
    Is there a way to get a stack export from the pulumi backend over an api call? (vs using the cli)
    c
    w
    • 3
    • 11
  • t

    thankful-optician-22583

    11/04/2019, 8:15 PM
    Guys when I create a Service type using the k8s provider I find that pulumi appends a unique ID to my service name
    s
    t
    c
    • 4
    • 6
  • h

    high-morning-18773

    11/04/2019, 11:06 PM
    ACM cert validation request does not get created. Can some one please take a look. i get error
    AttributeError: 'dict' object has no attribute 'resourceRecordName'
    Here is the code
    useast1 = aws.Provider("useast1", region="us-east-1")
    
    zone = aws.route53.get_zone(
        name="<http://testabc.com|testabc.com>",
        private_zone=False
    )
    
    appcert = aws.acm.Certificate(
        "snorkel-dev-cert",
        domain_name="<http://testabc.com|testabc.com>",
        validation_method="DNS",
        __opts__=pulumi.ResourceOptions(provider=useast1)
    )
    
    certvalidaton_dns = aws.route53.Record(
        "cert-validation-reocord",
        name=appcert.domain_validation_options[0].resourceRecordName,
        records=appcert.domain_validation_options[0].resourceRecordValue,
        type=appcert.domain_validation_options[0].resourceRecordType,
        zone_id=zone.zone_id
    )
    
    appcert_validation = aws.acm.CertificateValidation(
        "app-cert-validation",
        certificate_arn=appcert.arn,
        validation_record_fqdns=certvalidaton_dns.fqdn
    )
    w
    • 2
    • 2
  • m

    most-parrot-35986

    11/05/2019, 7:44 AM
    I'm trying to figure out why I keep getting a Pulumi error
    TypeError: Cannot read property 'kubeconfig' of undefined
    . The documentation and code examples suggests I should have access to the kubeconfig and provider from the output. Can I get someone to take a look at see if I just missed something here? Much appreciated.
    // Create method in EKS class
    async createEksCluster (networking) {
      try {
        const cluster = new eks.Cluster(this.clusterName, {
          endpointPrivateAccess: this.apiPrivateAccess,
          endpointPublicAccess: this.apiPublicAccess,
          skipDefaultNodeGroup: true,
          version: this.version,
          vpcId: networking.apply(network => network.vpcId),
          subnets: networking.apply(network => network.publicSubnetIds),
          nodeAssociatePublicIpAddress: false,
          deployDashboard: false,
          tags: {
            stack: this.stack
          }
        })
        return cluster
      } catch (error) {
        Error(error)
      }
    }
    
    // Calling function
    const cluster = await eks.createEksCluster(networking)
    
    // Combining output into usable inputs for other modules
    const composite = pulumi.all([
      cluster.kubeconfig,
      cluster.provider,
      cluster.core.instanceProfile
    ]).apply(([
      kubeconfig,
      provider,
      instanceProfile
    ]) => {
      return {
        kubeconfig: kubeconfig,
        provider: provider,
        instanceProfile: instanceProfile
      }
    })
    b
    w
    • 3
    • 5
  • r

    red-football-97286

    11/05/2019, 10:59 AM
    Are there any issues with pulumi 1.4.1 and Python 3.8?
  • r

    red-football-97286

    11/05/2019, 10:59 AM
    Getting the following error,
    ERROR: Failed building wheel for grpcio
      Running setup.py clean for grpcio
    Failed to build grpcio
    Installing collected packages: protobuf, grpcio, dill, pulumi, semver, attrs, arpeggio, parver, pulumi-aws
        Running setup.py install for grpcio ... error
        ERROR: Command errored out with exit status 1:
    w
    • 2
    • 2
  • b

    better-actor-92669

    11/05/2019, 4:08 PM
    Hello Pulumi community! Is there a way to enable
    Kubernetes Engine API has not been used in project
    from pulumi itself?
    b
    • 2
    • 2
  • h

    high-morning-18773

    11/05/2019, 6:38 PM
    Hello, Is there a github provider i am creating webhooks for codepipeline. It gets created on codepipline but need to create the webhook on github.
    h
    m
    • 3
    • 2
  • b

    busy-dream-44660

    11/05/2019, 6:47 PM
    I'm having an issue where the CLI just hangs on
    pulumi up
    I've had a coworker test and he is able to run
    up
    on my stack using files from my branch. Our working dirs are identical. Any idea why mine's hanging? I'll run with verbosity cranked up and add to this as a thread.
    w
    c
    • 3
    • 8
  • c

    cool-egg-852

    11/05/2019, 9:17 PM
    I think the bug I reported a while back is happening again. If you remove someone from your GitHub organization, their seat isn’t freed. We have 2 seats showing as used but only 6 people listed under active members.
    g
    c
    • 3
    • 3
  • b

    bright-apple-15972

    11/06/2019, 3:45 PM
    Hello! can someone take look at https://github.com/pulumi/pulumi-eks/issues/273 and let me know if there's a workaround or if more info is necessary? tia.
  • b

    brave-angle-33257

    11/06/2019, 7:31 PM
    what’s going on here?
    deploy@274beb9a1c53:/data/pulumi/infra/aws/collector-s3$ pulumi stack rm --force MyCompany/us-east-2-prod
    error: no stack named 'MyCompany/us-east-2-prod' found
    deploy@274beb9a1c53:/data/pulumi/infra/aws/collector-s3$ pulumi stack rm --force us-east-2-prod
    error: no stack named 'us-east-2-prod' found
    deploy@274beb9a1c53:/data/pulumi/infra/aws/collector-s3$ pulumi stack init MyCompany/us-east-2-prod
    error: stack 'us-east-2-prod' already exists
    c
    b
    • 3
    • 14
  • i

    incalculable-engineer-92975

    11/06/2019, 8:31 PM
    I have a question about this error message: "extensions/v1beta1/Ingress is not supported by Kubernetes 1.16+ clusters. Use networking/v1beta1/Ingress instead". If I change from extensions to networking, will that still work in k8s 1.14?
    g
    • 2
    • 1
  • i

    incalculable-engineer-92975

    11/06/2019, 8:32 PM
    IOW, will it auto-select the appropriate resource based on the target?
    g
    • 2
    • 2
  • g

    gentle-garage-52880

    11/06/2019, 9:18 PM
    Is there a way to call
    pulumi up
    inside of the code via node?
  • g

    gentle-garage-52880

    11/06/2019, 9:18 PM
    or is that not proper practice? New here. Hi!
  • e

    early-musician-41645

    11/06/2019, 10:09 PM
    I'm doing
    new aws.ec2.Instance
    but I don't see how to set the instance name (i.e. the name column that shows up in the AWS ec2 console). It defaults to an empty name. Any ideas on how to get that set in the
    Instance
    resource?
  • c

    cool-egg-852

    11/06/2019, 10:10 PM
    You need to create a
    tag
    with
    Name
    as the key.
    👍 3
Powered by Linen
Title
c

cool-egg-852

11/06/2019, 10:10 PM
You need to create a
tag
with
Name
as the key.
👍 3
View count: 1