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

    square-coat-62279

    11/05/2021, 2:39 AM
    Is there a cli command to check the resources in a state? Something equivalent to terraform state list and state show?
    h
    • 2
    • 1
  • s

    square-coat-62279

    11/05/2021, 2:40 AM
    Is there null_resource equivalent in pulum? We have use case to run local-exec and remote-exec
  • h

    high-holiday-63390

    11/05/2021, 11:57 AM
    What’s the correct way to display some values from output in JS? For example, I created an AWS resource and want to print out its target URL
    b
    r
    • 3
    • 3
  • s

    salmon-raincoat-19475

    11/05/2021, 12:26 PM
    Our team is enjoying pulumi and are looking to expand to include some of the capabilities beyond replacing terraform to include what we have done with ansible....from what I've seen, that seems like more of a
    pyinfra
    use-case, but if we can do it in pulumi, then even better! I'm curious what other teams have utilized for this. Please select an option below for easy voting: 1️⃣ Ansible 2️⃣ PyInfra 3️⃣ Pulumi all the way! - please expand in comments if you don't mind. 4️⃣ Other: Please note what you're using in the comments if you don't mind. Thanks!
    b
    • 2
    • 1
  • a

    able-camera-57198

    11/05/2021, 1:36 PM
    Sharing here for visibility: https://pulumi-community.slack.com/archives/CRFUR2DGB/p1636118551037000 @billowy-army-68599 -- Maybe you know? 🙂
    s
    • 2
    • 1
  • f

    future-refrigerator-88869

    11/05/2021, 2:26 PM
    Quick question: Can I somehow configure the contents of the
    Pulumi.yaml
    file via env variables ? I would like to get a stack output from CI/CD but I don't really want to create a Pulumi.yaml file in the project I'll be running this.
    p
    • 2
    • 13
  • s

    sparse-spring-91820

    11/05/2021, 3:46 PM
    Hello, I have a problem using vpc created in other project. Inside project
    A
    I created a VPC like this:
    const vpc = new awsx.ec2.Vpc('project-a-vpc', { numberOfAvailabilityZones: 2 });
    module.exports = { vpcId: vpc.id };
    and inside project
    B
    I created Vpc resource pointing to existing Vpc like this:
    const stack = new pulumi.StackReference('myorg/stack-a/main');
    const vpcId = mainStack.getOutput('vpcId');
    const vpc = new awsx.ec2.Vpc('vpc', { vpcId });
    But when I try to use the publicSubnetIds property it says it is an empty array, but inside stack A, it is not empty.
    const dbSubnetGroup = new aws.rds.SubnetGroup('db-subnet-group', {
      subnetIds: vpc.publicSubnetIds
    });
    Any clue how can I refer to an existing vpc and use all its properties as I would inside project A? Also, if I go with this solution of getting existing vpc:
    const vpc = aws.ec2.Vpc.get('vpc', vpcId);
    i dont have
    publicSubnetIds
    property at all.
    ✅ 1
    w
    • 2
    • 14
  • f

    faint-whale-905

    11/05/2021, 6:58 PM
    Hello. In a general sense, how can I tell when an object has been "created" ... as opposed to "updated", "deleted" in Python?
    r
    • 2
    • 17
  • f

    faint-whale-905

    11/05/2021, 6:58 PM
    I'd like to print something to users only on creation of specified object/resource
  • g

    glamorous-kitchen-14786

    11/05/2021, 9:30 PM
    Can anyone think of a reason that
    pulumi stack select <stackname> --cwd /path/to/pulumi/folder
    in a shell script being executed by a github action might fail because it cannot see a Pulumi.yaml? I'm echoing out an ls of the path I am feeding to the --cwd flag and it shows what I am expecting (including the Pulumi.yaml file) and the same approach is working just fine if I execute a shell script as normal from the same directory from my local.
    ls _$PULUMI_DIR_
    /root/.pulumi/bin/pulumi stack select _$1_ --cwd _$PULUMI_DIR_
    p
    • 2
    • 3
  • p

    powerful-football-81694

    11/06/2021, 12:24 PM
    Hello folks, is there any way to disable the update checking that the Pulumi CLI does on every invocation? Been looking through the CLI arguments but can’t find anything. It’s quite annoying in CI/CD scenarios, because every pipeline or job that runs a Pulumi command typically ends up in a warning state because the update notification is printed as a warning message. And these updates are quite frequent, so our Octopus Deploy jobs always have a warning indicator, which can obscure other, more legitimate warnings, and over time teaches us to ignore warning indicators on our jobs, which is not good.
    b
    • 2
    • 4
  • a

    able-camera-57198

    11/06/2021, 4:01 PM
    Is it okay to "output" resources from
    ComponentResources
    so that they can be passed elsewhere in the stack? For example:
    [Output]
        public Network ProjectNetwork { get; set; }
    
        // later...
    
            ProjectNetwork = new Network(
                "project",
                options: new()
                {
                    Parent = this,
                    DependsOn =
                    {
                        computeService,
                    },
                },
                args: new()
                {
                    Name = "blablabla",
                    AutoCreateSubnetworks = true,
                }
            );
    g
    • 2
    • 5
  • g

    gentle-cricket-92920

    11/06/2021, 5:29 PM
    Hi, I'm totally new here and just trying out the tutorial. Looks amazing so far! One thing during the quick start guide was not working for me. On this page: https://www.pulumi.com/docs/get-started/aws/deploy-changes/ There's this code snippet:
    export const bucketEndpoint = pulumi.interpolate`http://${bucket.websiteEndpoint}`;
    The output for this is:
    bucketEndpoint: "<http://undefined>"
    Any idea why?
    b
    • 2
    • 4
  • a

    able-camera-57198

    11/06/2021, 6:26 PM
    Is there any advice around using a single configuration structure and file across multiple stacks? Does pulumi offer any way to pick this up by say... having a stack config file in the parent folder of all my stacks?
    g
    • 2
    • 105
  • c

    cool-computer-99882

    11/07/2021, 7:21 PM
    hello! is there a way to get preSignedUrls for s3? I'm trying to do this https://aws.amazon.com/blogs/compute/uploading-to-amazon-s3-directly-from-a-web-or-mobile-application/
  • b

    bulky-area-51023

    11/07/2021, 8:10 PM
    Hi! I have a question regarding ComponentResource. I referred to this
    providers
    map, but I’m not still sure whether I can use two regions of AWS in single componentResource. What could be the best practice when we need multiple AWS providers in single ComponentResource?
    l
    • 2
    • 3
  • h

    high-holiday-63390

    11/07/2021, 9:36 PM
    I canceled a pulumi CLI run and now am told I must export my state, and edit it manually.
  • h

    high-holiday-63390

    11/07/2021, 9:36 PM
    It says to remove ‘succeeded pending operations’ from state and import it. But the pending operation did not succeed.
  • h

    high-holiday-63390

    11/07/2021, 9:40 PM
    Should I just remove it anyway?
    b
    n
    • 3
    • 4
  • h

    high-holiday-63390

    11/07/2021, 10:28 PM
    I’m having trouble working out the correct way to get a string from an output. Here’s what I’m trying to do
  • h

    high-holiday-63390

    11/07/2021, 10:28 PM
    const privateSubnets = await vpc.getSubnets('private')
        const result = privateSubnets.map(net => net.id).join(",")
    l
    • 2
    • 37
  • h

    high-holiday-63390

    11/07/2021, 11:58 PM
    Is there a way to share config across stacks? Say I have a dev, staging and prod env, and I want so share some common config across them. Yet each env should be able to override individual config entries.
    l
    e
    • 3
    • 3
  • f

    faint-planet-84558

    11/08/2021, 5:58 AM
    Hi, I have a question about Pulumi and Terraform. I have seen people say that Pulumi uses Terrafrom underneath, but apparently this is no longer the case and it is moving to native providers. Can someone give me confirmation about this? I searched docs and github issues but wasn't able to find anything that mentions this issue.
    e
    • 2
    • 2
  • a

    adorable-soccer-30455

    11/08/2021, 12:53 PM
    I have a Azure Container Registry created in one project and I'm going to use it in another project to publish a docker image. How can I get the registry in the second project to be able to build a docker image in it? This is my ACR:
    const acr = new azure_native.containerregistry.Registry("acr", {
                    registryName: acrname,
                    resourceGroupName: resgrpName,
                    sku: {
                        name: "Premium"
                    },
                    adminUserEnabled: false
                });
  • s

    salmon-raincoat-19475

    11/08/2021, 3:21 PM
    Can I specify a default
    aws:region
    and
    aws:profile
    for a project, as opposed to in each stack?
    l
    • 2
    • 7
  • b

    brave-angle-33257

    11/08/2021, 5:17 PM
    hi, trying to use AWSX package with 4.24.1, is that still valid? I'm getting an error telling me that there is no local package.json in the project, but for all other of my resources I have a package.json further up my directory tree and it seems only AWSX doesn't like that configuration. I have all my node_modules and package.json in the
    /data/pulumi
    directory built into my container:
    error: Error: Error reading file '/data/pulumi/infra/aws/projects/sitebuilder/environment/apigateway/package.json' when computing package dependencies. Error: ENOENT: no such file or directory, open '/data/pulumi/infra/aws/projects/sitebuilder/environment/apigateway/package.json'
            at readFile (/data/pulumi/node_modules/@pulumi/pulumi/runtime/closure/codePaths.js:167:19)
            at computeDependenciesDirectlyFromPackageFile (/data/pulumi/node_modules/@pulumi/pulumi/runtime/closure/codePaths.js:150:22)
            at /data/pulumi/node_modules/@pulumi/pulumi/runtime/closure/codePaths.js:115:36
            at /data/pulumi/node_modules/read-package-tree/rpt.js:162:20
    l
    • 2
    • 12
  • s

    sparse-intern-71089

    11/08/2021, 5:23 PM
    This message was deleted.
    f
    l
    e
    • 4
    • 3
  • f

    few-army-64952

    11/08/2021, 6:15 PM
    hi folks, has anybody seen anything like this:
    • 1
    • 2
  • h

    high-holiday-63390

    11/08/2021, 7:23 PM
    Is there a way to mark a resource to only be run once? For example, I want to start an AWS elastic beanstalk app with a sample application right away. From then on, I would like to deploy outside of pulumi. Of course I could add and remove code each time, but I’d be interested in a more automated approach. Maybe using a conditional configuration option?
    s
    l
    • 3
    • 4
  • s

    sparse-beach-51011

    11/08/2021, 8:55 PM
    hi all
    👋🏼 1
    👋 5
Powered by Linen
Title
s

sparse-beach-51011

11/08/2021, 8:55 PM
hi all
👋🏼 1
👋 5
View count: 1