summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/incidental_cloudformation/files/cf_template.json
blob: ff4c5693b0bcc167b0693925baddf8e35e7699fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{
  "AWSTemplateFormatVersion" : "2010-09-09",

  "Description" : "Create an Amazon EC2 instance.",

  "Parameters" : {
    "InstanceType" : {
      "Description" : "EC2 instance type",
      "Type" : "String",
      "Default" : "t3.nano",
      "AllowedValues" : [ "t3.micro", "t3.nano"]
    },
    "ImageId" : {
      "Type" : "String"
    },
    "SubnetId" : {
      "Type" : "String"
    }
  },

  "Resources" : {
    "EC2Instance" : {
      "Type" : "AWS::EC2::Instance",
      "Properties" : {
        "InstanceType" : { "Ref" : "InstanceType" },
        "ImageId" : { "Ref" : "ImageId" },
        "SubnetId": { "Ref" : "SubnetId" }
      }
    }
  },

  "Outputs" : {
    "InstanceId" : {
      "Value" : { "Ref" : "EC2Instance" }
    }
  }
}