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

    limited-rain-96205

    09/06/2021, 9:16 PM
    When using the Pulumi-Terraform bridge, is there a way to have it /not/ set a particular field of a resource? Like, not set the field at all, not pass anything to the Terraform provider.
    • 1
    • 3
  • s

    salmon-printer-16080

    09/07/2021, 3:10 AM
    Hi everyone, does anyone have any advice around stack management for a single project where variables are injected depending on which stack is selected (dev/test/staging/prod). I'm trying to avoid having multiple typescript files for each stack, but instead inject environment specific variables. Is there any best practices or docs I can follow to achieve this?
    l
    • 2
    • 4
  • l

    limited-dog-75903

    09/07/2021, 4:10 AM
    Hi folks, how can I get the console log after creating an EC2 instance? I know there is an aws call for this, but no wrapper for pulumi
    l
    d
    g
    • 4
    • 13
  • b

    bland-cat-29878

    09/07/2021, 2:54 PM
    Hi all - I'm trying to create an MX record via the Cloudflare provider but keep getting a
    error: failed to create DNS record: HTTP status 400: DNS Validation Error (1004)
    :
    new cloudflare.Record(`aspmx.l.google.com.`, {
                type: "MX",
                zoneId: zne.id,
                name: `aspmx1`,
                value: "aspmx.l.google.com.",
                ttl: 60,
            });
    l
    • 2
    • 4
  • b

    brave-afternoon-91593

    09/08/2021, 12:11 AM
    šŸ‘‹Ā So I’ve bridged a Terraform Provider to Pulumi, but now I’d like to distribute it. Everything in the repo is named ā€œpulumi/pulumi-teleportā€, but I obviously don’t have access to such a repo. I could rename it to my own org, and even automate the distribution of a binary, but then my end-users would have to manually install the plugin. What’s the best way for me to move forward here?
    b
    • 2
    • 2
  • g

    gifted-student-18589

    09/08/2021, 11:22 AM
    let’s say I’m deploying a React app that needs to be built before deployed… anybody maybe managed to embed the build step into the Pulumi (TS) code maybe?
    c
    b
    • 3
    • 14
  • b

    brainy-lion-38675

    09/08/2021, 11:38 AM
    there is PULUMI_BACKEND_URL. Is there a way to have pulumi login determine the backend url from the project directory?
    • 1
    • 1
  • s

    swift-intern-18856

    09/08/2021, 4:24 PM
    really annoying behavior with protected resources. working on importing stuff into project, and using
    pulumi preview
    to confirm i'm not altering existing resource as i make project more programmatic, but when the plan strategy is to replace, i just get
    Preview failed: unable to delete resource
    and am unable to see the diff of why the replace strategy was chosen, which is exactly what i want to understand by generating the preview. any suggestions?
    b
    • 2
    • 3
  • h

    handsome-state-59775

    09/08/2021, 4:34 PM
    Just hunted down an annoying bug in my CI/CD pipeline -
    pulumi stack output $PROPERTY
    adds a newline even with
    --non-interactive
    specified. Can a special case be added with just the raw string for non-interactive usage? I believe the logic is here.
    b
    • 2
    • 3
  • c

    clever-whale-30088

    09/08/2021, 5:07 PM
    HI, I saw that Google Compute Engine has the option to launch a docker image in Compute Instances, but I didn't found any argument to pass the container image in pulumi documentation: https://www.pulumi.com/docs/reference/pkg/gcp/compute/instance/ But I saw that the nootbook instance support it: https://www.pulumi.com/docs/reference/pkg/gcp/notebooks/instance/ Is there any way to use containers in compute instances using pulumi?
    s
    • 2
    • 2
  • r

    rapid-raincoat-36492

    09/09/2021, 12:06 AM
    Hello! I am coming from terraform land and have two newbie questions: • How does pulumi handle updating many stacks at once? • How does pulumi handle updating stacks that depend on output values from other stacks? So say I have a ComponentResource that creates a website, and I have 20 stacks that use that ComponentResource. If I make a code change to that component resource and push it up to git, how do I ensure that all 20 website stacks are updated? And if those stacks have outputs that other stacks use, say each website has a DNS module that depends on it to point some domain to the site, how would I ensure that those downstream stacks are all updated? Is there any concept of dependencies between stacks on the cloud or any CI systems pulumi supports?
    b
    • 2
    • 4
  • s

    steep-toddler-94095

    09/09/2021, 1:46 AM
    hey, just wondering if this stackoverflow answer is true regarding `aws:defaultTags`: https://stackoverflow.com/a/68829181/4769865 since terraform's provider does not behave this way
    l
    b
    b
    • 4
    • 4
  • c

    cuddly-smartphone-15267

    09/09/2021, 1:50 AM
    does anybody have any tips on setting up pulumi with CI/CD? we currently use appveyor for our code based CI/CD and i was hoping to use it for pulumi as well
    l
    f
    +2
    • 5
    • 19
  • g

    gorgeous-country-43026

    09/09/2021, 10:58 AM
    Hi. We started recently to get a very long startup time for
    pulumi up
    . I started to dig into this and did a jaeger tracing on this and seems like
    pulumi-plan
    is taking 5 mins 30 secs to run. Almost all of the trace elements are extremely fast (0μs to few hundred milliseconds max) but these dominate:
    b
    • 2
    • 4
  • c

    chilly-hairdresser-56259

    09/09/2021, 6:33 PM
    Hello, does Pulumi have a known import issue for Cloudwatch groups? Been trying to dig through issues and TF issues.
    • 1
    • 3
  • s

    swift-intern-18856

    09/09/2021, 8:45 PM
    wondering if there's a good pattern for conditionally ignoring updates to resources, for example, based on the presence of an archive. the concrete use case here is updating lambdas in application stack. i don't want to even bother trying to update the lambdas if the archive isn't present on the file system. currently, trying to bring the stack up just fails because it can't locate the zip file for my lambdas. i still want to be able to deploy this stack locally without having to build the lambdas every time. any suggestions?
    b
    • 2
    • 11
  • c

    creamy-nail-67991

    09/10/2021, 7:59 AM
    Hi, I am looking to convert InputList<T> to InputList<Union<string, T>>. I have written the following code to do it but at least in my mind this conversion should be automatic under some operator. I understand that T for Input<T> / Output<T> is opaque but I want to make sure I am not missing something
    InputList<Union<string, FrontDoorProtocol>> protocols = new InputList<Union<string, FrontDoorProtocol>>();
    await foreach (var protocol in acceptedProtocols)
    {
    	protocols.Add(protocol);
    }
    return protocols;
    āœ… 1
    b
    • 2
    • 3
  • p

    prehistoric-kite-30979

    09/10/2021, 3:38 PM
    Hey, we have built a provider using the boilerplate repo but have hit a snag trying to understand how to Invoke functions. I understand how to generate and call the code, but what I don’t understand is how to build the rpc.InvokeResponse that I need to return.
    b
    • 2
    • 5
  • s

    straight-pager-11362

    09/10/2021, 4:33 PM
    Hi, I’m looking to provide config settings in CLI when I run
    pulumi up
    . According to docs, I can use
    -c
    or maybe
    --config-path
    but I’m not sure how to use the options. Anybody have any experience with using those options? Update: https://github.com/pulumi/pulumi/issues/3776 - looks like there is no support for ad-hoc config.
  • s

    steep-portugal-37539

    09/10/2021, 4:38 PM
    Hey guys, how is
    opts
    supposed to be handled by resources and components inside of a new component resource you are creating? So if I pass in a
    provider
    via
    opts
    to the new component do I need to merge it with every sub resources’ opts ? Can the sub resource say, just have
    parent
    specified? Also, What is the role of passing
    opts
    to
    super
    ?
    b
    • 2
    • 5
  • m

    microscopic-finland-82315

    09/10/2021, 6:06 PM
    Hey Guys, does anybody was able to get a Helm chart that is published to a OCI registry working in combination with Pulumi?
  • j

    jolly-terabyte-28195

    09/11/2021, 3:57 AM
    Hi guys, I am trying to update RDS with pulumi but changes are not happening after it shows update is successfull. Does someone know why it is happening?
  • j

    jolly-terabyte-28195

    09/11/2021, 4:03 AM
    Figured out, because it was waiting next maintenance time.
  • c

    crooked-pillow-11944

    09/13/2021, 2:42 AM
    Is there any documentation/examples on how to iterate over a list in another stacks output to create resources in the current stack?
    l
    p
    • 3
    • 16
  • b

    bored-vegetable-38523

    09/13/2021, 1:13 PM
    Hi everyone, would someone be able to tell me if in the Kubernetes Operator Stack CRD you can specify custom values that can be used by the stack that is held in the git repo? In the example https://github.com/pulumi/pulumi-kubernetes-operator/blob/master/stack-examples/yaml/nginx_k8s_stack.yaml I can see that the envRef
    PULUMI_ACCESS_TOKEN
    is set. Can we add custom envRefs? Many thanks.
  • p

    proud-pizza-80589

    09/13/2021, 4:27 PM
    Maybe a stupid question, but is there a way to install stuff on a regular vm like with ansible etc? So apt get installs etc etc
    w
    l
    • 3
    • 3
  • g

    gifted-controller-71470

    09/13/2021, 5:24 PM
    https://twitter.com/rahuldevelop
    p
    • 2
    • 1
  • b

    brainy-lion-38675

    09/13/2021, 6:21 PM
    pulumi providers that are based on terraform - is there a way to have them auto generate resource names?
    b
    • 2
    • 38
  • f

    future-refrigerator-88869

    09/13/2021, 11:38 PM
    Hi, is there any way that I could manage the ingresses of k8s? I am trying to dynamically create and delete ingress instances based on how many stacks are created (without manually specifying them in code). Eg: for every 10 added stacks create a new ingress with ELB, and for every 10 deleted stacks, delete the unused ingress and elb.
    b
    p
    • 3
    • 13
  • g

    glamorous-cpu-85849

    09/14/2021, 9:30 AM
    Is there a way to ignore a change in the resource name? For example, I've changed my naming convention on something like an S3 bucket and I don't want to replace all of the existing ones, but new ones will have it. opts+ignoreChanges does not seem to be really ignoring it as it still wants to delete and replace.
    b
    l
    • 3
    • 2
Powered by Linen
Title
g

glamorous-cpu-85849

09/14/2021, 9:30 AM
Is there a way to ignore a change in the resource name? For example, I've changed my naming convention on something like an S3 bucket and I don't want to replace all of the existing ones, but new ones will have it. opts+ignoreChanges does not seem to be really ignoring it as it still wants to delete and replace.
b

brave-planet-10645

09/14/2021, 10:08 AM
You can use aliases. Docs are here: https://www.pulumi.com/docs/intro/concepts/resources/#aliases and there's a great blog post on refactoring using aliases here https://www.pulumi.com/blog/cumundi-guest-post/
l

little-cartoon-10569

09/14/2021, 9:26 PM
Aliases apply to the Pulumi name (1st parameter to constructor). If you mean the resource name in your cloud provider (e.g. the "bucket" property of an S3 bucket), then ignoreChanges should work.
View count: 1