Cfn
view release on metacpan or search on metacpan
856857858859860861862863864865866867868869870871872873874875876t/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
6789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
},
"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
233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267
"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
281282283284285286287288289290291292293294295296297298299300301302303304305306307
}
},
"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
155156157158159160161162163164165166167168169170171172173174175
"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
1234567891011121314{
"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
1234567891011121314{
"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
289290291292293294295296297298299300301302303304305306307308309310311
"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 )