how to deploy 64bit Windows Server 2016/IIS 10.0 using SingleInstance CloudFormation template











up vote
0
down vote

favorite












I need to host my app on Windows Server 2016 by using AWS.
as following adding Container.Type = 64bit Windows Server 2016/IIS 10.0 does not work.
here is sample CloudFormation template.



### Sample Deployment Config for the SingleInstance CloudFormation template
###
### To get the sample application to deploy you will need to customize the credentials settings
### (search for entries with values of YOUR_CREDENTIALS_HERE) then run the command. The configured
### KeyPair and SecurityGroup must already exist.
###
### awsdeploy SingleInstanceDeploymentSample.txt
###

########################
### General Settings ###
########################

### Name of the CloudFormation stack to create
StackName = MySingleInstanceStack

### Location of the web deploy archive
DeploymentPackage = AWSDeploymentSampleApp.zip

### Region to deploy to
Region = us-east-1

### Template can be 'SingleInstance' or 'LoadBalanced'.
Template = SingleInstance

### S3 bucket where the deployment materials will be stored. If this doesn't exist it will
### be created.
### NOTE: change the bucket name to be unique in S3 and owned by you.
UploadBucket = awsdeployment-us-east-1-samples

### EC2 Keypair for logging into the instance
KeyPair = default

### Account Profile registered with the AWS Toolkit for Visual Studio or stored in the credentials file file found at
### <userhome-directroy>.awscredentials. The account profile is used to create the stack and deploy the application to S3.
AWSProfileName = YOUR_PROFILE_NAME_HERE

### AWS Access Key and Secret Key used to create the stack and deploy the application to S3 if not using account profiles.
# AWSAccessKey = YOUR_CREDENTIALS_HERE
# AWSSecretKey = YOUR_CREDENTIALS_HERE

###########################
### Template Parameters ###
###########################

Template.InstanceType = t1.micro

### This security group must exist and allow ingress on port 80.
Template.SecurityGroup = default

### Template.AmazonMachineImage: Custom AMI to Launch. Must have the AWS Deployment service installed.

#############################################################################################
### Environment Settings ###
### ###
### These are available to the deployed application through the web.config as appSettings ###
#############################################################################################

Environment.PARAM1 = testing
Environment.PARAM2 = 123
Environment.PARAM3 =
Environment.PARAM4 =
Environment.PARAM5 =

### Access Key and Secret Key that your application uses to access AWS services.
### Best practice is to create an IAM user with just enough permissions to run
### your application, rather than use your root account credentials.

Environment.AWSAccessKey = YOUR_CREDENTIALS_HERE
Environment.AWSSecretKey = YOUR_CREDENTIALS_HERE

###########################################################
### Container settings ###
### ###
### Settings on the App Domain or for the host manager. ###
###########################################################

### Container.Type is used to select the Windows Server/IIS version
### to deploy against. Valid values are:
### "64bit Windows Server 2008 R2 running IIS 7.5"
### "64bit Windows Server 2012 running IIS 8"
### Windows Server 2012/IIS 8 is the default if not specified.
# Container.Type =
Container.TargetV2Runtime = false
Container.Enable32BitApplications = false
Container.ApplicationHealthcheckPath = /
Container.Type = 64bit Windows Server 2016/IIS 10.0
#############################
### Create Stack settings ###
#############################

### SNS Topic to send deployment messages to
Settings.SNSTopic =

### Time to allow for creation of stack (default = 0 means no timeout)
Settings.CreationTimeout = 0

### If true, tear down the stack if deployment fails
Settings.RollbackOnFailure = false




here is error when deploying script is run



Scanning configuration.
Retrieving standard template SingleInstance
Download complete
[Warning]: Failed download attempt 1: Object reference not set to an instance of an object.
[Warning]: Failed download attempt 2: Stream was not readable.
[Warning]: Failed download attempt 3: Stream was not readable.
Failed to parse deployment configuration file: Deployment failed during post-processing of configuration settings.









share|improve this question
























  • Can you try specifying this 64bit Windows Server 2016 v1.2.0 running IIS 10.0 as Container.Type value.
    – AlexK
    2 days ago












  • @TenorFlyy i tried "Container.Type = 64bit Windows Server 2016 v1.2.0 running IIS 10.0" too
    – InfoÁsith
    2 days ago












  • Hmm, I can't say for sure, but this looks like some other issue, I've checked and the first line is some .net error. Is there a possibilty that there's something wrong with what's inside the zip?
    – AlexK
    2 days ago










  • i could able to deploy the server from different account. but still it creates Windows Server 2012
    – InfoÁsith
    yesterday















up vote
0
down vote

favorite












I need to host my app on Windows Server 2016 by using AWS.
as following adding Container.Type = 64bit Windows Server 2016/IIS 10.0 does not work.
here is sample CloudFormation template.



### Sample Deployment Config for the SingleInstance CloudFormation template
###
### To get the sample application to deploy you will need to customize the credentials settings
### (search for entries with values of YOUR_CREDENTIALS_HERE) then run the command. The configured
### KeyPair and SecurityGroup must already exist.
###
### awsdeploy SingleInstanceDeploymentSample.txt
###

########################
### General Settings ###
########################

### Name of the CloudFormation stack to create
StackName = MySingleInstanceStack

### Location of the web deploy archive
DeploymentPackage = AWSDeploymentSampleApp.zip

### Region to deploy to
Region = us-east-1

### Template can be 'SingleInstance' or 'LoadBalanced'.
Template = SingleInstance

### S3 bucket where the deployment materials will be stored. If this doesn't exist it will
### be created.
### NOTE: change the bucket name to be unique in S3 and owned by you.
UploadBucket = awsdeployment-us-east-1-samples

### EC2 Keypair for logging into the instance
KeyPair = default

### Account Profile registered with the AWS Toolkit for Visual Studio or stored in the credentials file file found at
### <userhome-directroy>.awscredentials. The account profile is used to create the stack and deploy the application to S3.
AWSProfileName = YOUR_PROFILE_NAME_HERE

### AWS Access Key and Secret Key used to create the stack and deploy the application to S3 if not using account profiles.
# AWSAccessKey = YOUR_CREDENTIALS_HERE
# AWSSecretKey = YOUR_CREDENTIALS_HERE

###########################
### Template Parameters ###
###########################

Template.InstanceType = t1.micro

### This security group must exist and allow ingress on port 80.
Template.SecurityGroup = default

### Template.AmazonMachineImage: Custom AMI to Launch. Must have the AWS Deployment service installed.

#############################################################################################
### Environment Settings ###
### ###
### These are available to the deployed application through the web.config as appSettings ###
#############################################################################################

Environment.PARAM1 = testing
Environment.PARAM2 = 123
Environment.PARAM3 =
Environment.PARAM4 =
Environment.PARAM5 =

### Access Key and Secret Key that your application uses to access AWS services.
### Best practice is to create an IAM user with just enough permissions to run
### your application, rather than use your root account credentials.

Environment.AWSAccessKey = YOUR_CREDENTIALS_HERE
Environment.AWSSecretKey = YOUR_CREDENTIALS_HERE

###########################################################
### Container settings ###
### ###
### Settings on the App Domain or for the host manager. ###
###########################################################

### Container.Type is used to select the Windows Server/IIS version
### to deploy against. Valid values are:
### "64bit Windows Server 2008 R2 running IIS 7.5"
### "64bit Windows Server 2012 running IIS 8"
### Windows Server 2012/IIS 8 is the default if not specified.
# Container.Type =
Container.TargetV2Runtime = false
Container.Enable32BitApplications = false
Container.ApplicationHealthcheckPath = /
Container.Type = 64bit Windows Server 2016/IIS 10.0
#############################
### Create Stack settings ###
#############################

### SNS Topic to send deployment messages to
Settings.SNSTopic =

### Time to allow for creation of stack (default = 0 means no timeout)
Settings.CreationTimeout = 0

### If true, tear down the stack if deployment fails
Settings.RollbackOnFailure = false




here is error when deploying script is run



Scanning configuration.
Retrieving standard template SingleInstance
Download complete
[Warning]: Failed download attempt 1: Object reference not set to an instance of an object.
[Warning]: Failed download attempt 2: Stream was not readable.
[Warning]: Failed download attempt 3: Stream was not readable.
Failed to parse deployment configuration file: Deployment failed during post-processing of configuration settings.









share|improve this question
























  • Can you try specifying this 64bit Windows Server 2016 v1.2.0 running IIS 10.0 as Container.Type value.
    – AlexK
    2 days ago












  • @TenorFlyy i tried "Container.Type = 64bit Windows Server 2016 v1.2.0 running IIS 10.0" too
    – InfoÁsith
    2 days ago












  • Hmm, I can't say for sure, but this looks like some other issue, I've checked and the first line is some .net error. Is there a possibilty that there's something wrong with what's inside the zip?
    – AlexK
    2 days ago










  • i could able to deploy the server from different account. but still it creates Windows Server 2012
    – InfoÁsith
    yesterday













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I need to host my app on Windows Server 2016 by using AWS.
as following adding Container.Type = 64bit Windows Server 2016/IIS 10.0 does not work.
here is sample CloudFormation template.



### Sample Deployment Config for the SingleInstance CloudFormation template
###
### To get the sample application to deploy you will need to customize the credentials settings
### (search for entries with values of YOUR_CREDENTIALS_HERE) then run the command. The configured
### KeyPair and SecurityGroup must already exist.
###
### awsdeploy SingleInstanceDeploymentSample.txt
###

########################
### General Settings ###
########################

### Name of the CloudFormation stack to create
StackName = MySingleInstanceStack

### Location of the web deploy archive
DeploymentPackage = AWSDeploymentSampleApp.zip

### Region to deploy to
Region = us-east-1

### Template can be 'SingleInstance' or 'LoadBalanced'.
Template = SingleInstance

### S3 bucket where the deployment materials will be stored. If this doesn't exist it will
### be created.
### NOTE: change the bucket name to be unique in S3 and owned by you.
UploadBucket = awsdeployment-us-east-1-samples

### EC2 Keypair for logging into the instance
KeyPair = default

### Account Profile registered with the AWS Toolkit for Visual Studio or stored in the credentials file file found at
### <userhome-directroy>.awscredentials. The account profile is used to create the stack and deploy the application to S3.
AWSProfileName = YOUR_PROFILE_NAME_HERE

### AWS Access Key and Secret Key used to create the stack and deploy the application to S3 if not using account profiles.
# AWSAccessKey = YOUR_CREDENTIALS_HERE
# AWSSecretKey = YOUR_CREDENTIALS_HERE

###########################
### Template Parameters ###
###########################

Template.InstanceType = t1.micro

### This security group must exist and allow ingress on port 80.
Template.SecurityGroup = default

### Template.AmazonMachineImage: Custom AMI to Launch. Must have the AWS Deployment service installed.

#############################################################################################
### Environment Settings ###
### ###
### These are available to the deployed application through the web.config as appSettings ###
#############################################################################################

Environment.PARAM1 = testing
Environment.PARAM2 = 123
Environment.PARAM3 =
Environment.PARAM4 =
Environment.PARAM5 =

### Access Key and Secret Key that your application uses to access AWS services.
### Best practice is to create an IAM user with just enough permissions to run
### your application, rather than use your root account credentials.

Environment.AWSAccessKey = YOUR_CREDENTIALS_HERE
Environment.AWSSecretKey = YOUR_CREDENTIALS_HERE

###########################################################
### Container settings ###
### ###
### Settings on the App Domain or for the host manager. ###
###########################################################

### Container.Type is used to select the Windows Server/IIS version
### to deploy against. Valid values are:
### "64bit Windows Server 2008 R2 running IIS 7.5"
### "64bit Windows Server 2012 running IIS 8"
### Windows Server 2012/IIS 8 is the default if not specified.
# Container.Type =
Container.TargetV2Runtime = false
Container.Enable32BitApplications = false
Container.ApplicationHealthcheckPath = /
Container.Type = 64bit Windows Server 2016/IIS 10.0
#############################
### Create Stack settings ###
#############################

### SNS Topic to send deployment messages to
Settings.SNSTopic =

### Time to allow for creation of stack (default = 0 means no timeout)
Settings.CreationTimeout = 0

### If true, tear down the stack if deployment fails
Settings.RollbackOnFailure = false




here is error when deploying script is run



Scanning configuration.
Retrieving standard template SingleInstance
Download complete
[Warning]: Failed download attempt 1: Object reference not set to an instance of an object.
[Warning]: Failed download attempt 2: Stream was not readable.
[Warning]: Failed download attempt 3: Stream was not readable.
Failed to parse deployment configuration file: Deployment failed during post-processing of configuration settings.









share|improve this question















I need to host my app on Windows Server 2016 by using AWS.
as following adding Container.Type = 64bit Windows Server 2016/IIS 10.0 does not work.
here is sample CloudFormation template.



### Sample Deployment Config for the SingleInstance CloudFormation template
###
### To get the sample application to deploy you will need to customize the credentials settings
### (search for entries with values of YOUR_CREDENTIALS_HERE) then run the command. The configured
### KeyPair and SecurityGroup must already exist.
###
### awsdeploy SingleInstanceDeploymentSample.txt
###

########################
### General Settings ###
########################

### Name of the CloudFormation stack to create
StackName = MySingleInstanceStack

### Location of the web deploy archive
DeploymentPackage = AWSDeploymentSampleApp.zip

### Region to deploy to
Region = us-east-1

### Template can be 'SingleInstance' or 'LoadBalanced'.
Template = SingleInstance

### S3 bucket where the deployment materials will be stored. If this doesn't exist it will
### be created.
### NOTE: change the bucket name to be unique in S3 and owned by you.
UploadBucket = awsdeployment-us-east-1-samples

### EC2 Keypair for logging into the instance
KeyPair = default

### Account Profile registered with the AWS Toolkit for Visual Studio or stored in the credentials file file found at
### <userhome-directroy>.awscredentials. The account profile is used to create the stack and deploy the application to S3.
AWSProfileName = YOUR_PROFILE_NAME_HERE

### AWS Access Key and Secret Key used to create the stack and deploy the application to S3 if not using account profiles.
# AWSAccessKey = YOUR_CREDENTIALS_HERE
# AWSSecretKey = YOUR_CREDENTIALS_HERE

###########################
### Template Parameters ###
###########################

Template.InstanceType = t1.micro

### This security group must exist and allow ingress on port 80.
Template.SecurityGroup = default

### Template.AmazonMachineImage: Custom AMI to Launch. Must have the AWS Deployment service installed.

#############################################################################################
### Environment Settings ###
### ###
### These are available to the deployed application through the web.config as appSettings ###
#############################################################################################

Environment.PARAM1 = testing
Environment.PARAM2 = 123
Environment.PARAM3 =
Environment.PARAM4 =
Environment.PARAM5 =

### Access Key and Secret Key that your application uses to access AWS services.
### Best practice is to create an IAM user with just enough permissions to run
### your application, rather than use your root account credentials.

Environment.AWSAccessKey = YOUR_CREDENTIALS_HERE
Environment.AWSSecretKey = YOUR_CREDENTIALS_HERE

###########################################################
### Container settings ###
### ###
### Settings on the App Domain or for the host manager. ###
###########################################################

### Container.Type is used to select the Windows Server/IIS version
### to deploy against. Valid values are:
### "64bit Windows Server 2008 R2 running IIS 7.5"
### "64bit Windows Server 2012 running IIS 8"
### Windows Server 2012/IIS 8 is the default if not specified.
# Container.Type =
Container.TargetV2Runtime = false
Container.Enable32BitApplications = false
Container.ApplicationHealthcheckPath = /
Container.Type = 64bit Windows Server 2016/IIS 10.0
#############################
### Create Stack settings ###
#############################

### SNS Topic to send deployment messages to
Settings.SNSTopic =

### Time to allow for creation of stack (default = 0 means no timeout)
Settings.CreationTimeout = 0

### If true, tear down the stack if deployment fails
Settings.RollbackOnFailure = false




here is error when deploying script is run



Scanning configuration.
Retrieving standard template SingleInstance
Download complete
[Warning]: Failed download attempt 1: Object reference not set to an instance of an object.
[Warning]: Failed download attempt 2: Stream was not readable.
[Warning]: Failed download attempt 3: Stream was not readable.
Failed to parse deployment configuration file: Deployment failed during post-processing of configuration settings.






amazon-web-services amazon-ec2 aws-sdk awsdeploy aws-visual-studio-toolkit






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 2 days ago

























asked 2 days ago









InfoÁsith

345117




345117












  • Can you try specifying this 64bit Windows Server 2016 v1.2.0 running IIS 10.0 as Container.Type value.
    – AlexK
    2 days ago












  • @TenorFlyy i tried "Container.Type = 64bit Windows Server 2016 v1.2.0 running IIS 10.0" too
    – InfoÁsith
    2 days ago












  • Hmm, I can't say for sure, but this looks like some other issue, I've checked and the first line is some .net error. Is there a possibilty that there's something wrong with what's inside the zip?
    – AlexK
    2 days ago










  • i could able to deploy the server from different account. but still it creates Windows Server 2012
    – InfoÁsith
    yesterday


















  • Can you try specifying this 64bit Windows Server 2016 v1.2.0 running IIS 10.0 as Container.Type value.
    – AlexK
    2 days ago












  • @TenorFlyy i tried "Container.Type = 64bit Windows Server 2016 v1.2.0 running IIS 10.0" too
    – InfoÁsith
    2 days ago












  • Hmm, I can't say for sure, but this looks like some other issue, I've checked and the first line is some .net error. Is there a possibilty that there's something wrong with what's inside the zip?
    – AlexK
    2 days ago










  • i could able to deploy the server from different account. but still it creates Windows Server 2012
    – InfoÁsith
    yesterday
















Can you try specifying this 64bit Windows Server 2016 v1.2.0 running IIS 10.0 as Container.Type value.
– AlexK
2 days ago






Can you try specifying this 64bit Windows Server 2016 v1.2.0 running IIS 10.0 as Container.Type value.
– AlexK
2 days ago














@TenorFlyy i tried "Container.Type = 64bit Windows Server 2016 v1.2.0 running IIS 10.0" too
– InfoÁsith
2 days ago






@TenorFlyy i tried "Container.Type = 64bit Windows Server 2016 v1.2.0 running IIS 10.0" too
– InfoÁsith
2 days ago














Hmm, I can't say for sure, but this looks like some other issue, I've checked and the first line is some .net error. Is there a possibilty that there's something wrong with what's inside the zip?
– AlexK
2 days ago




Hmm, I can't say for sure, but this looks like some other issue, I've checked and the first line is some .net error. Is there a possibilty that there's something wrong with what's inside the zip?
– AlexK
2 days ago












i could able to deploy the server from different account. but still it creates Windows Server 2012
– InfoÁsith
yesterday




i could able to deploy the server from different account. but still it creates Windows Server 2012
– InfoÁsith
yesterday

















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53373217%2fhow-to-deploy-64bit-windows-server-2016-iis-10-0-using-singleinstance-cloudforma%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















 

draft saved


draft discarded



















































 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53373217%2fhow-to-deploy-64bit-windows-server-2016-iis-10-0-using-singleinstance-cloudforma%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Can a sorcerer learn a 5th-level spell early by creating spell slots using the Font of Magic feature?

Does disintegrating a polymorphed enemy still kill it after the 2018 errata?

A Topological Invariant for $pi_3(U(n))$