Cfn

 view release on metacpan or  search on metacpan

MANIFEST  view on Meta::CPAN

856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
t/001_parse/ec2_subnetcidr.res
t/001_parse/ec2_subnetrouteassoc.res
t/001_parse/ec2_subnetworkaclassoc.res
t/001_parse/ec2_udata.res
t/001_parse/ec2_udata2.res
t/001_parse/ec2_volume.res
t/001_parse/ec2_volume2.res
t/001_parse/ec2_volumeattachment.res
t/001_parse/ec2_vpc.res
t/001_parse/ec2_vpc_dhcp_options.res
t/001_parse/ec2_vpc_endpoint.res
t/001_parse/ec2_vpc_gw_attach.res
t/001_parse/ec2_vpc_gw_vpn.res
t/001_parse/ec2_vpccidrblock.res
t/001_parse/ec2_vpn_conn.res
t/001_parse/ec2_vpn_gw.res
t/001_parse/ec2_vpn_routepropagation.res
t/001_parse/ec2_vpnconnectionroute.res
t/001_parse/ec2_with_eni.res
t/001_parse/ecr_repository.res
t/001_parse/ecs_cluster.res

t/cfn_json/001.json  view on Meta::CPAN

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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
   },
   "AMI" : {
      "Type" : "String"
   },
   "StackName" : {
      "Type" : "String"
   }
},
"AWSTemplateFormatVersion" : "2010-09-09",
"Outputs" : {
   "testendpointaddress" : {
      "Value" : {
         "Ref" : "ElbRecordSet"
      }
   },
   "databaseendpointaddress" : {
      "Value" : {
         "Fn::GetAtt" : [
            "MySQLRDSTest",
            "Endpoint.Address"
         ]
      }
   },
   "elasticacheendpointaddress" : {
      "Value" : {
         "Fn::GetAtt" : [
            "ElastiCacheTest",
            "ConfigurationEndpoint.Address"
         ]
      }
   },
   "elbendpointaddress" : {
      "Value" : {
         "Fn::GetAtt" : [
            "ELB",
            "DNSName"
         ]
      }
   },
   "elasticacheendpointport" : {
      "Value" : {
         "Fn::GetAtt" : [
            "ElastiCacheTest",
            "ConfigurationEndpoint.Port"
         ]
      }
   },
   "databaseendpointport" : {
      "Value" : {
         "Fn::GetAtt" : [
            "MySQLRDSTest",
            "Endpoint.Port"
         ]
      }
   }
},
"Resources" : {
   "ElbSGHTTPIngress" : {

t/cfn_json/ElastiCache.json  view on Meta::CPAN

233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
    "php-pear" : []
  }
},
 
"files" : {
  "/var/www/html/index.php" : {
    "content" : { "Fn::Join" : ["", [
      "<?php\n",
      "echo '<h1>AWS CloudFormation sample application for Amazon ElastiCache</h1>';\n",
      "\n",
      "$server_endpoint = '", { "Fn::GetAtt" : [ "CacheCluster", "ConfigurationEndpoint.Address" ]}, "';\n",
      "$server_port = ", { "Fn::GetAtt" : [ "CacheCluster", "ConfigurationEndpoint.Port" ]}, ";\n",
      "\n",
      "/**\n",
      " * The following will initialize a Mecached client to utilize the Auto Discovery feature.\n",
      " * \n",
      " * By configuring the client with the Dynamic client mode with single endpoint, the\n",
      " * client will periodically use the configuration endpoint to retrieve the current cache\n",
      " * cluster configuration. This allows scaling the cache cluster up or down in nuber of nodes\n",
      " * without requiring any changes to the PHP application. \n",
      " */\n",
      "\n",
      "$dynamic_client = new Memcached();\n",
      "$dynamic_client->setOption(Memcached::OPT_CLIENT_MODE, Memcached::DYNAMIC_CLIENT_MODE);\n",
      "$dynamic_client->addServer($server_endpoint, $server_port);\n",
      "\n",
      "$tmp_object = new stdClass;\n",
      "$tmp_object->str_attr = 'test';\n",
      "$tmp_object->int_attr = 123;\n",
      "\n",
      "$dynamic_client->set('key', $tmp_object, 10) or die ('Failed to save data to the cache');\n",
      "echo '<p>Store data in the cache (data will expire in 10 seconds)</p>';\n",
      "\n",
      "$get_result = $dynamic_client->get('key');\n",
      "echo '<p>Data from the cache:<br/>';\n",

t/cfn_json/ElastiCache_Redis.json  view on Meta::CPAN

281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
  }
},
 
"files" : {
  "/var/www/html/index.php" : {
    "content" : { "Fn::Join" : ["", [
      "<?php\n",
      "echo \"<h1>AWS CloudFormation sample application for Amazon ElastiCache Redis Cluster</h1>\";\n",
      "\n",
      "$cluster_config = json_decode(file_get_contents('/tmp/cacheclusterconfig'), true);\n",
      "$endpoint = $cluster_config['CacheClusters'][0]['CacheNodes'][0]['Endpoint']['Address'];\n",
      "$port = $cluster_config['CacheClusters'][0]['CacheNodes'][0]['Endpoint']['Port'];\n",
      "\n",
      "echo \"<p>Connecting to Redis Cache Cluster node '{$endpoint}' on port {$port}</p>\";\n",
      "\n",
      "$redis=new Redis();\n",
      "$redis->connect($endpoint, $port);\n",
      "$redis->set('testkey', 'Hello World!');\n",
      "$return = $redis->get('testkey');\n",
      "\n",
      "echo \"<p>Retrieved value: $return</p>\";\n",
      "?>\n"
    ]]},
    "mode"    : "000644",
    "owner"   : "apache",
    "group"   : "apache"
  },

t/cfn_json/RedShift.json  view on Meta::CPAN

155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
        "Ref" : "PublicSubnet"
      },
      "RouteTableId" : {
        "Ref" : "PublicRouteTable"
      }
    }
  }
},
"Outputs" : {
  "ClusterEndpoint" : {
    "Description" : "Cluster endpoint",
    "Value" : { "Fn::Join" : [ ":", [ { "Fn::GetAtt" : [ "RedshiftCluster", "Endpoint.Address" ] }, { "Fn::GetAtt" : [ "RedshiftCluster", "Endpoint.Port" ] } ] ] }
  },
  "ClusterName" : {
    "Description" : "Name of cluster",
    "Value" : { "Ref" : "RedshiftCluster" }
  },
  "ParameterGroupName" : {
    "Description" : "Name of parameter group",
    "Value" : { "Ref" : "RedshiftClusterParameterGroup" }
  },

t/cfn_json/SNSToSQS.json  view on Meta::CPAN

1
2
3
4
5
6
7
8
9
10
11
12
13
14
{
  "AWSTemplateFormatVersion" : "2010-09-09",
 
  "Description" : "This Template creates an SNS topic that can send messages to two SQS queues with appropriate permissions for one IAM user to publish to the topic and another to read messages from the queues. MySNSTopic is set up to publish to two ...
 
  "Parameters" : {
    "MyPublishUserPassword": {
      "NoEcho": "true",
      "Type": "String",
      "Description" : "Password for the IAM user MyPublishUser",
      "MinLength": "1",
      "MaxLength": "41",
      "AllowedPattern" : "[a-zA-Z0-9]*",
      "ConstraintDescription" : "must contain only alphanumeric characters."

t/cfn_json/VPC_With_VPN_Connection.json  view on Meta::CPAN

1
2
3
4
5
6
7
8
9
10
11
12
13
14
{
  "AWSTemplateFormatVersion" : "2010-09-09",
 
  "Description" : "AWS CloudFormation Sample Template VPC_With_VPN_Connection.template: Sample template showing how to create a private subnet with a VPN connection using static routing to an existing VPN endpoint. NOTE: The VPNConnection created wil...
 
  "Parameters" : {
    "VPCCIDR" : {
      "Type" : "String",
      "Description" : "IP Address range for the VPN connected VPC",
      "MinLength": "9",
      "MaxLength": "18",
      "Default": "10.1.0.0/16",
      "AllowedPattern": "(\\d{1,3})\\.(\\d{1,3})\\.(\\d{1,3})\\.(\\d{1,3})/(\\d{1,2})",
      "ConstraintDescription": "must be a valid IP CIDR range of the form x.x.x.x/x."

t/cfn_json/bees-with-machineguns.json  view on Meta::CPAN

289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
    "owner": "ec2-user",
    "group": "ec2-user"
},
"/home/ec2-user/.boto": {
    "content": {
        "Fn::Join": ["", [ "[Credentials]\n",
                           "aws_access_key_id = ", { "Ref": "CfnKeys" }, "\n",
                           "aws_secret_access_key = ", { "Fn::GetAtt": ["CfnKeys", "SecretAccessKey"] }, "\n",
                           "[Boto]\n",
                           "ec2_region_name = ", { "Ref" : "AWS::Region" }, "\n",
                           "ec2_region_endpoint = ec2.", { "Ref" : "AWS::Region" }, ".amazonaws.com\n",
                           "elb_region_name = ", { "Ref" : "AWS::Region" }, "\n",
                           "elb_region_endpoint = elasticloadbalancing.", { "Ref" : "AWS::Region" }, ".amazonaws.com\n" ]]
    },
    "mode": "000600",
    "owner": "ec2-user",
    "group": "ec2-user"
},
"/home/ec2-user/run-bees": {
    "content": {
        "Fn::Join": ["", [ "#!/bin/bash\n\n",
                           "/home/ec2-user/wait-for-elb\n",
                           "if [ $? -eq 0 ]\n",



( run in 1.668 second using v1.01-cache-2.11-cpan-49f99fa48dc )