Giter Site home page Giter Site logo

aws-samples / aws-serverless-developer-experience-workshop-dotnet Goto Github PK

View Code? Open in Web Editor NEW
8.0 6.0 9.0 941 KB

This repository contains the reference architecture implementation for the AWS Serverless Developer Experience workshop in .NET

Home Page: https://catalog.workshops.aws/serverless-developer-experience

License: MIT No Attribution

C# 97.98% Shell 0.50% Makefile 1.53%
aws-sam dotnet event-driven serverless aws aws-sam-cli

aws-serverless-developer-experience-workshop-dotnet's Introduction

AWS Serverless Developer Experience Workshop Reference Architecture

AWS Serverless Developer Experience workshop reference architecture (.NET)

This repository contains the reference architecture for the AWS Serverless Developer Experience workshop.

The AWS Serverless Developer Experience workshop provides you with an immersive experience as a serverless developer. The goal of this workshop is to provide you with hands-on experience building a serverless solution using the AWS Serverless Application Model (AWS SAM) and AWS SAM CLI.

Along the way, you will learn about principals of distributed event-driven architectures, messaging patterns, orchestration, and observability and how to apply them in code. You will explore exciting open-source tools, the core features of Powertools for AWS Lambda, and simplified CI/CD deployments supported by AWS SAM Pipelines.

At the end of this workshop, you will be familiar with Serverless developer workflows and microservice composition using AWS SAM, Serverless development best practices, and applied event-driven architectures.

Introducing the Unicorn Properties architecture

AWS Serverless Developer Experience Workshop Reference Architecture

Our use case is based on a real estate company called Unicorn Properties.

As a real estate agency, Unicorn Properties needs to manage the publishing of new property listings and sale contracts linked to individual properties, and provide a way for their customers to view approved property listings.

To support their needs, Unicorn Properties have adopted a serverless, event-driven approach to designing their architecture. This architecture is centred around two primary domains: Contracts (managed by the Contracts Service) and Properties (managed by the Web and Properties Services).

The Unicorn Contracts service (namespace: Unicorn.Contracts) is a simplified service that manages the contractual relationship between a seller of a property and Unicorn Properties. Contracts are drawn up that define the property for sale, the terms and conditions that Unicorn Properties sets, and how much it will cost the seller to engage the services of the agency.

The Unicorn Web (namespace: Unicorn.Web) manages the details of a property listing to be published on the Unicorn Properties website. Every property listing has an address, a sale price, a description of the property, and some photos that members of the public can look at to get them interested in purchasing the property. Only properties that have been approved for publication can be made visible to the public.

The Unicorn Properties service (namespace: Unicorn.Properties) approves a property listings. This service implements a workflow that checks for the existence of a contract, makes sure that the content and the images are safe to publish, and finally checks that the contract has been approved. We don’t want to publish a property until we have an approved contract!

Have a go at building this architecture yourself! Head over to the Serverless Developer Experience Workshop for more details.

Credits

Throughout this workshop we wanted to introduce you to some Open Source tools that can help you build serverless applications. This is not an exhaustive list, just a small selection of what we will be using in the workshop.

Many thanks to all the AWS teams and community builders who have contributed to this list:

Tools Description Download / Installation Instructions
cfn-lint Validate AWS CloudFormation yaml/json templates against the AWS CloudFormation Resource Specification and additional checks. https://github.com/aws-cloudformation/cfn-lint
cfn-lint-serverless Compilation of rules to validate infrastructure-as-code templates against recommended practices for serverless applications. https://github.com/awslabs/serverless-rules
@mhlabs/iam-policies-cli CLI for generating AWS IAM policy documents or SAM policy templates based on the JSON definition used in the AWS Policy Generator. https://github.com/mhlabs/iam-policies-cli
@mhlabs/evb-cli Pattern generator and debugging tool for Amazon EventBridge https://github.com/mhlabs/evb-cli

aws-serverless-developer-experience-workshop-dotnet's People

Contributors

amazon-auto avatar arunsathiya avatar igorlg avatar kevinwochan avatar sebastiankasprzak avatar sliedig avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

aws-serverless-developer-experience-workshop-dotnet's Issues

fix: add SqsManagedSseEnabled to SQS resources explicitly

Internal code scanning requirement. Example:

PropertiesEventBusRuleDLQ:
    Type: AWS::SQS::Queue
    UpdateReplacePolicy: Delete
    DeletionPolicy: Delete
    Properties:
      SqsManagedSseEnabled: true
      MessageRetentionPeriod: 1209600 # Maximum value, 1,209,600 (14days)
      Tags:
        - Key: project
          Value: AWS Serverless Developer Experience
        - Key: service
          Value: !Sub "{{resolve:ssm:/UniProp/${Stage}/UnicornPropertiesNamespace}}"
        - Key: stage
          Value: !Ref Stage

Maintenance: Define namespaces only once

Summary

Namespaces defined in parameter store only need to be defined once per domain/sub-domain. They are not environment specific variables.

Why is this needed?

Simplify the use of namespace parameters and make the definitions of namespaces unique per domain.

Solution

No response

Maintenance: README files for services

Summary

Thereadme files for each of the services do not have workshop relevant content

Why is this needed?

Add service overview from workshop

Solution

No response

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.