JRuby でも awspec が動くのは分かったけど, JVM の起動に引きづられているようで処理時間が CRuby で実行するよりも長くなってしまう. これを少しでも短縮する方法を検討する.
$ sw_vers
resource "aws_wafregional_ipset" "ipset" { | |
name = "example-IPSet-${terraform.workspace}" | |
ip_set_descriptor { | |
type = "IPV4" | |
value = "xxx.xxx.xxx.xxx/32" | |
} | |
ip_set_descriptor { | |
type = "IPV4" |
import os | |
import csv | |
import json | |
import requests | |
import boto3 | |
# def convertJson(): | |
# results = {} | |
# with open('syukujitsu_kyujitsu.csv2', encoding='shift_jis') as f: |
# コードとテストコードの合体版 (プロダクションコードとテストコードは分けること) | |
# プロダクションコード | |
require 'minitest/autorun' | |
# require './fizzbuzz' | |
class FizzBuzz | |
def create(a, b) | |
res = [] | |
(a..b).each do |n| |
package main | |
import ( | |
"os" | |
"fmt" | |
"flag" | |
"strings" | |
"github.com/aws/aws-sdk-go/aws" | |
"github.com/aws/aws-sdk-go/aws/session" |
package main | |
import ( | |
"os" | |
"fmt" | |
"flag" | |
"strings" | |
"github.com/aws/aws-sdk-go/aws" | |
"github.com/aws/aws-sdk-go/aws/session" |
package main | |
import ( | |
"fmt" | |
"log" | |
"os" | |
"os/exec" | |
"time" | |
"flag" | |
"encoding/json" |
package main | |
import ( | |
"fmt" | |
"log" | |
"flag" | |
"os" | |
"os/exec" | |
"encoding/json" | |
"github.com/aws/aws-sdk-go/service/sfn" |
package main | |
import ( | |
"os" | |
"os/exec" | |
"fmt" | |
"flag" | |
"github.com/aws/aws-sdk-go/aws" | |
"github.com/aws/aws-sdk-go/aws/session" |
package main | |
import ( | |
"os" | |
"os/exec" | |
"fmt" | |
"flag" | |
"strings" | |
"io/ioutil" |