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
typescript
  • l

    limited-rainbow-51650

    07/18/2019, 10:01 PM
    After
    import
    -ing a resource, should the
    import
    option remain in my code?
  • g

    glamorous-waitress-51149

    07/23/2019, 8:56 AM
    is there a way to set the destination file/folder structure in an s3 bucket? For example:
    let object = new aws.s3.BucketObject(item, {
            bucket: bucket,
            source: new pulumi.asset.FileAsset(item),     // use FileAsset to point to a file
            contentType: mime.getType(item) || undefined, // set the MIME type of the file
            
            
        });
    g
    • 2
    • 1
  • g

    glamorous-waitress-51149

    07/23/2019, 8:57 AM
    the
    item
    is the path to a file on disk and that will be uploaded to S3 with that exact same folder structure which isn’t what i want. Just because it’s in a certain folder on my local disk doesn’t mean i want the same structure in S3
  • w

    worried-engineer-33884

    07/23/2019, 5:04 PM
    I am trying to understand this change: https://github.com/pulumi/pulumi-aws/commit/c7326150f724a852bdb96b5fe13deb2a0c8a1104#diff-1d75aaef6e18290ff391879cc61091d6R10 which changed the return type of
    getSecret
    from
    Promise<GetSecretResult>
    to
    Promise<GetSecretResult> & GetSecretResult
    . Turning this into an intersection type broke some of our code, and I'm not sure why this should be an intersection at all. Could someone enlighten me? Thanks!
    l
    m
    w
    • 4
    • 64
  • s

    stocky-spoon-28903

    07/23/2019, 6:58 PM
    @worried-engineer-33884 we’re in the process of adding synchronous versions of all of the data sources as well as asynchronous ones, I suspect it’s related to that, but I haven’t dug into the details of how that has been done, yet
  • s

    salmon-beard-79336

    07/25/2019, 2:01 PM
    How do I access the arguments that
    create
    has in the
    delete
    method as well?
    interface DynamicProviderInputs {
        region: string;
        endpoint: string;
        masterKey: string;
        collectionName: string;
        dbName: string;
        cosmosAccountName: string;
    }
    
    
        public async create(inputs: DynamicProviderInputs): Promise<pulumi.dynamic.CreateResult> {
            console.log('create: getting the client')
            const client = await this.getCosmosContainerClient(inputs.region, inputs.endpoint, inputs.masterKey, inputs.dbName);
    
    
        public async delete(id: string, props: DynamicProviderOutputs): Promise<void> {
    t
    • 2
    • 14
  • s

    salmon-beard-79336

    07/25/2019, 2:02 PM
    props
    in
    delete
    does not contain them, and they’re needed so I can initialize the client there too and do the delete action
  • b

    boundless-monkey-50243

    07/25/2019, 2:15 PM
    For automatically packaged lambdas, is there a way to work around that you can't capture native code functions? I have a powerful need to work with `Buffer`s. 😕 (Namely, I need
    zlib
    .)
    w
    • 2
    • 5
  • b

    big-hair-80287

    07/27/2019, 11:52 PM
    Hey there. I'm trying to understand how to get Pulumi to create a namespace when I'm applying a Kubernetes chart. I have the following image but I need the namespace to be created before the chart is deployed (since it is deployed in the namespace). I can't seem to find any examples of how to do this online.
    w
    • 2
    • 2
  • b

    big-hair-80287

    07/27/2019, 11:55 PM
    I'm also using VSCode and have no type completion - do I need to do anything special to get that in there?
    w
    • 2
    • 1
  • b

    billowy-needle-56870

    07/29/2019, 10:19 AM
    Hey there. I'm trying to create the an rds and ec2 instance. All it's fine, but when i try to pass th rds to the ec2 userData parameter, with createUserData I get the following error Calling [toString] on an [Output&lt;T&gt;]
    w
    • 2
    • 2
  • b

    billowy-needle-56870

    07/29/2019, 10:19 AM
  • b

    billowy-needle-56870

    07/29/2019, 10:20 AM
    What I'm doing wrong?
  • f

    fierce-cpu-94517

    07/29/2019, 1:52 PM
    Hitting an error creating an ALB with AWS crosswalk where it tries and fails to update an existing SG while I think it should not try to define new SG rules:
    Updating (mystack):
    
         Type                                                        Name                             Status                  Info
         pulumi:pulumi:Stack                                         private-cloud-mystack         **failed**              1 error
         └─ awsx:x:elasticloadbalancingv2:ApplicationLoadBalancer    web                                                      
     +      ├─ awsx:x:elasticloadbalancingv2:ApplicationTargetGroup  web                              created                 
     +      │  └─ aws:elasticloadbalancingv2:TargetGroup             web                              created                 
     +      ├─ awsx:x:elasticloadbalancingv2:ApplicationListener     web-listener                     created                 
     +      │  ├─ awsx:x:ec2:IngressSecurityGroupRule                web-listener-external-0-ingress  created                 
     +      │  │  └─ aws:ec2:SecurityGroupRule                       web-listener-external-0-ingress  **creating failed**     1 error
     +      │  └─ awsx:x:ec2:EgressSecurityGroupRule                 web-listener-external-0-egress   created                 
     +      │     └─ aws:ec2:SecurityGroupRule                       web-listener-external-0-egress   created                 
     +      └─ aws:elasticloadbalancingv2:LoadBalancer               web                              **creating failed**     1 error
     
    Diagnostics:
      aws:ec2:SecurityGroupRule (web-listener-external-0-ingress):
        error: Plan apply failed: [WARN] A duplicate Security Group rule was found on (sg-0d4db747a736ac640). This may be
        a side effect of a now-fixed Terraform issue causing two security groups with
        identical attributes but different source_security_group_ids to overwrite each
        other in the state. See <https://github.com/hashicorp/terraform/pull/2376> for more
        information and instructions for recovery. Error message: the specified rule "peer: 0.0.0.0/0, TCP, from port: 443, to port: 443, ALLOW" already exists
    g
    • 2
    • 9
  • s

    salmon-beard-79336

    07/30/2019, 2:10 PM
    How can I indicate
    SubscriptionRequired: false
    for an
    Api
    in an Azure
    Api Management Service
    ?
    j
    • 2
    • 4
  • h

    handsome-airport-56801

    08/02/2019, 6:58 PM
    I've created an ECS cluster in an existing VPC that has an ALB. I've also added 2 Fargate services to that cluster. (I need 2 services instead of 1 because I need to scale each service differently.) Neither of the services are binding to the ALB through the associated target group. How do I need to configure the FargateService in order for a server to bind to the ALB?
    f
    s
    • 3
    • 5
  • t

    thankful-optician-22583

    08/02/2019, 9:15 PM
    Hi guys I have a simple question regarding pulumi for kubernetes. my application folder contains a dockerfile. I am able to build an image and push to ecr using "@pulumi/docker". My challenge comes when I use "@pulumi/kubernetes", and I want to access that image that I put in ECR. How do i make sure that the Deployment can access the image? I am not sure if it is trying to access DockerHub vs ECR.
    h
    • 2
    • 1
  • g

    glamorous-waitress-51149

    08/05/2019, 8:34 AM
    can anyone see anything wrong with this? it creates the rule when i look in aws console but there is no target
  • g

    glamorous-waitress-51149

    08/05/2019, 8:35 AM
    const eventRule = new aws.cloudwatch.EventRule(prefix + "ping-rule", {
        name: prefix + "ping-rule",
        scheduleExpression: "rate(3 minutes)"
    });
    
    const eventTarget = new aws.cloudwatch.EventTarget(prefix + "ping-target", {
        rule: eventRule.name,
        arn: apiLambda.arn,
        input: "foo"
    });
  • g

    glamorous-waitress-51149

    08/05/2019, 8:37 AM
    i see there are sqsTarget, batchTarget, ecsTarget but no lambda targets, is something missing in the apis available here? @broad-dog-22463 @stocky-spoon-28903
  • b

    broad-dog-22463

    08/05/2019, 8:38 AM
    can you try and change this ?
  • g

    glamorous-waitress-51149

    08/05/2019, 8:38 AM
    yup
  • b

    broad-dog-22463

    08/05/2019, 8:38 AM
    ${prefix}ping-target
  • b

    broad-dog-22463

    08/05/2019, 8:38 AM
    instead of the concat in the EventTarget name
  • g

    glamorous-waitress-51149

    08/05/2019, 8:39 AM
    can do but our whole script uses the concat and works ok but i can see if it makes a diff here
  • b

    broad-dog-22463

    08/05/2019, 8:39 AM
    ah ok
  • b

    broad-dog-22463

    08/05/2019, 8:39 AM
    if that's a standart thing then it's ok
  • b

    broad-dog-22463

    08/05/2019, 8:39 AM
    but you get no error here right?
  • g

    glamorous-waitress-51149

    08/05/2019, 8:40 AM
    👍 just wonder if there should be a
    lambdaTarget
    property like there is for the others I mentioned
  • b

    broad-dog-22463

    08/05/2019, 8:40 AM
    so those are types we create AFAICR
Powered by Linen
Title
b

broad-dog-22463

08/05/2019, 8:40 AM
so those are types we create AFAICR
View count: 1