awslabs / diagram-as-code

Diagram-as-code for AWS architecture.
Apache License 2.0
405 stars 22 forks source link

Add support for reading YAML data from remote URLs #83

Closed a2ush closed 1 month ago

a2ush commented 1 month ago

Issue #, if available:

Description of changes:

$ go run cmd/awsdac/main.go https://raw.githubusercontent.com/awslabs/diagram-as-code/main/examples/alb-ec2.yaml -o http-input.png
[Completed] AWS infrastructure diagram generated: http-input.png

$ go run cmd/awsdac/main.go https://github.com/awslabs/diagram-as-code/blob/main/examples/alb-ec2.yaml -o http-input-err.png
FATA[0000] yaml: line 211: mapping values are not allowed in this context 
exit status 1

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.