1
私は新しいストライプ・トークンを作成するAWSでのラムダ関数を作成しようとしています:AWS LambdaのAPIタイムアウトは?
import stripePackage from 'stripe';
const stripe = stripePackage('...');
module.exports.create = (event, context, callback) => {
stripe.tokens.create({
card: {
"number": 4242424242424242,
"exp_month": '02',
"exp_year": '22',
"cvc": '123'
}
}, (err, token) => {
if (err) {
console.log(err);
callback(null, {
statusCode: 400,
body: "error"
});
}
callback(null, {
statusCode: 200,
body: "ok"
});
console.log(token);
});
}
しかし、これは毎回タイムアウトします。
Ports Destination
All 0.0.0.0/0
を唯一の事は、私は他のAWSサービスですに接続することができるように見えるが、次のように私は、アウトバウンド接続用のセキュリティグループを持っています。ラムダ関数をAWS外の接続まで開くにはどうすればよいですか?