语法错误:文件意外结束(预期为“ do”)

时间:2019-07-27 19:23:00

标签: shell

我在Windows中的docker中的脚本下运行:

{
    "Parameters": {
        "BranchName": {
            "Description": "CodeCommit branch name for all the resources",
            "Type": "String",
            "Default": "master"
        },
        "RepositoryName": {
            "Description": "CodeComit repository name",
            "Type": "String",
            "Default": "aws-account-resources"
        },
        "CFNServiceRoleDeployA": {
            "Description": "CFN service role for create resourcecs for account-A",
            "Type": "String",
            "Default": "arn:aws:iam::xxxxxxxxxxxxxx:role/CloudFormation-service-role-cp"
        },
        "CodePipelineServiceRole": {
            "Description": "Service role for codepipeline",
            "Type": "String",
            "Default": "arn:aws:iam::xxxxxxxxxxxxxx:role/AWS-CodePipeline-Service"
        },
        "CodePipelineArtifactStoreBucket1": {
            "Description": "S3 bucket to store the artifacts",
            "Type": "String",
            "Default": "bucket-us-east-1"
        },
        "CodePipelineArtifactStoreBucket2": {
            "Description": "S3 bucket to store the artifacts",
            "Type": "String",
            "Default": "bucket-us-west-2"
        }
    },
    "Resources": {
        "AppPipeline": {
            "Type": "AWS::CodePipeline::Pipeline",
            "Properties": {
                "Name": {"Fn::Sub": "${AWS::StackName}-cross-account-pipeline" },
                "ArtifactStores": [
                    {
                        "ArtifactStore": {
                            "Type": "S3",
                            "Location": {
                                "Ref": "CodePipelineArtifactStoreBucket1"
                            }
                        },
                        "Region": "us-east-1"
                    },
                    {
                        "ArtifactStore": {
                            "Type": "S3",
                            "Location": {
                                "Ref": "CodePipelineArtifactStoreBucket2"
                            }
                        },
                        "Region": "us-west-2"
                    }
                ],
                "RoleArn": {
                    "Ref": "CodePipelineServiceRole"
                },
                "Stages": [
                    {
                        "Name": "Source",
                        "Actions": [
                            {
                                "Name": "SourceAction",
                                "ActionTypeId": {
                                    "Category": "Source",
                                    "Owner": "AWS",
                                    "Version": 1,
                                    "Provider": "CodeCommit"
                                },
                                "OutputArtifacts": [
                                    {
                                        "Name": "SourceOutput"
                                    }
                                ],
                                "Configuration": {
                                    "BranchName": {
                                        "Ref": "BranchName"
                                    },
                                    "RepositoryName": {
                                        "Ref": "RepositoryName"
                                    },
                                    "PollForSourceChanges": true
                                },
                                "RunOrder": 1
                            }
                        ]
                    },
                    {
                        "Name": "Deploy-to-account-A",
                        "Actions": [
                            {
                                "Name": "stage-1",
                                "InputArtifacts": [
                                    {
                                        "Name": "SourceOutput"
                                    }
                                ],
                              
                                
                                "ActionTypeId": {
                                    "Category": "Deploy",
                                    "Owner": "AWS",
                                    "Version": 1,
                                    "Provider": "CloudFormation"
                                },
                                "Configuration": {
                                    "ActionMode": "CREATE_UPDATE",
                                    "StackName": "cloudformation-stack-name-account-A",
                                    "TemplatePath":"SourceOutput::accountA.json",
                                    "Capabilities": "CAPABILITY_IAM",
                                    "RoleArn": {
                                        "Ref": "CFNServiceRoleDeployA"
                                    }
                                },
                                "RunOrder": 2,
                                "Region": "us-west-2"
                            }
                        ]
                    }

                    
                ]
            }
        }
    }
}

我遇到以下错误: 第13行:语法错误:文件意外结束(预期为“执行”)

里面有什么问题吗?

0 个答案:

没有答案