awslabs / diagram-as-code

Diagram-as-code for AWS architecture.
Apache License 2.0
491 stars 30 forks source link

Allow to describe a raw URL as an input file #85

Closed a2ush closed 4 months ago

a2ush commented 4 months ago

Detail

Dac file (diagram as code format file) has already this feature, which allows you to describe a raw URL as an input file. PR: https://github.com/awslabs/diagram-as-code/pull/83

$ awsdac https://raw.githubusercontent.com/awslabs/diagram-as-code/main/examples/alb-ec2.yaml
[Completed] AWS infrastructure diagram generated: output.png

However, the side of CloudFormation template doesn't have it yet.

$ awsdac https://raw.githubusercontent.com/awslabs/diagram-as-code/main/examples/vpc-subnet-ec2-cfn.yaml --cfn-template
FATA[0000] unable to read file: open https://raw.githubusercontent.com/awslabs/diagram-as-code/main/examples/vpc-subnet-ec2-cfn.yaml: no such file or directory 
exit status 1