github.com/mweagle/Sparta@v1.15.0/docs/reference/index.xml (about) 1 <?xml version="1.0" encoding="utf-8" standalone="yes"?> 2 <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 3 <channel> 4 <title>Reference on Sparta - AWS Lambda Microservices</title> 5 <link>/reference/</link> 6 <description>Recent content in Reference on Sparta - AWS Lambda Microservices</description> 7 <generator>Hugo -- gohugo.io</generator> 8 <language>en-US</language> 9 <lastBuildDate>Mon, 22 Jan 2018 21:49:38 +0000</lastBuildDate> 10 11 <atom:link href="/reference/index.xml" rel="self" type="application/rss+xml" /> 12 13 14 <item> 15 <title>Discovery Service</title> 16 <link>/reference/discovery/</link> 17 <pubDate>Wed, 09 Mar 2016 19:56:50 +0100</pubDate> 18 19 <guid>/reference/discovery/</guid> 20 <description>The ability to provision dynamic infrastructure (see also the SES Event Source Example) as part of a Sparta application creates a need to discover those resources at lambda execution time. 21 Sparta exposes this functionality via sparta.Discover. This function returns information about the current stack (eg, name, region, ID) as well as metadata about the immediate dependencies of the calling go lambda function. 22 The following sections walk through provisioning a S3 bucket, declaring an explicit dependency on that resource, and then discovering the resource at lambda execution time.</description> 23 </item> 24 25 <item> 26 <title>Docker</title> 27 <link>/reference/docker/</link> 28 <pubDate>Wed, 09 Mar 2016 19:56:50 +0100</pubDate> 29 30 <guid>/reference/docker/</guid> 31 <description>TODO 32 Docker Support Document the SpartaDocker project.</description> 33 </item> 34 35 <item> 36 <title>Hybrid Topologies</title> 37 <link>/reference/hybrid_topologies/</link> 38 <pubDate>Wed, 09 Mar 2016 19:56:50 +0100</pubDate> 39 40 <guid>/reference/hybrid_topologies/</guid> 41 <description>At a broad level, AWS Lambda represents a new level of compute abstraction for services. Developers don&rsquo;t immediately concern themselves with HA topologies, configuration management, capacity planning, or many of the other areas traditionally handled by operations. These are handled by the vendor supplied execution environment. 42 However, Lambda is a relatively new technology and is not ideally suited to certain types of tasks. For example, given the current Lambda limits, the following task types might better be handled by &ldquo;legacy&rdquo; AWS services:</description> 43 </item> 44 45 <item> 46 <title>Testing</title> 47 <link>/reference/testing/</link> 48 <pubDate>Wed, 09 Mar 2016 19:56:50 +0100</pubDate> 49 50 <guid>/reference/testing/</guid> 51 <description>While developing Sparta lambda functions it may be useful to test them locally without needing to provision each new code change. You can test your lambda functions using standard go test functionality. 52 To create proper event types, consider: 53 AWS Lambda Go types Sparta types Use NewAPIGatewayMockRequest to generate API Gateway style requests. </description> 54 </item> 55 56 <item> 57 <title>Supporting Packages</title> 58 <link>/reference/supporting_packages/</link> 59 <pubDate>Mon, 22 Jan 2018 21:49:38 +0000</pubDate> 60 61 <guid>/reference/supporting_packages/</guid> 62 <description>The following packages are part of the Sparta ecosystem and can be used in combination or as standalone in other applications. 63 go-cloudcondensor The go-cloudcondensor package provides utilities to express CloudFormation templates as a set of go functions. Templates are evaluated and the and the resulting JSON can be integrated into existing CLI-based workflows. 64 go-cloudformation The go-cloudformation package provides a Go object model for the official CloudFormation JSON Schema. 65 SpartaVault SpartaVault uses KMS to encrypt values into Go types that can be safely committed to source control.</description> 66 </item> 67 68 <item> 69 <title>Limitations</title> 70 <link>/reference/limitations/</link> 71 <pubDate>Wed, 09 Mar 2016 19:56:50 +0100</pubDate> 72 73 <guid>/reference/limitations/</guid> 74 <description>AWS Lambda Limitations Lambda is not yet globally available. Please view the Global Infrastructure page for the latest deployment status. There are Lambda Limits that may affect your development It&rsquo;s not possible to dynamically set HTTP response headers based on the Lambda response body: https://forums.aws.amazon.com/thread.jspa?threadID=203889 https://forums.aws.amazon.com/thread.jspa?threadID=210826 Similarly, it&rsquo;s not possible to set proper error response bodies. </description> 75 </item> 76 77 <item> 78 <title>FAQ</title> 79 <link>/reference/faq/</link> 80 <pubDate>Wed, 09 Mar 2016 19:56:50 +0100</pubDate> 81 82 <guid>/reference/faq/</guid> 83 <description>CloudFormation How do I create dynamic resource ARNs? Linking AWS resources together often requires creating dynamic ARN references. This can be achieved by using cloudformation.Join expressions. 84 For instance: 85 import ( gocf &#34;github.com/mweagle/go-cloudformation&#34; ) s3SiteBucketAllKeysResourceValue := gocf.Join(&#34;&#34;, gocf.String(&#34;arn:aws:s3:::&#34;), gocf.Ref(s3BucketResourceName), gocf.String(&#34;/*&#34;)) import ( gocf &#34;github.com/mweagle/go-cloudformation&#34; ) AuthorizerURI: gocf.Join(&#34;&#34;, gocf.String(&#34;arn:aws:apigateway:&#34;), gocf.Ref(&#34;AWS::Region&#34;).String(), gocf.String(&#34;:lambda:path/2015-03-31/functions/&#34;), gocf.GetAtt(myAWSLambdaInfo.LogicalResourceName(), &#34;Arn&#34;), gocf.String(&#34;/invocations&#34;)), See the CloudFormation Fn::GetAtt docs for the set of attributes created by each resource. CloudFormation pseudo-parameters can be included in dynamic expresssions via gocf.</description> 86 </item> 87 88 </channel> 89 </rss>