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

    salmon-account-74572

    09/18/2020, 6:29 PM
    I'm assuming this shouldn't be a problem but thought I'd check just in case: is there any issue with mixing languages across stacks? I'd like to use TypeScript but with a StackReference to a stack created using Go.
    g
    b
    • 3
    • 3
  • h

    hallowed-beach-15050

    09/18/2020, 6:50 PM
    Does anyone have a good pattern for applying resources across multiple regions and multiple accounts in aws? I am spinning up security hub and config… ends up eating all the memory
    a
    • 2
    • 1
  • i

    important-appointment-55126

    09/18/2020, 7:09 PM
    i just use a loop in a loop and create a provider for each (account, region) tuple and define the resources for each
  • w

    worried-sandwich-8337

    09/18/2020, 7:19 PM
    Speed up GitHub Actions CICD with caching: what are the best practices? I've followed https://www.pulumi.com/docs/guides/continuous-delivery/github-actions/ and things are working fine (pulumi preview for PR and pulumi up for push to master). The challenge is pulumi preview is taking 6 minutes and pulumi up is taking 14 minutes, even for the most minor change (e.g. changing the desiredCount for a Fargate service (I'm using AWS ECS)). It seems that all the containers are built from scratch, and the task definitions are replaced, even when nothing changed. Advice is greatly appreciated!
    c
    f
    • 3
    • 7
  • a

    alert-smartphone-74315

    09/18/2020, 9:50 PM
    Do any TypeScript pulumi users make re-usable modules for use across projects? Imagine an importable typescript module that bundles together a small reusable set of components (such as roles, IAM, services, etc) that can be used to speed up cross-company projects. However, as I've attempted this it feels challenging for a number of reasons (asynchronous nature of infra, tooling, etc) and I'm wondering if I'm misusing pulumi.
    g
    l
    • 3
    • 11
  • c

    clean-agent-81112

    09/19/2020, 8:09 AM
    Hi friends - probably a bit of a different question this one. In short I want the developer productivity loop of Serverless Framework on my AWS Lambdas while expressing the rest of the infra of my AWS estate (cognito, postgres, vpc's, etc). Is there any published guidance/blogs on making the two work nicely together, or making Pulumi play well with another IaC tool in general? There will be some bi-directional overlap (for eg. a lambda that is attached to Cognito ConfirmSignUp trigger) so wondering how to go about that
    r
    l
    • 3
    • 5
  • f

    famous-kite-69533

    09/19/2020, 10:39 AM
    HI all. I upgraded to the latest version and the verbose output is not working, i.e. "-v=9" doesn't show any additional output. What can I do?
    a
    • 2
    • 1
  • d

    damp-table-85095

    09/19/2020, 2:00 PM
    @famous-kite-69533 I've had the same experience
  • v

    victorious-xylophone-55816

    09/19/2020, 6:51 PM
    If I have Pulumi attaching an ALB/NLB to each of 3 Fargate containers, does that mean I'm paying ~$60/mo just for the load balancers in my test/staging environment?
  • v

    victorious-xylophone-55816

    09/19/2020, 7:15 PM
    Also, I imported an ACM certificate into the stack and used
    protect
    due to the account limit of 20 certs, and now I can't delete the resources since they depend on the certificate 😬 Is it possible to say "Delete everything in the stack but X"?
    b
    g
    • 3
    • 4
  • a

    ambitious-father-68746

    09/19/2020, 11:58 PM
    Is there a way (I'm thinking ResourceOptions) to specify that a resource should always be replaced, not updated?
  • d

    damp-table-85095

    09/20/2020, 12:03 AM
    Hi. How do we declare and assign a value to a new
    pulumi.Input
    variable?
  • d

    damp-table-85095

    09/20/2020, 12:03 AM
    Are there any examples I could look at? I want to populate this variable with an asynchronous value.
  • d

    damp-table-85095

    09/20/2020, 12:04 AM
    I tried converting a
    Promise<string>
    to an
    Input<string>
    but couldn't figure it out.
    a
    • 2
    • 1
  • d

    damp-table-85095

    09/20/2020, 2:12 AM
    I stand corrected. I was declaring a function that returned a Promise instead of a Promise. My mistake.
  • k

    kind-school-28825

    09/20/2020, 2:22 PM
    Can we have a channel dedicated for github, more specifically Github Actions? Apparently the docker image for github actions doesn't support NodeJS as it keeps failing and a PR is still in progress to fix this https://github.com/pulumi/actions/pull/29 Anyone has an experience with using Github Actions to deploy a nodejs app?
    b
    • 2
    • 4
  • c

    curved-dress-32683

    09/20/2020, 7:40 PM
    Does anyone have an example pulumi typescript code for deploying Istio?
  • h

    handsome-zebra-11018

    09/21/2020, 2:26 AM
    I need to pass many
    env
    variables to container. Is there any way I can define env variables as an array in yaml file and loop through then in my typescript file instead of coding each variable. This is what I have today in yaml
    config:
      pro:key1:value1
      pro:key2:value2
    and this is how I am using them in my typescript file
    env: [
        {
          name: "key1",
          value: config.get("key1")
        },
        {
          name: "key2",
          value: config.get("key2")
        },
    This works fine but I have 30+ parameters and want the create env using loop instead of hardcoding every one in ts file any help? Something like
    env: [
        array.forEach((param :string) => {
            const splitString = param.split(":");
            {
                name: splitString[0],
                value: splitString[1]
            }
        })
    ],
    g
    • 2
    • 3
  • h

    helpful-farmer-76395

    09/21/2020, 2:28 AM
    Hi! This may be a newb question, but is there a way to resolve an Ouput (specifically, a StackReference.get_ouput result) to it's value at runtime? I'm writing a simple security group helper that needs to know if the input is a security_group or a cidr_block. I'd like to simply test if the first letter of the string is a digit or 's' (as-in 'sg-XXXXXX').
  • l

    little-cartoon-10569

    09/21/2020, 3:39 AM
    I'm having difficulties with my migration. I've moved resources from several small projects into one large one, mostly using the
    import
    opt. There have been a few changes on the way, most of which I've resolved using
    pulumi refresh
    . Two that haven't yet been resolved are: 1. An IAM role created without a name or namePrefix, which has defaulted to using namePrefix = Pulumi name. In order to import it, I had to temporarily add the name property with its actual name. I now want to go back to using either the default or namePrefix. How do I get Pulumi to recognize that changing
    name: "myprefix-984ac6"
    to
    namePrefix: "myprefix"
    is no changed? I'm prepared to edit the state if needed. 2. My Directory was created with a password, which I'm now ignoring via
    ignoreChanges
    (because I want to be able to change the password outside of Pulumi). If I leave ignoreChanges in, then Pulumi reports "resource 'dirname' has a problem: Missing required property 'password'". Are either of these resolvable?
    • 1
    • 3
  • f

    famous-twilight-87777

    09/21/2020, 7:11 AM
    Hi all, I'm having an issue with doing a lookup of a floatingIP and creating an association. The floating ip has been created previously and will not be changed (in this scenario) - so I only want to do the lookup and assoc with a bastion host
  • f

    famous-twilight-87777

    09/21/2020, 7:11 AM
    trying to assoc by id:
  • f

    famous-twilight-87777

    09/21/2020, 7:11 AM
    let assoc_bastion_ip = new os.networking.FloatingIpAssociate("associate_bastion_fip", {
        floatingIp: bastion_ip.then(ip  => ip.id),
        portId: bastion.id
    });
  • f

    famous-twilight-87777

    09/21/2020, 7:11 AM
    leads to this
  • f

    famous-twilight-87777

    09/21/2020, 7:12 AM
    Diagnostics:
      openstack:networking:FloatingIpAssociate (associate_bastion_fip):
        error: Unable to get ID of openstack_networking_floatingip_associate_v2 floating_ip 41142f29-54b9-44a7-bb33-8e6581634aa7: there are no openstack_networking_floatingip_v2 with 41142f29-54b9-44a7-bb33-8e6581634aa7 IP
  • f

    famous-twilight-87777

    09/21/2020, 7:13 AM
    but if I try to use the address of the floating ip..
  • f

    famous-twilight-87777

    09/21/2020, 7:13 AM
    floatingIp: bastion_ip.then(ip => ip.address)
  • f

    famous-twilight-87777

    09/21/2020, 7:14 AM
    this doesn't work as the Promise could return an undefined which cannot be used as input.
  • f

    famous-twilight-87777

    09/21/2020, 7:14 AM
    pretty sure I'm missing something fundamental here
  • n

    nutritious-shampoo-16116

    09/21/2020, 10:27 AM
    hello everybody 👋 just wondering if there is a way for Pulumi to forget about a resource? we would like that resource to be still physically there but we don't want it in that stack anymore
    b
    l
    c
    • 4
    • 5
Powered by Linen
Title
n

nutritious-shampoo-16116

09/21/2020, 10:27 AM
hello everybody 👋 just wondering if there is a way for Pulumi to forget about a resource? we would like that resource to be still physically there but we don't want it in that stack anymore
b

broad-helmet-79436

09/21/2020, 10:31 AM
you can delete the resource from your state file https://www.pulumi.com/docs/reference/cli/pulumi_state_delete/
if you also remove your code declaring the resource, it will be as if Pulumi never knew about it
n

nutritious-shampoo-16116

09/21/2020, 10:43 AM
cool, thanks!
l

little-cartoon-10569

09/21/2020, 10:09 PM
If you remove the code declaring the resources without removing it from the state file, won't Pulumi detect the difference and offer to delete it? That's what it does when I try it, and it's what I'd expect it to do.
c

curved-dress-32683

09/22/2020, 1:17 AM
Yes, you are right. The resource has to be deleted first from the state and then from the code.
View count: 1