「AWSに公開」機能を使用して、.NETSDKを介してWebアプリをEC2インスタンスにアップロードしようとしています。私の他のWebアプリケーションの場合、これは完全に機能しました。私が見ることができる2つの違いは、このWebアプリには、すでにライブになっている接続されたRDSインスタンスへの接続文字列があることだけです。
公開が完了すると、インスタンスが起動し、正常に実行されているように見えます。約10分以内に、インスタンスはロールバックして自動的に終了します。[失敗時に終了]チェックボックスをオフにすると、インスタンスは終了しませんが、Default.aspxページにアクセスできません。ログに役立つものは何も見つかりませんでした。接続ストリングと付属ボリュームと関係があるのではないかと思います。
インスタンスの起動に使用するRDSインスタンスにセキュリティグループを追加しましたが、それでも同じエラーが返されます。
公開情報:
インスタンスサイズ:Micro
SDKバージョン:
1.5.10 AMI:ami-10ec6520
リージョン:US West 2
エラー:
WaitConditionがタイムアウトしました。1を期待するときに0の条件を受け取りました。
スタックテンプレート
{
"AWSTemplateFormatVersion" : "2010-09-09",
"Description" : "This will launch a single EC2 instance and deploy your application to it. **WARNING** This template creates one or more Amazon EC2 instances. You will be billed for the AWS resources used if you create a stack from this template.",
"Parameters" : {
"InstanceType" : {
"Type" : "String",
"Default" : "t1.micro",
"Description" : "EC2 instance type."
},
"KeyPair" : {
"Type" : "String",
"Description" : "EC2 Key Pair."
},
"SecurityGroup" : {
"Type" : "String",
"Description" : "EC2 Security Group"
},
"BucketName" : {
"Type" : "String",
"Description" : "[Hidden]S3 Bucket for deployment."
},
"ConfigFile" : {
"Type" : "String",
"Description" : "[Hidden]Deployment Configuration File."
},
"AmazonMachineImage" : {
"Type" : "String",
"Default" : "ami-10ec6520",
"Description" : "AMI to launch."
},
"UserData" : {
"Type" : "String",
"Description" : "[Hidden]Base64-Encoded user data."
}
},
"Resources" : {
"DeployedApplicationWaitHandle" : {
"Type" : "AWS::CloudFormation::WaitConditionHandle",
"Properties" : {
}
},
"DeployedApplicationWaitCondition" : {
"Type" : "AWS::CloudFormation::WaitCondition",
"DependsOn" : "Ec2Instance",
"Properties" : {
"Handle" : { "Ref" : "DeployedApplicationWaitHandle" },
"Timeout" : "900"
}
},
"Ec2Instance" : {
"Type" : "AWS::EC2::Instance",
"Properties" : {
"ImageId" : { "Ref" : "AmazonMachineImage" },
"KeyName" : { "Ref" : "KeyPair" },
"InstanceType" : { "Ref" : "InstanceType" },
"SecurityGroups" : [{ "Ref" : "SecurityGroup" }],
"UserData" : { "Fn::Base64" : {"Fn::Join" : [ "", ["[", { "Ref" : "UserData" }, "]", "[", { "Ref" : "DeployedApplicationWaitHandle" }, "]"] ]}}
}
}
},
"Outputs" : {
"URL" : {
"Description": "URL of the deployed application",
"Value" : { "Fn::Join" : [ "", [ "http://", { "Fn::GetAtt" : [ "Ec2Instance", "PublicDnsName" ] }]]}
},
"Bucket" : {
"Description" : "The S3 Bucket where the Web Deploy archive and configuration file are uploaded",
"Value" : { "Ref" : "BucketName" }
},
"ConfigFile" : {
"Description" : "The deployment configuration for the application",
"Value" : { "Ref" : "ConfigFile" }
},
"VSToolkitDeployed" : {
"Description" : "A flag indicating that the stack was created via VSToolkit Deploy wizard",
"Value" : "True"
}
}
}
2013年1月18日更新
ついに、RDPを使用できるインスタンスを起動しました。以下は、突き出たエラーです。
エラー:
Microsoft.Web.Deployment.DeploymentFatalException:依存関係がないため、SQLプロバイダーを実行できません。Microsoft SQL Server管理オブジェクト(バージョン10以降)がインストールされていることを確認してください。---> System.IO.FileNotFoundException:ファイルまたはアセンブリ'Microsoft.SqlServer.Smo、Version = 10.0.0.0、Culture = neutral、PublicKeyToken=89845dcd8080cc91'またはその依存関係の1つを読み込めませんでした。システムは、指定されたファイルを見つけることができません。
どんな助けでも大歓迎です!提供するのに役立つ情報が他にある場合は、お知らせください。