ping server is for jser/ping.
- Create GitHub Issue from API(API Gateway)
- Anonymous create an issue
Create secret.json
in this directory
{
"repo": "jser/ping",
"GitHubToken": "xxxasjdajsjdsaljasdkjahsdjkhxxxx"
}
API Post Body:
{
"url": "https://jser.info",
"description": "短いメッセージ",
"user": "@azu"
}
JavaScript:
var xhr = new XMLHttpRequest();
xhr.onload = () => {
console.log(xhr);
};
xhr.open("POST", "API/ping/create");
xhr.setRequestHeader("Content-Type", "application/json;charset=UTF-8");
var data = {
"url": "https://jser.info",
"description": "短いメッセージ",
"user": "@azu"
};
xhr.send(JSON.stringify(data));
Using Serverless Framework
npm run deploy
npm run invoke
Stack:arn:aws:cloudformation:ap-northeast-1:xxx:stack/ping-prod/bbxxxs in DELETE_FAILED state and can not be updated.
DELETE中にcloudformationが詰まった。 cloudformationで削除する
An error occurred: CreateLogGroup - /aws/lambda/ping-prod-create already exists.
CloudWatchのロググループが更新できないバグ