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

    bright-motherboard-93404

    10/24/2018, 7:20 PM
    Is there a way to get the current stack name programmatically?
    w
    • 2
    • 3
  • s

    stale-holiday-22431

    10/24/2018, 8:01 PM
    I’ve created an ElasticSearch cluster in Pulumi. What’s the right way to use the
    endpoint
    it outputs in the config files I generate for downstream resources? To get that value as a string, do I put the whole downstream resource inside the output’s
    apply()
    ?
    w
    • 2
    • 5
  • e

    early-musician-41645

    10/24/2018, 10:32 PM
    I'm totally new to Pulumi and trying it out as a PoC for a project for my team. Specifically, I want to create AWS resources like EKS and an autoscaling group, some S3 buckets and objects, etc. I'd like to use python. I tried the tutorial but now I'm getting errors like this:
    pulumi stack
    error: open /home/tsi.lan: permission denied
    Does pulumi need to run as root?
  • e

    early-musician-41645

    10/24/2018, 10:40 PM
    Here's a higher-level error:
    $ pulumi new aws-python --dir vnext-cluster-poc
    This command will walk you through creating a new Pulumi project.
    
    Enter a value or leave blank to accept the default, and press <ENTER>.
    Press ^C at any time to quit.
    project name: (vnext-cluster-poc)
    project description: (A minimal AWS Python Pulumi program)
    Created project 'vnext-cluster-poc'.
    stack name: (vnext-cluster-poc-dev)
    Created stack 'vnext-cluster-poc-dev'
    aws:region: The AWS region to deploy into: (us-east-1) us-west-2
    Installing dependencies...
    Your new project is configured and ready to go!
    Previewing update (vnext-cluster-poc-dev):
    
         Type                     Name                                     Plan       Info
     +   pulumi:pulumi:Stack      vnext-cluster-poc-vnext-cluster-poc-dev  create
         └─ pulumi:providers:aws  default                                             1 error
    
    Diagnostics:
      pulumi:providers:aws (default):
        error: no resource plugin 'aws' found in the workspace or on your $PATH
    
    error: an error occurred while advancing the preview
    What's up with that error?
  • i

    incalculable-sundown-82514

    10/24/2018, 10:47 PM
    @early-musician-41645 hmm, the plugin is supposed to install alongside your Python dependencies - have you run “pip install -r requirements.txt” yet? Also what version of the Pulumi CLI are you using?
  • e

    early-musician-41645

    10/24/2018, 10:51 PM
    $ pip install -r requirements.txt
    Requirement already satisfied (use --upgrade to upgrade): pulumi>=0.15.0 in /usr/lib/python2.7/site-packages (from -r requirements.txt (line 1))
    Requirement already satisfied (use --upgrade to upgrade): pulumi_aws>=0.15.0 in /usr/lib/python2.7/site-packages (from -r requirements.txt (line 2))
    Requirement already satisfied (use --upgrade to upgrade): protobuf>=3.6.0 in /usr/lib64/python2.7/site-packages (from pulumi>=0.15.0->-r requirements.txt (line 1))
    Requirement already satisfied (use --upgrade to upgrade): grpcio>=1.9.1 in /usr/lib64/python2.7/site-packages (from pulumi>=0.15.0->-r requirements.txt (line 1))
    Requirement already satisfied (use --upgrade to upgrade): six>=1.11.0 in /usr/lib/python2.7/site-packages (from pulumi>=0.15.0->-r requirements.txt (line 1))
    Requirement already satisfied (use --upgrade to upgrade): setuptools in /usr/lib/python2.7/site-packages (from protobuf>=3.6.0->pulumi>=0.15.0->-r requirements.txt (line 1))
    Requirement already satisfied (use --upgrade to upgrade): futures>=2.2.0 in /usr/lib/python2.7/site-packages (from grpcio>=1.9.1->pulumi>=0.15.0->-r requirements.txt (line 1))
    Requirement already satisfied (use --upgrade to upgrade): enum34>=1.0.4 in /usr/lib/python2.7/site-packages (from grpcio>=1.9.1->pulumi>=0.15.0->-r requirements.txt (line 1))
    You are using pip version 8.1.2, however version 18.1 is available.
    You should consider upgrading via the 'pip install --upgrade pip' command.
  • e

    early-musician-41645

    10/24/2018, 10:52 PM
    $ pulumi version
    v0.16.0
  • i

    incalculable-sundown-82514

    10/24/2018, 10:54 PM
    OK, you should be able to install the plugin using `pulumi plugin install resource aws v0.15.0"
  • i

    incalculable-sundown-82514

    10/24/2018, 10:54 PM
    can you open an issue for this, though?
    e
    • 2
    • 2
  • e

    early-musician-41645

    10/24/2018, 11:15 PM
    Where is the issues url?
    w
    • 2
    • 1
  • b

    busy-umbrella-36067

    10/24/2018, 11:19 PM
    Is remote preview and update on the road map? (terraform Enterprise like functionality)
    b
    • 2
    • 1
  • h

    hundreds-musician-51496

    10/25/2018, 3:39 AM
    I started using pulumi Tuesday and I have already deployed a container to ecs, uploaded a static site to s3, created load balancers to front my ecs cluster, and updated dns in route 53 with the load balancers aliases!
    🎉 5
    💯 1
  • h

    hundreds-musician-51496

    10/25/2018, 3:39 AM
    Pretty much an aws n00b too.
  • h

    hundreds-musician-51496

    10/25/2018, 3:41 AM
    I worked backwards from the fargate example to figure out what AWS resources I needed. Lots of manual poking which helped me figure out what code to write too.
  • h

    hundreds-musician-51496

    10/25/2018, 3:42 AM
    I started by copy pasta the Service class because I needed more control (load balancer IDs). I was thrilled today when I ended by uploading my React app to s3.
  • w

    white-balloon-205

    10/25/2018, 3:44 AM
    Congrats @hundreds-musician-51496!
  • h

    hundreds-musician-51496

    10/25/2018, 3:49 AM
    Having typescript makes the API SOOO much more discoverable. Lots easier to figure out arguments for a constructor when the compiler tells you about them.
    👍 3
  • q

    quick-action-34599

    10/25/2018, 1:54 PM
    ^ yarp
    👍 1
  • q

    quick-action-34599

    10/25/2018, 2:24 PM
    hmm
  • q

    quick-action-34599

    10/25/2018, 2:25 PM
    I'm importing some task definitions from one file into my main one, but they're not being created unless I console.log them or somehow use them. I'm guessing due to how typescript/ES6 handles unused imports. What's the right way to do this?
  • s

    sparse-insurance-40223

    10/25/2018, 2:48 PM
    if you export something dependent on them it wont compile them away
  • q

    quick-action-34599

    10/25/2018, 2:54 PM
    not sure what you mean
  • q

    quick-action-34599

    10/25/2018, 2:54 PM
    oh now I think I do. Yea, nothing depends on them.
  • q

    quick-action-34599

    10/25/2018, 2:55 PM
    adding the console.log statements works; it's just kinda janky
  • s

    sparse-insurance-40223

    10/25/2018, 2:57 PM
    i basically do export const deployedServiceIpAddresses = generatethemallasalisthere;
  • s

    sparse-insurance-40223

    10/25/2018, 2:58 PM
    pulumi picks up all the exports from the entrypoint file and prints them in a nice list
  • q

    quick-action-34599

    10/25/2018, 3:02 PM
    ah-ha
  • q

    quick-action-34599

    10/25/2018, 3:03 PM
    thanks
  • w

    white-balloon-205

    10/25/2018, 3:05 PM
    You can also import with
    import “./other”
    to force the module to be imported even if no values are used. This is a somewhat strange TypeScript design choice. See https://github.com/Microsoft/TypeScript/issues/9191#issuecomment-226258610.
  • h

    hundreds-musician-51496

    10/25/2018, 4:13 PM
    How do I convince pulumi to push my docker image to ECR when I'm tagging it with
    latest
    ?
Powered by Linen
Title
h

hundreds-musician-51496

10/25/2018, 4:13 PM
How do I convince pulumi to push my docker image to ECR when I'm tagging it with
latest
?
View count: 1