How to use the diagrams.onprem.iac.Ansible function in diagrams

To help you get started, we’ve selected a few diagrams examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github accurics / terrascan / docs / architecture.diagrams.py View on Github external
with Diagram("Terrascan architecture", show=False):
    cli = Bash("CLI")
    server = Server("API server")
    notifier = ConsoleMobileApplication("Notifier (Webhook)")
    writer = Bash("Writer (JSON, YAML, XML)")

    with Cluster("Runtime"):
        ECS("Input Validate")
        output = ECS("Output")
        ECS("Process")

    with Cluster("IaC Providers"):
        tf = iac.Terraform("Terraform")
        ansible = iac.Ansible("Ansible")
        cft = Cloudformation("CloudFormation")


    with Cluster("Policy Engine"):
        policy = [
            VM("Azure"),
            GCE("GCP"),
            ECS("AWS")
        ]

    server >> output >> tf >> policy >> notifier
    cli >> output >> ansible >> policy >> writer
    output >> cft >> policy