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

    breezy-butcher-78604

    08/26/2020, 4:38 AM
    the documentation for
    apply()
    says that the function cannot create resources, however i have a template that is creating resources within an
    apply()
    and it appears to work ok... is there a reason i shouldn't do this?
    l
    • 2
    • 2
  • i

    incalculable-dream-27508

    08/26/2020, 10:50 AM
    Is there a way to manage machines in two independent OpenStack clusters "at once"?
    • 1
    • 1
  • h

    hallowed-barista-41250

    08/26/2020, 1:18 PM
    Hey all, just discovered Pulumi. Am I correct in thinking if I have a PHP app, I can still use Pulumi even though it isn't a supported language? That's just for writing the configuration?
    g
    • 2
    • 2
  • i

    icy-jordan-58549

    08/26/2020, 2:59 PM
    is there any way to get
    pulumi stack output
    from the code? I was pretty sure that I will get stack output from Webhook, but it seems to be was not planned. Any suggestions?
    m
    • 2
    • 1
  • h

    handsome-zebra-11018

    08/26/2020, 3:15 PM
    Anyone has example how to use existing NFS Volumes with pulumi ?
  • c

    chilly-rainbow-79265

    08/26/2020, 4:32 PM
    Is there any way for
    life cycle hooks
    . I know it's still in progress. But is there
    any way for chaining an action
    , after a resource got created ?
  • c

    cool-telephone-9886

    08/26/2020, 5:28 PM
    Slack seems like the wrong forum for asking questions - just screaming into the wind here but: I can’t get pulumi to create an azure aks cluster with a virtual node. I’ve used the AddonProfile with AciConnectorLinuxArgs but no virtual node is added to the cluster once it completes being created. What am I missing? Thanks.
    b
    a
    • 3
    • 10
  • d

    damp-secretary-81951

    08/26/2020, 5:34 PM
    I’m currently updating an S3 bucket (HEAD, PUT) from an API Gateway lambda. I heard that if you use VPC, the requests will be faster than if it connects via a public IP. Do I need a VPC endpoint for this (
    aws.ec2.VpcEndpoint
    ) or does Pulumi set this up automatically?
    s
    • 2
    • 1
  • a

    adamant-advantage-95831

    08/26/2020, 7:22 PM
    Has anyone had success using
    pulumi stack change-secrets-provider <secrets-provider>
    ?
    b
    s
    • 3
    • 22
  • b

    bitter-application-91815

    08/26/2020, 7:32 PM
    @gentle-diamond-70147 hey there
  • b

    bitter-application-91815

    08/26/2020, 7:33 PM
    Have a few questions as to how to pull out the vpc and security details from a aws clusterInstance
  • b

    bitter-application-91815

    08/26/2020, 7:34 PM
    and then assign them to a lambda (which i suspect is through a resource ?)
    g
    • 2
    • 18
  • b

    bitter-application-91815

    08/26/2020, 7:37 PM
    once i can validate all the cluster stuff, i'll move the account over to a paid one, my boss has OK'd it.
  • m

    millions-judge-24978

    08/26/2020, 10:11 PM
    Has anyone managed to use https://github.com/actions/cache to cache the pulumi plugins?
    s
    c
    • 3
    • 7
  • l

    little-cartoon-10569

    08/27/2020, 3:38 AM
    I have made an oopsie with my changes. Pulumi has begun to replace my VPC with a new one, but has failed because of permissions, dependencies, and more. Not worried about that, I can sort it. However, I don't want to replace my VPC. Is there anything I can do to get Pulumi to not want to finish deleting it each time I
    pulumi up
    ?
    😱 1
    • 1
    • 3
  • l

    little-cartoon-10569

    08/27/2020, 4:39 AM
    New problem. Is it possible to change the provider on a resource (in my case, a VPC) without replacing the resource? I don't want to delete-create, but I want to go from using the default (undefined) provider to an explicitly-defined provider that is pointing to the same AWS account and profile.
  • h

    handsome-zebra-11018

    08/27/2020, 7:06 AM
    Wanted to create namespace with FIXED name
    const devNamespace = "m1af-dev"
    const devNs = new k8s.core.v1.Namespace(devNamespace, {
        metadata: {
            "name": devNamespace,
            "labels": {
                "name": devNamespace
            }
        }
    }, {});
    Used above but it create name with
    m1af-dev-h0cgk8db
    and not
    m1af-dev
    g
    • 2
    • 1
  • c

    chilly-rainbow-79265

    08/27/2020, 9:27 AM
    How to get stack name in program, so that we can create resources with stack_name prefixed. Like
    staging_akscluster
    g
    • 2
    • 1
  • s

    sticky-receptionist-53934

    08/27/2020, 10:38 AM
    is there any way to just clean/destroy a stack even when there are errors? I find that quite often the pulumi stack enters in some kind of error situation which is impossible to get out from, I have resembled to just destroy the gcp project and start all over but it is quite time consuming, any tips?
  • b

    bitter-application-91815

    08/27/2020, 12:24 PM
    I have found when the underlying stack diverges from the pulumi config, you'll need to delete individual things from pulumi using https://www.pulumi.com/docs/reference/cli/pulumi_state_delete/
  • b

    bitter-application-91815

    08/27/2020, 12:24 PM
    after you have nuked it from the underlying stack
  • b

    bitter-application-91815

    08/27/2020, 12:24 PM
    the you can destroy the full stack with the usual command
  • s

    sticky-receptionist-53934

    08/27/2020, 1:32 PM
    Can this warning/error be ignored or does it imply that CRDs are not going to work properly?
    manifest_sorter.go:192: info: skipping unknown hook: "crd-install"
    b
    • 2
    • 12
  • h

    hallowed-beach-15050

    08/27/2020, 1:54 PM
    that looks like a helm error. I would make sure your CRDs are in the right spot in the helm chart for the version of helm you are using… assuming helm is in the mix, of course
  • s

    sticky-receptionist-53934

    08/27/2020, 2:22 PM
    helm is in the mix, yes. Do you know if this error is a consequence of this other warning that I get?:
    warning: <http://apiextensions.k8s.io/v1beta1/CustomResourceDefinition|apiextensions.k8s.io/v1beta1/CustomResourceDefinition> is deprecated by <http://apiextensions.k8s.io/v1/CustomResourceDefinition|apiextensions.k8s.io/v1/CustomResourceDefinition> and not supported by Kubernetes v1.22+ clusters.
    b
    • 2
    • 2
  • b

    billowy-kangaroo-51688

    08/27/2020, 5:08 PM
    Hey fellow Pulumians 🙋‍♂️ I just realized that my project is not uploading the expected
    aws-sdk
    (NodeJS) version to Lambda and I'm not sure how to bundle the intended version, pinned via package.json
    dependencies
    & even yarn
    resolutions
    and
    yarn.lock
    . What am I missing?
    ✅ 1
    g
    w
    • 3
    • 23
  • e

    early-intern-90238

    08/27/2020, 7:41 PM
    Well, after 2 years of hard work my site is finally live. Back-end architecture completely driven by Pulumi. Would like to thank everyone here for their help over the course of that time!! Also a small shameless plug: https://cloudlayer.io if you want to check it out!! Did it all myself, was a TON of work, but learned a lot. Thanks guys!!
    👏 5
    🎉 2
    👍 5
    g
    s
    • 3
    • 3
  • b

    big-potato-91793

    08/27/2020, 7:50 PM
    does tf2pulumi supports tf12?
  • c

    calm-pizza-15027

    08/27/2020, 8:39 PM
    Hey team, I am trying to get the ip address of a helm generated load balancer
    const devNamespace = new k8s.core.v1.Namespace("devNamespace", {
        metadata: {
            name: "dev",
        },
    },{provider:clusterRecIngProvider});
    
    export const nginxIngress = new k8s.helm.v3.Chart("nginx-ingress", {
        chart: "nginx-ingress",
        namespace: devNamespace.metadata.name,
        fetchOpts:{
            repo: "<https://helm.nginx.com/stable/>",
        },
    },{provider:clusterRecIngProvider});
    const status = nginxIngress.getResourceProperty("v1/Service","nginx-ingress-nginx-ingress","status");
    export const recIp = status.apply((status)=> status.loadBalancer.ingress[0].ip);
  • c

    calm-pizza-15027

    08/27/2020, 8:40 PM
    Any ideas on how to use getResourceProperty() ?
    g
    • 2
    • 1
Powered by Linen
Title
c

calm-pizza-15027

08/27/2020, 8:40 PM
Any ideas on how to use getResourceProperty() ?
g

gentle-diamond-70147

08/27/2020, 10:02 PM
Your code looks roughly correct. Here's another example - https://github.com/pulumi/examples/blob/76cdb38ad9c1e6b632910eaadb38263f80f9015b/kubernetes-ts-helm-wordpress/index.ts#L14-L22. I forget the specifics, but depending on your cloud provider, the IP address might be on a different property under
status
. So I would recommend outputting the
status
object to examine its full structure and see if you see the IP address there.
View count: 1