Comments (3)
you need to run
go get -d github.com/goadapp/goad
make $OS
Where OS is either osx
, linux
or windows
The reason this happens is that you need to build the bindata.
from goad.
Excellent. Thank you.
from goad.
I have same question regarding asset function.My code is as follows:
import (
"fmt"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/credentials"
"github.com/aws/aws-sdk-go/service/lambda"
"github.com/aws/aws-sdk-go/aws/session"
)
func main(){
creds := credentials.NewSharedCredentials("", "default")
credValue, err := creds.Get()
if err != nil {
fmt.Println(err)
}
fmt.Println("Value of credentials : ", credValue)
region :="ap-southeast-1"
zip, err := Asset("data/lambda.zip")
svc := lambda.New(session.New())
createLambdaFunction(svc,zip)
}
func createLambdaFunction(svc *lambda.Lambda,payload []byte) error{
function, err := svc.CreateFunction(&lambda.CreateFunctionInput{
Code: &lambda.FunctionCode{
ZipFile: payload,
},
FunctionName: aws.String("goad"),
Handler: aws.String("index.handler"),
Runtime: aws.String("nodejs4.3"),
MemorySize: aws.Int64(1536),
Publish: aws.Bool(true),
Timeout: aws.Int64(300),
})
if err != nil {
return err
}
return err
}
~
And My data dir is as follows:
root@ip-172-31-30-18:~/data# ls
lambda lambda.zip
Can you guys please help me I am getting
undefined: Asset
from goad.
Related Issues (20)
- Website is down HOT 3
- Feature - List of URL's and / or request body payload
- Concurrent map updates can cause data races at high concurrency levels HOT 1
- RequestHeaders not copied when Lambda forks
- Website: Links to binaries are broken HOT 1
- details about "auth-token: YOUR-SECRET-AUTH-TOKEN" HOT 1
- Headers are not passed to following lambda function after 5 minute timeout
- goad: command not found
- Specifying Headers - Values with colons are truncated
- Guessing no longer supported? HOT 3
- Runtime node no longer supported HOT 12
- Issue building from source on MacOS HOT 2
- Error panic: NoCredentialProviders: HOT 1
- Please make a new release HOT 1
- http post
- Docker Image Throws Permission Error if Goad Container not Already Cached
- How to make multi step for testing
- Goad does not support AWS GovCloud
- Is anyone actively maintaining this project, or if not then is one of the 180 forks in active maintenance?
- runtime node4.3 deprecated HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from goad.