{"id":44280785,"url":"https://github.com/y13i/awsprice","last_synced_at":"2026-02-10T21:34:14.395Z","repository":{"id":57594944,"uuid":"95661762","full_name":"y13i/awsprice","owner":"y13i","description":"CLI for AWS Price List API.","archived":false,"fork":false,"pushed_at":"2023-12-05T05:47:24.000Z","size":28,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-06-20T03:38:01.937Z","etag":null,"topics":["aws","cli","command-line-tool","price"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/y13i.png","metadata":{"files":{"readme":"README.ja.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-06-28T11:28:04.000Z","updated_at":"2023-12-05T05:47:21.000Z","dependencies_parsed_at":"2024-06-20T02:55:56.423Z","dependency_job_id":"c07b3a3a-1f43-4a81-a691-7d578e906df6","html_url":"https://github.com/y13i/awsprice","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/y13i/awsprice","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/y13i%2Fawsprice","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/y13i%2Fawsprice/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/y13i%2Fawsprice/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/y13i%2Fawsprice/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/y13i","download_url":"https://codeload.github.com/y13i/awsprice/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/y13i%2Fawsprice/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29317956,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-10T20:44:44.282Z","status":"ssl_error","status_checked_at":"2026-02-10T20:44:43.393Z","response_time":65,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","cli","command-line-tool","price"],"created_at":"2026-02-10T21:34:13.621Z","updated_at":"2026-02-10T21:34:14.384Z","avatar_url":"https://github.com/y13i.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# awsprice\n\n[AWS Price List Bulk API](https://docs.aws.amazon.com/ja_jp/awsaccountbilling/latest/aboutv2/using-ppslong.html) 用のコマンドラインインターフェイスです。\n\n## インストール\n\n[releases](https://github.com/y13i/awsprice/releases) から実行ファイルがダウンロードできます。\n\n展開して `$PATH` の通ったディレクトリーに置いてください。\n\n### Homebrew\n\nmacOS であれば Homebrew でもインストールできます。\n\n```\n$ brew install https://raw.githubusercontent.com/y13i/awsprice/master/homebrew/awsprice.rb\n```\n\n## 使用方法\n\n```\n$ awsprice [global options] command [command options] [arguments...]\n```\n\n### Commands\n\n#### `listOffers`\n\nオファーコード一覧を表示します。\n\n```\n$ awsprice listOffers | head -10\n[]awsprice.OfferCode{\n  \"AWSBudgets\",\n  \"AWSCloudTrail\",\n  \"AWSCodeCommit\",\n  \"AWSCodeDeploy\",\n  \"AWSCodePipeline\",\n  \"AWSConfig\",\n  \"AWSDatabaseMigrationSvc\",\n  \"AWSDeveloperSupport\",\n  \"AWSDeviceFarm\",\n```\n\n#### `listOfferRegions`\n\n指定されたオファーのリージョン一覧を表示します。\n\n`--offerCode` のデフォルトが `AmazonEC2` である点に注意してください。\n\n```\n$ awsprice listOfferRegions | head -5\n[]awsprice.RegionCode{\n  \"ap-northeast-1\",\n  \"ap-northeast-2\",\n  \"ap-south-1\",\n  \"ap-southeast-1\",\n```\n\n```\n$ awsprice listOfferRegions --offerCode AmazonLex\n[]awsprice.RegionCode{\n  \"us-east-1\",\n}\n```\n\n##### Command Options\n\n###### `--offerCode value, -o value`\n\n(デフォルト: `AmazonEC2`)\n\nAWS サービスを特定するコードです。\n\n#### `listOfferVersions`\n\nオファーのバージョン一覧を表示します。\n\n```\n$ awsprice listOfferVersions | head -10\n[]awsprice.Version{\n  \"20151209144527\",\n  \"20160126001708\",\n  \"20160628000628\",\n  \"20160901005907\",\n  \"20161026205455\",\n  \"20161213014831\",\n  \"20170210223144\",\n  \"20170224022054\",\n  \"20170302183221\",\n```\n\n##### Command Options\n\n###### `--offerCode value, -o value`\n\n#### `listProductFamilies`\n\nオファーに含まれるプロダクトの、プロダクトファミリー一覧を表示します。\n\n```\n$ awsprice listProductFamilies\n[]awsprice.ProductFamily{\n  \"Compute Instance\",\n  \"Data Transfer\",\n  \"Dedicated Host\",\n  \"Fee\",\n  \"IP Address\",\n  \"Load Balancer\",\n  \"Load Balancer-Application\",\n  \"NAT Gateway\",\n  \"Storage\",\n  \"Storage Snapshot\",\n  \"System Operation\",\n}\n```\n\n##### Command Options\n\n###### `--offerCode value, -o value`\n\n###### `--region value, -r value`\n\nAWS リージョンコードを指定します。 `$AWS_REGION` 環境変数がセットされており、オプションが未指定の場合は環境変数の値が使用されます。\n\n###### `--offerVersion value`\n\n(デフォルト: 最新バージョン)\n\nオファーのバージョンを指定します。\n\n例: `20170302183221`\n\n###### `--productFamily value, -p value`\n\nプロダクトをプロダクトファミリーの名前で絞り込みます。\n\n複数指定可。\n\n```\n-p familyName1 -p familyName2\n```\n\n###### `--attribute value, -a value`\n\nプロダクトをプロダクトの属性で絞り込みます。\n\n`KEY[=VALUE]` の形式で指定してください。\n\n複数指定可。\n\n```\n-a attribute1=value1 -a attribute2= -a ...\n```\n\n#### `listAttributes`\n\nオファーに含まれるプロダクトの、属性一覧を表示します。\n\n```\n$ awsprice listAttributes | head -10\n{\n  \"instanceCapacity2xlarge\": []awsprice.AttributeValue{\n    \"4\",\n    \"5\",\n    \"8\",\n  },\n  \"physicalCores\": []awsprice.AttributeValue{\n    \"20\",\n    \"24\",\n    \"32\",\n```\n\n```\n$ awsprice listAttributes -o AmazonRoute53 -r \"\" | head -10\n{\n  \"group\": []awsprice.AttributeValue{\n    \"Route53-Basic\",\n    \"Route53-Optional\",\n  },\n  \"routingType\": []awsprice.AttributeValue{\n    \"Geo DNS\",\n    \"Latency Based Routing\",\n    \"Standard\",\n  },\n```\n\n##### Command Options\n\n###### `--offerCode value, -o value`\n\n###### `--region value, -r value`\n\n###### `--offerVersion value`\n\n###### `--productFamily value, -p value`\n\n###### `--attribute value, -a value`\n\n#### `listProducts`\n\nオプションで絞り込まれたプロダクト一覧を表示します。\n\n```\n$ awsprice listProducts -p \"Compute Instance\" -a \"instanceType=t2.micro\" -a \"operatingSystem=Linux\" -a \"tenancy=Shared\"\n[]awsprice.Product{\n  awsprice.Product{\n    SKU:           \"N4D3MGNKSH7Q9KT3\",\n    ProductFamily: \"Compute Instance\",\n    Attributes:    {\n      \"preInstalledSw\":        \"NA\",\n      \"location\":              \"US West (Oregon)\",\n      \"locationType\":          \"AWS Region\",\n      \"operatingSystem\":       \"Linux\",\n      \"usagetype\":             \"USW2-BoxUsage:t2.micro\",\n      \"operation\":             \"RunInstances\",\n      \"ecu\":                   \"Variable\",\n      \"currentGeneration\":     \"Yes\",\n      \"physicalProcessor\":     \"Intel Xeon Family\",\n      \"memory\":                \"1 GiB\",\n      \"processorArchitecture\": \"32-bit or 64-bit\",\n      \"servicecode\":           \"AmazonEC2\",\n      \"instanceFamily\":        \"General purpose\",\n      \"storage\":               \"EBS only\",\n      \"tenancy\":               \"Shared\",\n      \"licenseModel\":          \"No License required\",\n      \"processorFeatures\":     \"Intel AVX; Intel Turbo\",\n      \"instanceType\":          \"t2.micro\",\n      \"vcpu\":                  \"1\",\n      \"clockSpeed\":            \"Up to 3.3 GHz\",\n      \"networkPerformance\":    \"Low to Moderate\",\n    },\n  },\n}\n```\n\n##### Command Options\n\n###### `--offerCode value, -o value`\n\n###### `--region value, -r value`\n\n###### `--offerVersion value`\n\n###### `--productFamily value, -p value`\n\n###### `--attribute value, -a value`\n\n#### `listTermTypes`\n\nオファーに含まれる term type (価格タイプ？) 一覧を表示します。\n\n```\n$ awsprice listTermTypes\n[]awsprice.TermType{\n  \"OnDemand\",\n  \"Reserved\",\n}\n```\n\n```\n$ awsprice listTermTypes -o AmazonRDS\n[]awsprice.TermType{\n  \"OnDemand\",\n  \"Reserved\",\n}\n```\n\n```\n$ awsprice listTermTypes -o AmazonS3\n[]awsprice.TermType{\n  \"OnDemand\",\n}\n```\n\n##### Command Options\n\n###### `--offerCode value, -o value`\n\n###### `--region value, -r value`\n\n###### `--offerVersion value`\n\n#### `listProductTerms`\n\nオプションで絞り込まれたプロダクトと、それに紐付く価格情報の一覧を表示します。\n\n```\n$ awsprice listProductTerms -a \"instanceType=c4.2xlarge\" -a \"operatingSystem=Linux\" -a \"tenancy=Shared\"\n[]awsprice.ProductTerm{\n  awsprice.ProductTerm{\n    Product: awsprice.Product{\n      SKU:           \"YBN8Q7AQJD9ZT57S\",\n      ProductFamily: \"Compute Instance\",\n      Attributes:    {\n        \"vcpu\":                        \"8\",\n        \"storage\":                     \"EBS only\",\n        \"dedicatedEbsThroughput\":      \"1000 Mbps\",\n        \"location\":                    \"US West (Oregon)\",\n        \"instanceType\":                \"c4.2xlarge\",\n        \"instanceFamily\":              \"Compute optimized\",\n        \"locationType\":                \"AWS Region\",\n        \"ecu\":                         \"31\",\n        \"licenseModel\":                \"No License required\",\n        \"enhancedNetworkingSupported\": \"Yes\",\n        \"preInstalledSw\":              \"NA\",\n        \"processorFeatures\":           \"Intel AVX; Intel AVX2; Intel Turbo\",\n        \"processorArchitecture\":       \"64-bit\",\n        \"tenancy\":                     \"Shared\",\n        \"operatingSystem\":             \"Linux\",\n        \"clockSpeed\":                  \"2.9 GHz\",\n        \"memory\":                      \"15 GiB\",\n        \"networkPerformance\":          \"High\",\n        \"usagetype\":                   \"USW2-BoxUsage:c4.2xlarge\",\n        \"operation\":                   \"RunInstances\",\n        \"servicecode\":                 \"AmazonEC2\",\n        \"currentGeneration\":           \"Yes\",\n        \"physicalProcessor\":           \"Intel Xeon E5-2666 v3 (Haswell)\",\n      },\n    },\n    OfferTerms: {\n      \"YBN8Q7AQJD9ZT57S.JRTCKXETXF\": awsprice.OfferTerm{\n        OfferTermCode:   \"JRTCKXETXF\",\n        SKU:             \"YBN8Q7AQJD9ZT57S\",\n        EffectiveDate:   \"2017-06-01T00:00:00Z\",\n        PriceDimensions: {\n          \"YBN8Q7AQJD9ZT57S.JRTCKXETXF.6YS6EN2CT7\": awsprice.PriceDimension{\n            RateCode:     \"YBN8Q7AQJD9ZT57S.JRTCKXETXF.6YS6EN2CT7\",\n            Description:  \"$0.398 per On Demand Linux c4.2xlarge Instance Hour\",\n            BeginRange:   \"0\",\n            EndRange:     \"Inf\",\n            Unit:         \"Hrs\",\n            PricePerUnit: {\n              \"USD\": \"0.3980000000\",\n            },\n            AppliesTo: awsprice.AppliesTo{},\n          },\n        },\n        TermAttributes: awsprice.TermAttributes{},\n      },\n    },\n  },\n}\n```\n\n##### Command Options\n\n###### `--offerCode value, -o value`\n\n###### `--region value, -r value`\n\n###### `--offerVersion value`\n\n###### `--productFamily value, -p value`\n\n###### `--attribute value, -a value`\n\n###### `--termType value`\n\n(デフォルト: `OnDemand`)\n\n価格タイプを指定します。 \"OnDemand\" または \"Reserved\"\n\n###### `--priceUnit value`\n\n(デフォルト: `USD`)\n\n価格の単位を指定します。現状特に意味はないです。\n\n###### `--termAttribute value, -t value`\n\n価格情報を価格情報の属性（`termAttribute`）で絞り込みます。\n\nFilter terms by the term attribute in `KEY=[VALUE]` format.\n\n複数指定可。\n\n```\n-t attribute1=value1 -t attribute2= -t ...\n```\n\n#### `help, h`\n\nヘルプを表示します。\n\n各サブコマンドの使用方法を見るには以下のように指定します。\n\n```\n$ awsprice help [command name]\n```\n\n### Global Options\n\n#### `--format value, -f value`\n\n(デフォルト: `pp`)\n\n出力形式を指定します。 \"pp\" または \"json\"\n\n#### `--cacheTTL value`\n\n(デフォルト: `24h`)\n\nキャッシュの有効期限を指定します。もし存在しているキャッシュがこの値より古い場合、キャッシュは再作成されます。 [`time.ParseDuration(s string)`](https://golang.org/pkg/time/#ParseDuration) でオプションの値がパースされます。\n\n#### `--clearCache`\n\n終了時にすべてのキャッシュファイルを削除します。\n\n#### `--help, -h`\n\nヘルプを表示します。\n\n#### `--version, -v`\n\nバージョンを表示します。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fy13i%2Fawsprice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fy13i%2Fawsprice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fy13i%2Fawsprice/lists"}