简体   繁体   English

AWS云形成的自动化

[英]Automation For AWS Cloud formation

我想使用Shell脚本来实现Amazon Web Services中云形成的自动化吗?但是,如果我们考虑五个资源,例如(1 VPC,2子网,4 EC2、1 ELB,S3),则需要添加很多参数在shell脚本中。任何帮助将不胜感激。

AWS CloudFormation ( https://aws.amazon.com/cloudformation/details/ ) allows you to define AWS resources in a declarative way. AWS CloudFormation( https://aws.amazon.com/cloudformation/details/ )允许您以声明的方式定义AWS资源。 For example to create an instance: 例如创建一个实例:

{

    "Description" : "Create an EC2 instance running the Amazon Linux 32 bit AMI.",

    "Parameters" : {

        "KeyPair" : {

            "Description" : "The EC2 Key Pair to allow SSH access to the instance",

            "Type" : "String"

        }

    },

    "Resources" : {

        "Ec2Instance" : {

            "Type" : "AWS::EC2::Instance",

            "Properties" : {

                "KeyName" : { "Ref" : "KeyPair" },

                "ImageId" : "ami-3b355a52"

            }

        }

    },

    "Outputs" : {

        "InstanceId" : {

            "Description" : "The InstanceId of the newly created EC2 instance",

            "Value" : {

                "Ref" : "Ec2Instance"

            }

        }

    },

    "AWSTemplateFormatVersion" : "2010-09-09"

} 

If you could be more specific in your question then maybe someone can assist further. 如果您的问题更具体,那么也许有人可以提供进一步的帮助。

然后,您可以使用来自文本编辑器的一些插件:对于Atomatom.io/packages/…对于崇高的3 github.com/beaknit/cform

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM