{ "AWSTemplateFormatVersion": "2010-09-09", "Description": "Ec2CreateSnapshotTestResourceStack", "Outputs": { "InstanceId0": { "Description": "Instance Id", "Value": { "Ref": "Instance0" } }, "VolumeId0": { "Description": "Volume Id 0", "Value": { "Ref": "Volume0" } }, "VolumeId1": { "Description": "Volume Id 1", "Value": { "Ref": "Volume1" } } }, "Parameters": { "InstanceAmi": { "Description": "AMI ID for instances.", "Type": "String" }, "InstanceType": { "Description": "AMI Instance Type (t2.micro, m1.large, etc.)", "Type": "String" }, "TaskListTagName": { "Description": "Name of the task list tag.", "Type": "String" }, "TaskListTagValue": { "Description": "Value of the task list tag.", "Type": "String" } }, "Resources": { "Volume0": { "Metadata": { "cfn_nag": { "rules_to_suppress": [ { "id": "W37", "reason": "Unit test template - not deployed with solution" }, { "id": "F1", "reason": "Unit test template - not deployed with solution" } ] } }, "Type": "AWS::EC2::Volume", "Properties": { "Size": 10, "AvailabilityZone": { "Fn::Select": [ 0, { "Fn::GetAZs": "" } ] }, "Tags": [ { "Key": "Name", "Value": "Ec2CreateSnapshotTestDataVolume0" }, { "Key": "VolumeTag", "Value": "Volume0" } ] } }, "Volume1": { "Metadata": { "cfn_nag": { "rules_to_suppress": [ { "id": "W37", "reason": "Unit test template - not deployed with solution" }, { "id": "F1", "reason": "Unit test template - not deployed with solution" } ] } }, "Type": "AWS::EC2::Volume", "Properties": { "Size": 10, "AvailabilityZone": { "Fn::Select": [ 0, { "Fn::GetAZs": "" } ] }, "Tags": [ { "Key": "Name", "Value": "Ec2CreateSnapshotTestDataVolume1" }, { "Key": "Backup", "Value": "True" }, { "Key": "VolumeTag", "Value": "Volume1" } ] } }, "Instance0": { "Type": "AWS::EC2::Instance", "Properties": { "ImageId": { "Ref": "InstanceAmi" }, "InstanceType": { "Ref": "InstanceType" }, "Tags": [ { "Key": "Name", "Value": "Ec2CreateSnapshotTestInstance0" }, { "Key": { "Ref": "TaskListTagName" }, "Value": { "Ref": "TaskListTagValue" } }, { "Key": "InstanceTag", "Value": "Instance0" } ], "AvailabilityZone": { "Fn::Select": [ 0, { "Fn::GetAZs": "" } ] }, "Volumes": [ { "VolumeId": { "Ref": "Volume0" }, "Device": "/dev/sdg" }, { "VolumeId": { "Ref": "Volume1" }, "Device": "/dev/sdh" } ] } } } }