並び順

ブックマーク数

期間指定

  • から
  • まで

1 - 27 件 / 27件

新着順 人気順

lambda python requests moduleの検索結果1 - 27 件 / 27件

  • サーバーレスのセキュリティリスク - AWS Lambdaにおける脆弱性攻撃と対策 - GMO Flatt Security Blog

    はじめに こんにちは、株式会社Flatt Security セキュリティエンジニアの森岡(@scgajge12)です。 本稿では、AWS Lambda で起こりうる脆弱性攻撃やリスク、セキュリティ対策を解説し、サーバーレスにおけるセキュリティリスクについて紹介します。 はじめに AWS Lambda について サーバーレスにおけるセキュリティリスク AWS Lambda で起こりうる脆弱性攻撃 Lambda での脆弱性攻撃によるリスク 脆弱性攻撃による更なるリスク OS Command Injection XML External Entity (XXE) Insecure Deserialization Server Side Request Forgery (SSRF) Remote Code Execution (RCE) AWS Lambda におけるセキュリティ対策 セキュリティ

      サーバーレスのセキュリティリスク - AWS Lambdaにおける脆弱性攻撃と対策 - GMO Flatt Security Blog
    • PythonとRustの融合:PyO3/maturinを使ったPythonバインディングの作成入門 | gihyo.jp

      Cargo.tomlにはデフォルトのメタデータとPyO3の依存関係(バージョン)などが記載されています。また、pyproject.tomlにはビルドツールとしてmaturinが使用されることなどがあらかじめ定義されています。 注目すべきはRustスクリプトを記述するsrc/lib.rsファイルです。以下のようなscaffold(足場)が最初から記載されています。 src/lib.rsにデフォルトで記載されているscaffold 1 use pyo3::prelude::*; 2 3 /// Formats the sum of two numbers as string. 4 #[pyfunction] 5 fn sum_as_string(a: usize, b: usize) -> PyResult<String> { 6 Ok((a + b).to_string()) 7 } 8 9

        PythonとRustの融合:PyO3/maturinを使ったPythonバインディングの作成入門 | gihyo.jp
      • AWS Lambda の Python で pandas や requests を使うのに、Lambda Layer を自作する必要はない - AWS SDK for pandas を活用しよう - Qiita

        AWS Lambda の Python で pandas や requests を使うのに、Lambda Layer を自作する必要はない - AWS SDK for pandas を活用しようAWSpandaslambdaLambda-Layers 概要 AWS Lambda では、マネージドに提供されている AWS レイヤーがあり、自分でビルドすることなく簡単に利用できる AWS SDK for pandas のマネージドな Lambda Leyer には、 pandas / numpy といったデータ処理系のモジュールや aiohttp / requests といった HTTP リクエスト用モジュールなど、様々なモジュールがバンドルされている (一覧は後述) AWS Lambda でこれらのモジュールを使用する方法として、多くの記事では Lambda Layer を自作する方法や第三

          AWS Lambda の Python で pandas や requests を使うのに、Lambda Layer を自作する必要はない - AWS SDK for pandas を活用しよう - Qiita
        • Qlibを使った機械学習パイプライン環境の構築 投資の取引戦略最適化と機械学習モデル作成の省力化を目指して - 株のシステムトレードをしよう - 1から始める株自動取引システムの作り方

          概要 はじめに Qlibの試用 動作条件 使用したrequirements.txt データの取得 予測の実施 出力 図示 ソースコード バックテストでのポートフォリオ分析 リスク分析、分析モデル おわりに 概要 本記事では、Qlibを使用して、機械学習パイプライン環境を構築する第一歩について述べる。 はじめに このブログの趣旨としては、当初は「戦略作成」→「戦略検証」→「戦略稼働」→「成果の評価」→「戦略へフィードバック」といったサイクルを管理できるような自動トレーディングシステムを作ることを考えていた。 最近、すこし株取引から離れていたのだが、最近になってまたやり始めようかなと思い、色々と現在の状況を調べはじめた。 その中で、MicrosoftのリポジトリにQlibというものがあるのを見つけた。これが2020年の8月から作られたもので、現在でもメンテされており、もしかするとこれがやりたい

            Qlibを使った機械学習パイプライン環境の構築 投資の取引戦略最適化と機械学習モデル作成の省力化を目指して - 株のシステムトレードをしよう - 1から始める株自動取引システムの作り方
          • AWS Lambda standardizes billing for INIT Phase | Amazon Web Services

            AWS Compute Blog AWS Lambda standardizes billing for INIT Phase Effective August 1, 2025, AWS will standardize billing for the initialization (INIT) phase across all AWS Lambda function configurations. This change specifically affects on-demand invocations of Lambda functions packaged as ZIP files that use managed runtimes, for which the INIT phase duration was previously unbilled. This update sta

              AWS Lambda standardizes billing for INIT Phase | Amazon Web Services
            • Kalyn: a self-hosting compiler for x86-64

              Over the course of my Spring 2020 semester at Harvey Mudd College, I developed a self-hosting compiler entirely from scratch. This article walks through many interesting parts of the project. It’s laid out so you can just read from beginning to end, but if you’re more interested in a particular topic, feel free to jump there. Or, take a look at the project on GitHub. Table of contents What the pro

              • 週刊Railsウォッチ(20201221前編)aws-sdk-rails gemの機能をチェック、RubyWorld Conference 2020のDHHインタビューほか|TechRacho by BPS株式会社

                2020.12.21 週刊Railsウォッチ(20201221前編)aws-sdk-rails gemの機能をチェック、RubyWorld Conference 2020のDHHインタビューほか こんにちは、hachi8833です。約400年ぶりという木星と土星の超大接近は12/21(月)なので今夜ですね。と思ったらもう西の空に沈んでしまったようです。 参考: 【特集】2020年12月 木星と土星の超大接近 - アストロアーツ 各記事冒頭には⚓でパーマリンクを置いてあります: 社内やTwitterでの議論などにどうぞ 「つっつきボイス」はRailsウォッチ公開前ドラフトを(鍋のように)社内有志でつっついたときの会話の再構成です👄 お気づきの点がありましたら@hachi8833までメンションをいただければ確認・対応いたします🙇 ⚓Rails: 先週の改修(Rails公式ニュースより) 今

                  週刊Railsウォッチ(20201221前編)aws-sdk-rails gemの機能をチェック、RubyWorld Conference 2020のDHHインタビューほか|TechRacho by BPS株式会社
                • Introducing VPC Lattice – Simplify Networking for Service-to-Service Communication (Preview) | Amazon Web Services

                  AWS News Blog Introducing VPC Lattice – Simplify Networking for Service-to-Service Communication (Preview) March 31, 2023 – Amazon VPC Lattice is now generally available with new capabilities. Modern applications are built using modular and distributed components. Each component is a service that implements its own subset of functionalities. To make these services communicate with each other, you

                    Introducing VPC Lattice – Simplify Networking for Service-to-Service Communication (Preview) | Amazon Web Services
                  • New – AWS Control Tower Account Factory for Terraform | Amazon Web Services

                    AWS News Blog New – AWS Control Tower Account Factory for Terraform December 7, 2023: Post updated to clarify AWS Regions availability. AWS Control Tower makes it easier to set up and manage a secure, multi-account AWS environment. AWS Control Tower uses AWS Organizations to create what is called a landing zone, bringing ongoing account management and governance based on our experience working wit

                      New – AWS Control Tower Account Factory for Terraform | Amazon Web Services
                    • とうとうRyzen + RADEONのAMD環境にもWindowsで動くStable

                      やっと来たAMD最初の一歩。DirectMLでAMD GPUを動かす 定期的にAMDxSD x Winのことを調べていますが、今回この記事に行き当たりました。Running Stable Diffusion on Windows with an AMD GPU Unfortunately, in its current state, it relies on Nvidia’s CUDA framework, which means that it only works out of the box if you’ve got an Nvidia GPU. Fear not, however. Because Stable Diffusion is both a) open source and b) good, it has seen an absolute flurry of activ

                        とうとうRyzen + RADEONのAMD環境にもWindowsで動くStable
                      • graphql-rubyのN+1を遅延ロードで解決する | VISITS TechBlog

                        技術開発部で主にバックエンド開発をしている浜田(@hamchance0215)です。 現在開発中のプロダクトのバックエンドはRails + graphql-rubyを使っています。 GraphQLを使った際のデメリットとしてN+1が発生しやすいということがよく言われます。 弊社でも例外ではなく、随所でN+1が発生していました。 今まではフロントエンドからの使われ方を考慮して、サクッと実装できる先読み(preload等)でN+1を回避していたのですが、クエリー数が増加したことでクエリーごとに使われ方を把握するのは難しくなってきたのと、同じクエリーであったとしても使われ方が多様化して先読みでは非効率になることが懸念されました(先読みが非効率になる件は後述します)。 そこで重い腰をあげて、遅延ロードを導入するために調査を行うことにしました。 ※この記事は執筆時点(2021/06)の情報で記載され

                          graphql-rubyのN+1を遅延ロードで解決する | VISITS TechBlog
                        • xvw.lol - Why I chose OCaml as my primary language

                          This article is a translation, the original version is available here. I started using the OCaml language regularly around 2012, and since then, my interest and enthusiasm for this language have only grown. It has become my preferred choice for almost all my personal projects, and it has also influenced my professional choices. Since 2014, I have been actively participating in public conferences d

                          • Awesome Terraform | Curated list of awesome lists | Project-Awesome.org

                            A curated list of resources on HashiCorp's Terraform. Your contributions are welcome! Terraform enables you to safely and predictably create, change, and improve production infrastructure. It is an open source tool that codifies APIs into declarative configuration files that can be shared amongst team members, treated as code, edited, reviewed, and versioned. Contents Legend Official Resources Com

                            • What's New in Emacs 28.1?

                              Try Mastering Emacs for free! Are you struggling with the basics? Have you mastered movement and editing yet? When you have read Mastering Emacs you will understand Emacs. It’s that time again: there’s a new major version of Emacs and, with it, a treasure trove of new features and changes. Notable features include the formal inclusion of native compilation, a technique that will greatly speed up y

                              • Cache your CORS, for performance & profit

                                CORS is a necessity for many APIs, but basic configurations can create a huge number of extra requests, slowing down every browser API client, and sending unnecessary traffic to your backend. This can be a problem with a traditional API, but becomes a much larger issue with serverless platforms, where your billing is often directly tied to the number of requests received, so this can easily double

                                  Cache your CORS, for performance & profit
                                • VPC上にデプロイしたSIEM on Amazon ESで既存S3バケットのログを分析してみた | DevelopersIO

                                  既にS3バケットにログを収集しているんだけど、このままだとSIEM on Amazon ESで分析できない? こんにちは、のんピ です。 前回、以下の記事を投稿しました。 内容は、SIEM on Amazon ESのスタックが作成したログ収集用S3バケットに、CloudTrailや、VPC Flow Logs、FSx for Windows File Serverのファイルアクセス監査ログを保存して、可視化するといったものです。 以下、AWS公式ドキュメントの図を見ると、ログ収集用S3バケットのデータ保存は3パターンがあることがわかります。 抜粋: SIEM on Amazon Elasticsearch Service - アーキテクチャ Kienesis Data Firehoseを使用して、ログ収集用S3バケットにログを転送する サービスのログの出力先を、ログ収集用S3バケットに指定

                                    VPC上にデプロイしたSIEM on Amazon ESで既存S3バケットのログを分析してみた | DevelopersIO
                                  • State of Python 3.13 Performance: Free-Threading - CodSpeed

                                    CPython 3.13 was released two weeks ago and this release is the most performance-oriented in some time. After a quick read of the release notes, a few things stand out for the impact they can have on the performance: CPython can now run in free-threaded mode, with the global interpreter lock (GIL) disabled a brand new just-in-time (JIT) compiler has been added CPython now bundles the mimalloc allo

                                      State of Python 3.13 Performance: Free-Threading - CodSpeed
                                    • Deploy and Customize AWS accounts using Account Factory for Terraform in AWS Control Tower | Amazon Web Services

                                      AWS Cloud Operations Blog Deploy and Customize AWS accounts using Account Factory for Terraform in AWS Control Tower Customers use AWS Control Tower Account Factory to create a new AWS account or enroll existing AWS accounts in their AWS Organizations. Customers launch Account Factory from the AWS Control Tower console or via AWS Service Catalog API. We hear from customers that they want to manage

                                        Deploy and Customize AWS accounts using Account Factory for Terraform in AWS Control Tower | Amazon Web Services
                                      • Pulumi at NearMe: Embracing True Infrastructure as Code - NearMe Tech Blog

                                        Introduction Infrastructure as Code (IaC) has revolutionized how organizations manage their cloud infrastructure, and at NearMe, our journey led us to choose Pulumi as our primary IaC tool. This article explores how Pulumi's unique approach to infrastructure management has transformed our Platform Engineering practices, enhanced developer productivity, and improved our infrastructure reliability.

                                          Pulumi at NearMe: Embracing True Infrastructure as Code - NearMe Tech Blog
                                        • Mackerel APIを手軽に叩くためのCLI・Pythonモジュールを公開しました | DevelopersIO

                                          TL;DR 背景 みなさん、 Mackerel API 叩いてますか!(挨拶 Mackerel はその Web UI の使いやすさも特徴的なのですが、API でいろいろ出来るのもイマドキの SaaS っぽくて素敵ですよね。とはいえ、基本的には mkr などの純正ツール群経由で間接的に利用するケースが多いのかなと思います。 一方で、mkrが対応していない API もあります。それらを活用することでいろいろと便利なことが出来ます。 例えばサービスメトリックの送信や、AWS インテグレーションまでカバーした GitOps などをやろうとすると、API を直接叩けたほうが便利です。1 弊社でも、いくつか Mackerel API を ネタに 利用した記事を掲載しています。 Mackerel API を利用してオーガニゼーションへ招待してみる | DevelopersIO [待望の新機能] Mack

                                            Mackerel APIを手軽に叩くためのCLI・Pythonモジュールを公開しました | DevelopersIO
                                          • chroju.dev/blog

                                            Articles2025Firefoxとtridactylを使い始めた 2025-06-12 03:41 帝京理工学部の通信課程を働きながら6年で卒業した 2025-04-13 08:43 20242024年に解約した or 解約を検討したサブスク 2024-12-28 01:43 おひとりさまPleromaでFediverseに参加して1年が経った 2024-11-16 00:26 Platform Engineering Kaigi 2024 #PEK2024 に参加した 2024-07-09 12:27 Pixel aシリーズからNothing Phone (2a)に乗り換えた 2024-06-23 05:51 『情報セキュリティの敗北史』を読んだ 2024-05-17 14:44 Corne Cherryを愛用した4年の後、Corne V4を購入した 2024-04-05 14:4

                                              chroju.dev/blog
                                            • New – Use Amazon S3 Object Lambda with Amazon CloudFront to Tailor Content for End Users | Amazon Web Services

                                              AWS News Blog New – Use Amazon S3 Object Lambda with Amazon CloudFront to Tailor Content for End Users With S3 Object Lambda, you can use your own code to process data retrieved from Amazon S3 as it is returned to an application. Over time, we added new capabilities to S3 Object Lambda, like the ability to add your own code to S3 HEAD and LIST API requests, in addition to the support for S3 GET re

                                                New – Use Amazon S3 Object Lambda with Amazon CloudFront to Tailor Content for End Users | Amazon Web Services
                                              • Nginx 接続数制限 (limit_conn) を設定してab検証する | Oji-Cloud

                                                概要 Nginx では標準で提供されている limit_conn モジュールを使用して、接続数制限を提供します。 接続数制限によって、同一の接続元からの接続が制限でき、DoS攻撃から防御できます。あるいは、TCPの接続数を制限することによって、高負荷時にもWebサービスの処理を継続させることが目的です。 今回は、Nginx 接続数制限 (limit_conn) の設定方法、ab (apache bench) による接続数制限の検証方法をまとめます。 事前準備 EC2 の Amazon Linux 2 インスタンスを起動します。 インスタンスのUser data 設定に、下記を記載します。Amazon Linux 2 のnginx は、amazon-linux-extrasを使用します。amazon-linux-extras の詳細はこちらを参照。 #!/bin/bash sudo yum

                                                  Nginx 接続数制限 (limit_conn) を設定してab検証する | Oji-Cloud
                                                • AWS One Observability Demo Workshop: What’s new with Prometheus, Grafana, and OpenTelemetry  | Amazon Web Services

                                                  AWS Open Source Blog AWS One Observability Demo Workshop: What’s new with Prometheus, Grafana, and OpenTelemetry Amazon Web Services (AWS) offers a variety of observability services and tools to gain visibility and insights about your workload’s health and performance. For example, Amazon CloudWatch and AWS X-Ray offer a variety of features to collect, ingest, and perform operations on traces, met

                                                    AWS One Observability Demo Workshop: What’s new with Prometheus, Grafana, and OpenTelemetry  | Amazon Web Services
                                                  • Raising code quality for Python applications using Amazon CodeGuru | Amazon Web Services

                                                    AWS DevOps & Developer Productivity Blog Raising code quality for Python applications using Amazon CodeGuru We are pleased to announce the launch of Python support for Amazon CodeGuru, a service for automated code reviews and application performance recommendations. CodeGuru is powered by program analysis and machine learning, and trained on best practices and hard-learned lessons across millions

                                                      Raising code quality for Python applications using Amazon CodeGuru | Amazon Web Services
                                                    • AWS Parameters and Secrets Lambda ExtensionをPythonのrequestsモジュールなしで使ってみた | DevelopersIO

                                                      こんにちは、つくぼし(tsukuboshi0755)です! LambdaでSSM Parameter StoreやSecrets Managerから値を取得する際に、AWS Parameters and Secrets Lambda Extension(以降Lambda Extension)を使うと、自前で実装しなくともキャッシュを利用でき、コストの削減やレイテンシーの改善を実現できます。 本機能をPythonで用いる場合、上記含め多くの記事でrequestsモジュールを用いたコードが記載されています。 requestsモジュールはコード量が少ないという特徴がある一方で、Python3.8以降では外部ライブラリになってしまっているため、使用する場合は別途レイヤーを作成する必要があります。これはちょっと面倒ですよね..。 そこで、今回はrequestsモジュールの代わりに、Python3.8

                                                        AWS Parameters and Secrets Lambda ExtensionをPythonのrequestsモジュールなしで使ってみた | DevelopersIO
                                                      • OpenTelemetry Tracing in 200 lines of code | Jeremy Morrell

                                                        Developers tend to treat tracing as deep magic, and OpenTelemetry is no exception. OpenTelemetry may be even more mysterious given how many concepts your are exposed to even with beginning examples. <a href="#footnote-1" id="footnote-ref-1" data-footnote-ref="true" aria-describedby="footnote-label"><code>[1]</code></a> It also doesn't help that as part of building a mature, battle-tested tracing l

                                                        1