Lab_7_Automating_v2.5

Posted OS Knowledge Base

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Lab_7_Automating_v2.5相关的知识,希望对你有一定的参考价值。

System Operations - Lab 7: Automating Deployments with CloudFormation - 2.5
==================================================================================================================

Using this command reference.

==================================================================================================================

1. Locate the section you need. Each section in this file matches a section in the lab instructions.


2. Replace items in angle brackets - < > - with appropriate values. For example, in this command you would replace the value - <JobFlowID> - (including the brackets) with the parameter indicated in the lab instructions:

   elastic-mapreduce --list <JobFlowID>.

   You can also use find and replace to change bracketed parameters in bulk.

3. Do NOT enable the Word Wrap feature in Windows Notepad or the text editor you use to view this file.


++++1. Change and Run the AWS CloudFormation Template ++++

==================================================================================================================
1.1 Add AMI ID Lookup to Template
==================================================================================================================
1.1.1 https://d2lrzjb0vjvpn5.cloudfront.net/sys-ops/v2.5/lab-7-automating/static/Lab-7-Start-CF.template

1.1.4 Copy the new ImageId property code from the command reference file

        {
          "Fn::FindInMap" : [
            "AmazonLinuxAMI", {
              "Ref" : "AWS::Region"
            },
            "AMI"
          ]
        }

==================================================================================================================
1.2 Run the Template
==================================================================================================================
1.2.7 https://d2lrzjb0vjvpn5.cloudfront.net/sys-ops/v2.5/lab-7-automating/static/Lab-7-Completed-CF.template		

		
++++2. Update Stack with New Template ++++

==================================================================================================================
2.1 Add InstanceType Parameter to Template
==================================================================================================================

2.1.1 Copy the BastionInstanceType parameter

,
		"BastionInstanceType" : {
			"Type" : "String",
			"Description" : "The size of the instance to use for the bastion host."
		}

2.1.4		Copy the Ref parameter

{
	"Ref" : "BastionInstanceType"
}

++++3. Challenge Solution: Debugging a CloudFormation Template++++

==================================================================================================================
3 Challenge Overview
==================================================================================================================

URL to download the debug template

https://us-west-2-aws-training.s3.amazonaws.com/awsu-ilt/sys-ops/v2.5/lab-7-automating/static/CFDebug.template


==================================================================================================================
3.2 Fixing the Resource Error
==================================================================================================================

3.2.4 Replace the ImageId parameter

		"ImageId" : {
      "Fn::FindInMap" : [
        "AmazonLinuxAMI", {
          "Ref" : "AWS::Region"
        },
        "AMI"
      ]
    }


© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved.

以上是关于Lab_7_Automating_v2.5的主要内容,如果未能解决你的问题,请参考以下文章

Lab_4_SysOps_Monitoring_Linux_v2.5

Lab_6_SysOps_AutoScaling_Linux_v2.5

Lab_3_SysOps_Storage_Linux_v2.5

Lab_2_SysOps_VPC_Linux_v2.5

Lab_1_SysOps_Compute_Linux_v2.5

HCIE实验LAB_1