Amazon cloudformation 从cloudformation模板绘制图像

Amazon cloudformation 从cloudformation模板绘制图像,amazon-cloudformation,aws-cli,Amazon Cloudformation,Aws Cli,是我可以用来将cloudformation模板转换为图表的任意绘图/导出工具 需要将我的cloudformation堆栈导出到图像或graphviz文件中 关于,您可以使用。单击打开,然后上传你的模板。最后,拍摄结果的屏幕截图,以图像格式显示 下面是一个结果可能是什么样的示例: 有关更多信息,请查看。您可以使用该工具的最新版本从模板中获取资源图 像这样使用它: pip3 install cfn-lint pydot cfn-lint template.json -g 例如,它将生成一个点文件

是我可以用来将
cloudformation
模板转换为图表的任意绘图/导出工具

需要将我的
cloudformation
堆栈导出到图像或graphviz文件中

关于,

您可以使用。单击打开,然后上传你的模板。最后,拍摄结果的屏幕截图,以图像格式显示

下面是一个结果可能是什么样的示例:


有关更多信息,请查看。

您可以使用该工具的最新版本从模板中获取资源图

像这样使用它:

pip3 install cfn-lint pydot
cfn-lint template.json -g
例如,它将生成一个点文件,其渲染方式如下:

pip3 install cfn-lint pydot
cfn-lint template.json -g

对应于此模板的:

{
  "AWSTemplateFormatVersion": "2010-09-09",
  "Description": "Sample template that demonstrates Fn::GetAtt",
  "Resources": {
    "DetectTextInImage": {
      "Type": "AWS::Lambda::Function",
      "Properties": {
        "Role": {
          "Fn::GetAtt": [
            "DetectTextInImageRole",
            "Arn"
          ]
        }
      }
    },
    "DetectTextInImageBucketEvent1Permission": {
      "Type": "AWS::Lambda::Permission",
      "Properties": {}
    },
    "DetectTextInImageRole": {
      "Type": "AWS::IAM::Role",
      "Properties": {}
    },
    "ResultsTable": {
      "Type": "AWS::DynamoDB::Table",
      "Properties": {}
    },
    "SourceImageBucket": {
      "Type": "AWS::S3::Bucket",
      "Properties": {
        "NotificationConfiguration": {
          "LambdaConfigurations": [
            {
              "Function": {
                "Fn::GetAtt": [
                  "DetectTextInImage",
                  "Arn"
                ]
              }
            }
          ]
        }
      }
    }
  }
}
在编辑CloudFormation模板时,在右上角还有一个: