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
hackathon-03-19-2020
  • w

    white-balloon-205

    03/18/2020, 6:13 AM
    @green-morning-1318 sure! šŸ˜„ . Though it's not so much a "submit" kind of thing as a "work on" and "share" thing. Feel free to share details here about the project you are going to be working on (even if it's something you are already working on), and to join us for kickoff and demo sessions on Thursday!
  • g

    green-morning-1318

    03/18/2020, 3:47 PM
    Thanks @white-balloon-205 😁 I’m kinda working on two things. • AWS SAM allows you to choose from a list of policy templates to scope the permissions of your Lambda functions to the resources that are used by your application. Pulumi doesn’t have this functionality (which I understand by the way), so I built a Go module for it: https://github.com/retgits/pulumi-helpers. My idea for this one is to create ā€œhelperā€ methods for things I frequently need to do, which might simplify my code and speed up development even more. • The team I’m in built a Fitness shop as demo app and I built a serverless version based on that. Most of the deployments are done with Pulumi: https://github.com/retgits/acme-serverless (this is the main repo, all services have their own repo).
  • b

    brief-school-94535

    03/18/2020, 11:18 PM
    Whaaaaat? This is awesome
    šŸ‘‹ 1
    šŸ’Æ 2
    b
    • 2
    • 3
  • g

    green-morning-1318

    03/18/2020, 11:44 PM
    Now if only someone could hook me up with a sweet CircleCI account I could add CI/CD in there too šŸ˜
    b
    • 2
    • 3
  • g

    gorgeous-egg-16927

    03/19/2020, 3:42 AM
    Here’s a simple project to get started for folks wanting to hack on the Go k8s SDK. I included a README.md file in the folder with instructions and caveats.
    šŸŽ‰ 2
    šŸ˜›ulumipus-8bit: 1
    šŸ˜›artyk8s: 2
    b
    b
    +2
    • 5
    • 7
  • b

    bright-orange-69401

    03/19/2020, 1:14 PM
    I'm not sure if I'll have the time but I wanted to suggest a topic for this Hackathon : Slack doesn't have an API for creating a Workspace, and so this step needs to be done manually everytime so that you can get an API key and then use the official API to perform chat automation (AKA ChatOps) My idea is that if you use the Chrome Debugger and create a Slack Workspace, it's easy to reverse-engineer the POST request that goes to their servers (I have the URL & payload if you need it) This POST request is actually a public API, so it can be wrapped via Pulumi in a Dynamic Provider ! So my project is a proof-of-concept of that : making a Pulumi Dynamic Provider for any HTTP API (showcased via Slack) If you're interested in collaborating, feel free to reply to this thread and I'll share the details of what I have so far šŸš€
    šŸ‘ 1
    w
    • 2
    • 1
  • t

    tall-librarian-49374

    03/19/2020, 3:18 PM
    If anybody wants to give testing a try, this PR has basic examples of mock-based unit testing in all four runtimes, as well as a Policy-as-code testing example in TypeScript: https://github.com/pulumi/examples/pull/608
    šŸš€ 1
    r
    • 2
    • 1
  • w

    white-balloon-205

    03/19/2020, 4:32 PM
    Join the Hackathon Kickoff meeting now at https://zoom.us/j/608276296?pwd=WnVKcWl1WEE3L3pHZkxqL244b216QT09 (also pinned to channel).
  • m

    microscopic-pilot-97530

    03/19/2020, 4:48 PM
    Here’s some information on trying out Python policies (thread)
    • 1
    • 2
  • b

    breezy-hamburger-69619

    03/19/2020, 4:51 PM
    I’ll be using the new Go SDK for k8s to port some popular 3rd party services. If anyone else is working on k8s work and has questions or needs another pair of šŸ‘€ , happy to help
  • g

    gentle-church-64629

    03/19/2020, 4:52 PM
    Today I will be working on adding the new policy as code configuration model into AWSguard, our collection of policies for AWS resources.
    • 1
    • 1
  • f

    faint-table-42725

    03/19/2020, 5:00 PM
    Originally, I wasn’t sure how to make the ā€˜chaos monkey’ idea work. I wanted to bring in the resources and run my test code in the same application, but couldn’t think of a way to make that work. Because after you import a resource, you can’t change it again in the same run. Then I remembered there’s
    EditDirs
    in
    ProgamTest
    , which lets you apply multiple steps. So now I’m thinking the way this would work is you take an existing Pulumi application as the first step, then subsequent steps are additive updates to modify the resources. And the tests would occur within each step (or potentially
    ProgramTest
    itself). But thinking through this, I’m not sure this is actually any kind of improvement over writing directly against the provider APIs. Thoughts on if this ergonomically seems useful? I do like the idea of the fact that with each step, the state of your infrastructure is quite clear (vs writing a bunch of API calls to modify resources).
  • l

    lemon-agent-27707

    03/19/2020, 5:12 PM
    If anyone is interested in the ongoing work on our Go SDK, and would be interested in playing with code generation, then this might be a fun hackathon issue to look at: https://github.com/pulumi/pulumi/issues/3861
  • b

    brief-school-94535

    03/19/2020, 5:53 PM
    I want to participate but I got this thing called work for the next 2 hours but I'll be back later
  • b

    brief-school-94535

    03/19/2020, 5:54 PM
    ready to hack!
  • g

    green-morning-1318

    03/19/2020, 5:57 PM
    priorities Angel šŸ™„ šŸ˜‚
  • g

    green-morning-1318

    03/19/2020, 6:04 PM
    Hi team, is there any way to debug / troubleshoot why my
    pulumi up
    command is ā€œhangingā€? It doesn’t look like anything is happening šŸ˜ž
    w
    • 2
    • 10
  • w

    white-balloon-205

    03/19/2020, 6:07 PM
    Debugger attached to Pulumi TypeScript program!
    šŸ˜›ulumipus-8bit: 6
    šŸŽ‰ 6
  • g

    green-morning-1318

    03/19/2020, 9:48 PM
    Alright!! Created 166 resources through Pulumi… Among them 24 Lambda Functions, 4 API Gateways, 6 SQS Queues, and 1 S3 Bucket
    šŸš€ 4
    šŸ’„ 1
  • w

    white-balloon-205

    03/19/2020, 11:04 PM
    pulumi preview
    errors in VS Code!
    ā¤ļø 3
    šŸŽ‰ 5
    🤩 3
    g
    • 2
    • 2
  • g

    gentle-diamond-70147

    03/19/2020, 11:05 PM
    message has been deleted
  • g

    gentle-diamond-70147

    03/19/2020, 11:08 PM
    I just got my configurable policies to a good spot. The policies are checking for instance classes that are used (e.g.
    t3.medium
    ) and the total number of instances in my stack. Here's output with policy violations with "DEV" config. The same code passes with no violations with my "PROD" config that allows for different instance classes and more instances (in thread).
    Untitled
    • 1
    • 1
  • f

    faint-table-42725

    03/19/2020, 11:42 PM
    I won’t be able to make it to the demos šŸ˜ž Hoping to hear about all the awesome things people hacked on though! I kind of got a rejiggered version of
    ProgramTest
    working the way I would think you’d want to do some kind of chaos testing. But I was trying it on the service stack, which has a decently long preview time, and I’m not sure this is how I’d want to actually do this type of testing in practice.
    šŸ˜ž 1
    g
    • 2
    • 1
  • b

    big-piano-35669

    03/19/2020, 11:48 PM
    ok, probably should have factored in day full of meetings, podcasts, etc when scoping this šŸ˜† However, baby steps
    package main
    
    import (
    	"<http://github.com/pulumi/pulumi-kubernetes/sdk/go/kubernetes/yaml|github.com/pulumi/pulumi-kubernetes/sdk/go/kubernetes/yaml>"
    	"<http://github.com/pulumi/pulumi/sdk/go/pulumi|github.com/pulumi/pulumi/sdk/go/pulumi>"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := yaml.NewConfigFile(ctx, "guestbook",
    			&yaml.ConfigFileArgs{File: "guestbook-all-in-one.yaml"},
    		)
    		return err
    	})
    }
    šŸ˜›artyk8s: 1
    • 1
    • 1
  • g

    green-morning-1318

    03/19/2020, 11:49 PM
    Can you run this against any K8s cluster?
    b
    • 2
    • 6
  • g

    green-morning-1318

    03/19/2020, 11:50 PM
    In which case I’ll go and try that later tonight…
  • g

    gentle-diamond-70147

    03/19/2020, 11:59 PM
    šŸ˜›ulumipus-8bit: Reminder of the Hackathon Demos Zoom in ~1 minute. šŸ˜›ulumipus-8bit: https://zoom.us/j/250621391?pwd=UnlsR0RUbVFMaS9tNlk5aGpOVjJrZz09
  • b

    breezy-hamburger-69619

    03/20/2020, 12:02 AM
    Gave a shot at porting the ALB ing controller to the Go SDK. Kinda got it running, but it’s not working as it needs inputs/outputs that i have not learned to use yet: https://gist.github.com/metral/efe77ba19caeb6dab51950ce8a2fe747
  • g

    green-morning-1318

    03/20/2020, 12:55 AM
    Hi y’all! First off, massive thanks to the Pulumi team to run this awesome hackathon today šŸ‘. That gave me the opportunity to play around with the Go SDK and update a bunch of stuff for a project called the ACME Serverless Fitness Shop 🚓 šŸ‹ļø The ACME Serverless Fitness Shop (combining two things I like, serverless and fitness) is a complete webapp that leverages AWS serverless technology to run (Lambda, DynamoDB, API Gateway, and S3). The code in the repository is structured in a way that you could add other services or replace existing ones. The main repository of the ACME Serverless Fitness Shop (https://github.com/retgits/acme-serverless) contains links to seven different domains of service: * Shipment: https://github.com/retgits/acme-serverless-shipment 🚚 * Payment: https://github.com/retgits/acme-serverless-payment šŸ’° * Order: https://github.com/retgits/acme-serverless-order šŸ“¦ * Cart: https://github.com/retgits/acme-serverless-cart šŸ›’ * Catalog: https://github.com/retgits/acme-serverless-catalog šŸ“– * User: https://github.com/retgits/acme-serverless-user šŸ‘Øā€šŸ’» * Point-of-Sales: https://github.com/retgits/acme-serverless-pos šŸ›ļø To make the deployments a little easier, and not repeat code too much, I also built a Go module called pulumi-helpers (https://github.com/retgits/pulumi-helpers). That repo contains all the AWS IAM policies that AWS SAM offers, but in a Go format so you can easily add them to your Pulumi app. The Payment Service (https://github.com/retgits/acme-serverless-payment/tree/circleci-project-setup) has a specific branch circleci-project-setup that has CI/CD set up with CircleCI and the Pulumi Orb. If y’all have suggestions how to improve anything in the repos, just let me know šŸ˜‡
    šŸ’Æ 5
    šŸ”„ 5
  • w

    white-balloon-205

    09/16/2020, 4:53 PM
    archived the channel
Powered by Linen
Title
w

white-balloon-205

09/16/2020, 4:53 PM
archived the channel
View count: 7