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

    red-football-97286

    05/24/2022, 9:09 AM
    Has anyone had any joy with converting CloudFormation to Pulumi (https://www.pulumi.com/cf2pulumi/)? Every time I try convert just get hit with errors:
    Diagnostics:
    Warning: Resource not supported
    Resource "aws-native:autoscaling:AutoScalingGroup" is not yet supported by AWS CloudControl API. Code generated for "asg" is for reference only.
    Warning: Resource not supported
    Resource "aws-native:autoscaling:ScheduledAction" is not yet supported by AWS CloudControl API. Code generated for "winterScheduledActionUp" is for reference only.
    Warning: Resource not supported
    Resource "aws-native:autoscaling:ScheduledAction" is not yet supported by AWS CloudControl API. Code generated for "summerScheduledActionDown" is for reference only.
    Warning: Resource not supported
    Resource "aws-native:codedeploy:DeploymentGroup" is not yet supported by AWS CloudControl API. Code generated for "cdDeploymentGroup" is for reference only.
    Error: unknown function 'aws-native::getStackName'
    on program.pp line 2:
    3: awsStackName = invoke("aws-native::getStackName").stackName
    b
    • 2
    • 2
  • c

    cool-computer-40158

    05/24/2022, 10:18 AM
    Hello together, https://www.pulumi.com/registry/packages/digitalocean/api-docs/app/ iam tryring to use the "Look up an Existing App Resource" to check my deployed digital ocean app for updates. My Problem is that i have the ID as string and do not know how to use it as the IDInput Datatype. I am using Go as language. Any ideas ? Thanks :)
    e
    • 2
    • 6
  • c

    cool-computer-40158

    05/24/2022, 2:00 PM
    Currently i am doing an preview operation in the automation api(golang) and the preview shows a diff for the image tag as expected: ~ tag : "0.0.12" => "0.0.11" but result is at the end is Ressource "1 unchanged" why is pulumi not recognizing this change and is redeploying the app on Up call? iam trying to update an app (https://www.pulumi.com/registry/packages/digitalocean/api-docs/app/#look-up)
    e
    l
    • 3
    • 10
  • p

    powerful-room-57148

    05/24/2022, 3:25 PM
    👋 where’s a good place to submit a feature request for the CLI?
    e
    • 2
    • 3
  • p

    powerful-room-57148

    05/24/2022, 3:39 PM
    👋 I’m having some trouble with the GitHub App — I’m not seeing comments posted to my PR. Is this the right place to get help with troubleshooting this?
    e
    • 2
    • 23
  • a

    alert-balloon-36955

    05/24/2022, 8:58 PM
    Hi guys, I am trying to export the LoadBalancer ip from the code, I am using a
    kubernetes:core/v1:Service
    , did someone know how to export or show the LB ip during the creation in order to be used in other places?
    h
    • 2
    • 7
  • t

    thankful-coat-47937

    05/24/2022, 9:03 PM
    hi
  • t

    thankful-coat-47937

    05/24/2022, 9:04 PM
    how can i check if i'm running in preview mode. basically want to restrict the program to not run during previews/dry runs
    l
    • 2
    • 5
  • a

    ambitious-translator-75179

    05/25/2022, 8:28 AM
    Hey everyone, Was just curios about one thing, still trying to scope it and see which one is better for this specific goal. Im trying to create a service that would be able to provision environments, resources. Still cant decide if terraform or pulumi would be a better choice for this specific task. Is there a way to create an API service, where you can send a request and based off that request you are gonna have a resources provisioned for you? IS this something Pulumi could do? - technically, with enough effort... Cheers in advance
    e
    • 2
    • 2
  • a

    ancient-car-89914

    05/25/2022, 9:45 AM
    hey guys - how would I go about troubleshooting a failure in command.remote.Command where it fails to connect over ssh to a digitalocean droplet, while using the exported private key to manually connect works fine?
    q
    • 2
    • 19
  • r

    rough-spring-27410

    05/25/2022, 10:56 AM
    Hi guys, I am using helm to install a chart with Java. Here is the code.
  • r

    rough-spring-27410

    05/25/2022, 10:57 AM
    return new Release("nginx",
                    ReleaseArgs.builder()
                            .chart("nginx-ingress")
                            .version("1.24.4")
                            .repositoryOpts(RepositoryOptsArgs.builder().repo("<https://charts.helm.sh/stable>").build())
                            .valueYamlFiles(new FileAsset("./values.yaml"))
                            .build(),
                    CustomResourceOptions.builder()
                            .provider(provider)
                            .build());
  • r

    rough-spring-27410

    05/25/2022, 10:57 AM
    but it doesn't work. Here ie the error.
  • r

    rough-spring-27410

    05/25/2022, 10:57 AM
    java.lang.UnsupportedOperationException: Convert [com.pulumi.kubernetes.helm.sh_v3.Release.resourceNames]: Error converting 'com.google.common.collect.RegularImmutableMap' to 'TypeShape{type=interface java.util.Map, parameters=[TypeShape{type=class java.lang.String, parameters=[]}, TypeShape{type=interface java.util.List, parameters=[]}]}'. Expected a parameter type for the List, got none
  • r

    rough-spring-27410

    05/25/2022, 10:58 AM
    Is there any mistake here?
  • r

    rough-spring-27410

    05/25/2022, 10:59 AM
    Any suggestions will be appreciated. Thanks ahead.
    e
    • 2
    • 3
  • r

    rhythmic-whale-48997

    05/25/2022, 12:23 PM
    I there a way to call
    pulumi up
    from other Pulumi code/project? I'm looking at a way to configure RabbitMQ instance with
    pulumi-rabbitmq
    after I create Amazon MQ instance.
    pulumi-rabbitmq
    takes environment variables or config so I don't know what is the best way to do this
  • t

    thousands-beard-65017

    05/25/2022, 12:28 PM
    hi all, I am Ram new to pulumi, Good to be hear and part of it
  • t

    thousands-beard-65017

    05/25/2022, 12:32 PM
    How can I get the issue resolved for such errors,
  • t

    thousands-beard-65017

    05/25/2022, 12:33 PM
  • t

    thankful-coat-47937

    05/25/2022, 5:05 PM
    hi, i have a
    const cluster = aws.ecs.getClusterOutput({ clusterName: infraRef.getOutput("clusterName") });
    which is a
    pulumi.output<aws.ecs.GetClusterResult>
    How do i convert this into a
    awsx.ecs.Cluster
    ?
    o
    l
    • 3
    • 4
  • s

    silly-scientist-20604

    05/25/2022, 10:02 PM
    How does one implement multiple Pulumi configuration files for the same environment/stack? I.e:
    Pulumi.dev.clusterA.yaml
    Pulumi.dev.clusterB.yaml
    Pulumi.dev.clusterDefaults.yaml
    Pulumi.prod.clusterA.yaml
    Pulumi.prod.clusterB.yaml
    Pulumi.prod.clusterDefaults.yaml
    Pulumi.global.clusterDefaults.yaml
    q
    • 2
    • 1
  • b

    blue-judge-71382

    05/25/2022, 11:29 PM
    Hi guys, is there anyone encountering ERR_INSPECTOR_NOT_AVAILABLE error? I am using: "@pulumi/aws": "^5.4.0", "@pulumi/awsx": "^1.0.0-beta.6", "@pulumi/eks": "^0.40.0", "@pulumi/kubernetes": "^3.19.1", "@pulumi/pulumi": "^3.33.1",
    👀 1
    a
    • 2
    • 1
  • p

    prehistoric-london-9917

    05/26/2022, 1:53 AM
    Hello - I have a question regarding stack reference dependencies. Here’s our use case: We have a project that creates a VPC and an EKS cluster along with some common resources. We have a second project that references the first projects outputs to create deployments, etc. That works great. I can get into a weird state, however, if I try to delete the cluster stack without first deleting stacks that are dependant on it. So, what I’d like to do is: When I deploy a child stack, I want to tell the parent stack that it now has a dependency. This could, hopefully, let me raise an error if I try to delete the parent stack without first deleting the child stacks. Is anyone aware of a way a child stack can inject either configuration or state into a parent stack? Seems a bit odd, I realise, so if there’s a better way of handling this on a self-managed object storage backend, I’d love some ideas.
    l
    • 2
    • 5
  • i

    icy-controller-6092

    05/26/2022, 4:37 AM
    Does
    pulumi stack init
    no longer create a new yaml file?
  • i

    icy-controller-6092

    05/26/2022, 9:53 AM
    I’m not sure I understand the typescript support. If I want to have a couple of custom options in tsconfig.json, I need to disable typescript support in the YAML file and then build the TS myself before running pulumi?
    l
    • 2
    • 7
  • s

    sticky-salesmen-54387

    05/26/2022, 2:51 PM
    CDK Day! https://www.cdkday.com/
  • s

    sparse-midnight-5337

    05/26/2022, 3:17 PM
    Hey, I am having some trouble deploying a compute@edge service on Fastly. The services requires a dictionary with two items. In order to add items to a dictionary i need a dictionaryID i have the following code to get this id.
    const dict = service.dictionaries.apply(d => d?.[0].dictionaryId || '1234') // <--- This always returns undefined, so default to 1234
    however because of the comment above whenever i run
    pulumi up
    i get the following error.
    Diagnostics:
      fastly:index:ServiceDictionaryItems (CredentialsDict):
        error: 1 error occurred:
        	* Error creating dictionary items: service 6JGsFBzFbONzfbcXDyfRP3, dictionary 1234, 400 - Bad Request:
    
            Title:  Bad request
            Detail: Couldn't find Dictionary '{ dictionary_id => 1234, service_id => 6JGsFBzFbONzfbcXDyfRP3 }'
    
      pulumi:pulumi:Stack (fastly-shell-dev):
        error: update failed
    Is it possible to retrieve this ID during the deployment process? If not how can I query this after the service is deployed and still able to deploy the dictionary at the same time?
    • 1
    • 1
  • b

    billowy-area-48390

    05/26/2022, 3:26 PM
    Curious to hear about how people solve release management with Pulumi. We have Cloud Run instances and need to update infrastructure independently from the application container version. How do you solve this ? Was thinking of having “ignoreChanges” on Cloud Run resources in Pulumi and then use our release management software to update Cloud Run images directly. But I wonder if there’s a way to do this entirely in Pulumi by targeting the CloudRun resources ?
    👍 2
  • m

    most-jordan-25674

    05/26/2022, 4:13 PM
    I’m creating an ECS task definition with Typescript. This takes in a string for the container definitions. I want to set some environment variables in said container definitions that are secret, but when
    config.requireSecret('something')
    I get an output…which won’t be useable in the string. Is there a better way to get these values that would be different per stack?
Powered by Linen
Title
m

most-jordan-25674

05/26/2022, 4:13 PM
I’m creating an ECS task definition with Typescript. This takes in a string for the container definitions. I want to set some environment variables in said container definitions that are secret, but when
config.requireSecret('something')
I get an output…which won’t be useable in the string. Is there a better way to get these values that would be different per stack?
View count: 3