It's an example of a API using Aws-Sdk-Go (GoLang) with Gorilla Toolkit
Aws-sdk-go is the official AWS SDK for the Go programming language.
##Used libraries from GitHub
- Gorilla Web Toolkit
- Aws-SDK
- go 1.13
- export GO111MODULE=on
code()
$ go run mail.go
$ sh deploy.sh batur baturorkun.com
$ docker build -f docker/Dockertfile --build-arg PROJECT="aws-api" --build-arg USER_ID=`id -u` -t aws-api .
$ docker run --env-file=.env -v $PWD:/builder/src/aws-api --rm aws-api
$ docker-compose up
-
-
GET Params:
tag_name : String , Ex: Name
tag_value : String
-
-
-
GET Params:
instance-id : String , Ex: i-30ffAddYT65Ahj890
-
-
-
GET Params:
instance-id : String , Ex: i-30ffAddYT65Ahj890
-
-
-
GET Params:
instance-id : String , Ex: i-30ffAddYT65Ahj890
-
-
-
GET Params:
> instance-id : String , Ex: i-30ffAddYT65Ahj890
-
-
/instance-setting-setdisabletermination
-
GET Params:
instance-id : String , Ex: i-30ffAddYT65Ahj890
-
-
-
GET Params:
instance-id : String , Ex: i-30ffAddYT65Ahj890
tag-name : String , Ex: Name
tag-value : String , Ex: Batur
state-name: String , Ex: running or stopped
public-ip : String , Ex: 192.168.1.100
-
-
-
GET Params:
number : Integer , Ex: 1,2,3,... (How many IPs)
-
-
-
GET Params:
association-id : String ; Optional , Ex: eipalloc-0b768f070efba5132
-
-
- Not Ready
-
-
GET Params:
names : String ; Coma seperated string , Ex: test1,test2,test3
-
-
-
GET Params:
instance-id : String , Ex: i-30ffAddYT65Ahj890
tag : String , Ex: Name
value : String , Ex: Batur
-
-
-
GET Params:
instance-id : String , Ex: i-30ffAddYT65Ahj890
tag : String , Ex: Name
value : String , Ex: Batur
-
-
- No Parameters
-
- No Parameters
-
-
GET Params:
ssh-key : String ; Filename , Ex: batur.pem
public-ip : String , Ex: 192.168.1.100
-
-
-
GET Params:
lines : Integer ; Lines Number , Ex: 100
public-ip : String , Ex: 192.168.1.100
-
-
-
GET Params:
file : String ; Filename; Optinal , Ex: file.dat
recipients : String ; Coma seperated E-mail addresses , Ex: [email protected],[email protected]
subject : String , Email subject
body : String , Email content
-
Copyright © 2020 Batur Orkun Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.