This project has moved to https://github.com/jonhoo/drwmutex so it can be imported into Go applications.
# Hello, and welcome to makefile basics. | |
# | |
# You will learn why `make` is so great, and why, despite its "weird" syntax, | |
# it is actually a highly expressive, efficient, and powerful way to build | |
# programs. | |
# | |
# Once you're done here, go to | |
# http://www.gnu.org/software/make/manual/make.html | |
# to learn SOOOO much more. |
import EventEmitter from 'events'; | |
import Dispatcher from '../dispatcher'; | |
const CHANGE_EVENT = 'change'; | |
export default class BaseStore extends EventEmitter { | |
constructor() { | |
super(); | |
this.dispatchToken = Dispatcher.register(this.handleDispatch.bind(this)); |
[root@ip-10-0-11-111 anchors]# curl -o /etc/pki/ca-trust/source/anchors/GTEGlRoot.crt https://www.cybertrust.ne.jp/sureserver/download/root_ca/GTEGlRoot.txt | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
100 890 100 890 0 0 6885 0 --:--:-- --:--:-- --:--:-- 6899 | |
[root@ip-10-0-11-111 anchors]# ls | |
GTEGlRoot.crt | |
[root@ip-10-0-11-111 anchors]# update-ca-trust | |
p11-kit: duplicate 'GTE CyberTrust Global Root' certificate found in: ca-bundle.legacy.crt | |
p11-kit: duplicate 'GTE CyberTrust Global Root' certificate found in: ca-bundle.legacy.crt | |
p11-kit: duplicate 'GTE CyberTrust Global Root' certificate found in: ca-bundle.legacy.crt |
image: golang:1.7 | |
stages: | |
- build | |
- test | |
before_script: | |
- go get github.com/tools/godep | |
- cp -r /builds/user /go/src/github.com/user/ | |
- cd /go/src/github.com/user/repo |
package main | |
import ( | |
"fmt" | |
"log" | |
"net/http" | |
"strings" | |
) | |
func main() { |
You can use CodePipeline and CodeBuild to create a continuous deployment/integration pipeline for serverless applications build on AWS Lambda and Amazon API Gateway. This sample application is written in Go with the Gin framework and uses the eawsy API Gateway proxy shim: https://github.com/eawsy/aws-lambda-go-net
We initially detailed our methodology in this blog post: https://aws.amazon.com/blogs/compute/continuous-deployment-for-serverless-applications/
We have used the shim technology created by eawsy to run Golang applications inside AWS Lambda (https://github.com/eawsy/aws-lambda-go-shim) and created a container that can be used with CodeBuild as part of our original pipeline template.
The container is available on DockerHub and is called sapessi/aws-lambda-go18-codebuild:latest
. To use this container, simply change the Image
property of the CodeBuild project environment.
The pipeline template, sample app, buildspec and SAM files are attached to this gist.
These are python 2 and 3 snippets showing how to generate headers to authenticate with HashiCorp's Vault using the AWS authentication method. There's also a Ruby implementation which uses version 3 of the AWS SDK for Ruby.
The python scripts look for credentials in the
default boto3 locations;
if you need to supply custom credentials (such as from an AssumeRole
call), you would use the
botocore.session.set_credentials
method before calling create_client
.
package main | |
import ( | |
"fmt" | |
"time" | |
"github.com/aws/aws-sdk-go/aws" | |
"github.com/aws/aws-sdk-go/aws/session" | |
"github.com/aws/aws-sdk-go/service/athena" | |
) |
| Title | Description