Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🚀 feature: support aws group resources #2

Merged
merged 2 commits into from
Dec 14, 2023
Merged

Conversation

Anddd7
Copy link
Owner

@Anddd7 Anddd7 commented Dec 14, 2023

Base #1, package the aws group resource as an individual cluster, e.g. vpc, region, subnet.

  • Add 5 icons,
  • Adjust the color for those areas

Ref:

Demo:

with Diagram("dist/demo", show=False):
    with ClusterCloud():
        with ClusterRegion("ap-southeast-1a"):
            with ClusterAccount("workload"):
                igw = InternetGateway()

                with ClusterPublicSubnet("public"):
                    nat = NATGateway()
                    elb = ElasticLoadBalancing()
                with ClusterPrivateSubnet("private"):
                    eks = EKS()
                with ClusterIntraSubnet("intra"):
                    rds = RDSInstance()
                with ClusterSecureSubnet("secure"):
                    slb = ElasticLoadBalancing()

                igw >> elb >> eks >> rds
                eks >> nat >> igw
                eks << slb

image

@Anddd7 Anddd7 merged commit 96704b1 into main Dec 14, 2023
1 check passed
@Anddd7 Anddd7 deleted the feature/aws-group-resource branch December 14, 2023 07:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant