GithubHelp home page GithubHelp logo

Comments (1)

simonbrowndotje avatar simonbrowndotje commented on August 17, 2024 1

The DSL is parsed in order, so the relationships are not created at the point you define the deployment model. This works though:

workspace "Example" "bla bla" {
    model {
        enterprise "Ent" {
            studio = softwaresystem "Studio" "bla" {
                this_api = container "This API" "Pairing and heartbeat" "REST"
                that_api = container "That API" "" "GraphQL"
            }
            player = softwareSystem "Player" "bla bla"
        }
        google = softwareSystem "GCP" {
            firestore = container "Firestore" "" "" "Google Cloud Platform - Cloud Firestore" 
        }
        cdn = softwareSystem "CDN" "Cloudflare" 
        aws = softwareSystem "AWS" {
            redis = container "Cache" "Redis"
            postgres = container "Database" "PostgreSQL" ""
        }

        that_api -> postgres "Reads and writes"
        player -> this_api "Reads and writes (pairing)"
        player -> that_api "Reads and writes (content)"

        deploymentEnvironment "production" {
            deploymentNode "AWS" "" "" "Amazon Web Services - Cloud" {
                deploymentNode "US-East-1" "" "" "Amazon Web Services - Region" {
                    deploymentNode "EC2" "" "" "Amazon Web Services - EC2" {
                        this_api_instance = containerInstance this_api
                        that_api_instance = containerInstance that_api
                    }
                    deploymentNode "RDS" "" "" "Amazon Web Services - RDS PostgreSQL instance" {
                        postgres_instance = containerInstance postgres
                    }
                    deploymentNode "Redis" "" "" "Amazon Web Services - ElastiCache For Redis" {
                        redis_instance = containerInstance redis
                    }
                }
            }
        }
    }
    views {
        systemContext "studio" {
            include *
            autoLayout
        }
        container "studio" {
            include *
            autoLayout
        }
        container "google" {
            include *
            autoLayout
        }
        deployment studio "production" {
            include *
            autolayout lr
        }
        themes default https://static.structurizr.com/themes/amazon-web-services-2020.04.30/theme.json 
    }
}

from dsl.

Related Issues (20)

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.