JAWS UG Niigata プチキャッチアップ 2023 履歴
昨年の実施履歴: JAWS UG Niigata プチキャッチアップ 2022 履歴
次年の実施履歴: JAWS UG Niigata プチキャッチアップ 2024 履歴
2023#1 2023/01/05 (木) https://jawsug-niigata.connpass.com/event/270400/
気になる記事
re:Invent 2022 復習
EventBridge Pipes
https://dev.classmethod.jp/articles/amazon-eventbridge-pipes-released/
Application Composer
https://dev.classmethod.jp/articles/aws-application-composer/
Athena for Spark
https://dev.classmethod.jp/articles/amazon-athena-for-apache-spark-reinvent2022/
Glue for Ray
https://dev.classmethod.jp/articles/aws-glue-ray-reinvent-2022/
OpenSearch serverless
https://dev.classmethod.jp/articles/aws-reinvent-2022-opensearch-serverless/
Lambda SnapStart
https://dev.classmethod.jp/articles/lambda-snapshot-reinvent/
CodeCatalyst
https://dev.classmethod.jp/articles/new-amazon-codecatalyst-preview-announced/
2023#2 2023/01/12 (木) https://jawsug-niigata.connpass.com/event/271337/
気になる記事
Lambda Web Adapterでウェブアプリを (ほぼ) そのままサーバーレス化する
https://aws.amazon.com/jp/builders-flash/202301/lambda-web-adapter/
https://github.com/awslabs/aws-lambda-web-adapter
S3でオブジェクト保存時に必ず暗号化されるように
https://dev.classmethod.jp/articles/amazon-s3-always-encrypt-objects/
2023#3 2023/01/19 (木) https://jawsug-niigata.connpass.com/event/272051/
気になる記事
AWS Python SDK (boto3) のリソースインタフェースが非推奨に
https://dev.classmethod.jp/articles/aws-python-sdk-resource-interface-deperecation-warning/
Partition Projection 設定不足で1クエリにつきS3のListBucketが大量にコールされた話
https://dev.classmethod.jp/articles/partition-projection-shikujiri-s3-cost-increase/
他
AWS Systems Manager Automation
1/23にExpert Onlineあるよ
Snowflakeを使ったデータ分析
Snowflake自体がAWSで稼働しており、AWSと相性が良い
2023#4 2023/01/26 (木) https://jawsug-niigata.connpass.com/event/272785/
お悩み相談
SageMakerで意外と課金がなされた
アラートメールは設定しておこう
メールが埋もれる → Slack通知も活用する?
AWSアーキテクチャ相談
EC2インスタンス1台の時は、1台だけのオートスケーリングを検討した方が良い?
検討した方がよさそう
ALBとCloudFront+ALBを使い分けてるところは、どういう意図があるのだろう?
ALB単独は、おそらくそこまで大量のアクセスがあるとは見込めないからALBだけで十分ということだと思うよ
ALBをパブリックサブネット、EC2をプライベートサブネットに配置してるけど、EC2に直接アクセスさせない理由は?
EC2へ直接アクセスを許すとセキュリティ攻撃を受けやすくなる
ALBにACMの証明書をアタッチした方が、証明書の自動更新などをAWS側で管理してくれるので楽
ALBにアクセスする構成にすると、後でEC2を増やしたい時などに対応しやすくなり、拡張性が高い
Auroraのカスタムエンドポイントはなぜ設定しているのだろう?
負荷が大きい処理と通常処理が混在して同じリーダーインスタンス上で処理されると負荷が大きい処理がスローダウンするからそれを予防するために設定すると思うよ
参考: https://dev.classmethod.jp/articles/amazon-aurora-custom-endpoints/
CloudFormationで一気に作っているけど、これがスタンダードなやり方なのだろうか?
自分は少しずつ作ってはスタック作成して、徐々に大きくしていく方法
一気に作って余計なところ削除しながら作るスタンスもある
2023#5 2023/02/02 (木) https://jawsug-niigata.connpass.com/event/273500/
もくもく会
Glue Studioを使ってETL処理
グラフィカル設定でETL処理が容易
設定内容のPythonスクリプトも出力される
PythonスクリプトなどのコードもGlue Studio上で記述可能
Connection設定さえしっかりやれば問題なさそう
2023#6 2023/02/09 (木) https://jawsug-niigata.connpass.com/event/274268/
もくもく会
Glue Studioを使ってETL処理(前回の続き)
Glue Connection設定しておくと、Pythonスクリプト上でawswranglerが便利に使える
https://aws-sdk-pandas.readthedocs.io/en/stable/stubs/awswrangler.mysql.read_sql_query.html
https://aws-sdk-pandas.readthedocs.io/en/stable/stubs/awswrangler.s3.to_csv.html
code:glue_job.py
import awswrangler as wr
conn = wr.mysql.connect(GLUE_CONNECTION_NAME)
with conn:
df = wr.mysql.read_sql_query(
sql = 'select * from hoge',
con = conn,
)
wr.s3.to_csv(
df = df,
path = 's3://BACKET_NAME/PATH/FILE.csv',
index = False,
)
Version Controlも使える。ブランチ固定っぽいので、簡易的な使い方になりそう。あとGitHubだとPersonal Access Tokenをログインのたびに入力しないといけないので、CodeCommit使う方が便利そう。
https://dev.classmethod.jp/articles/aws-glue-git-integration/
2023#7 2023/02/16 (木) https://jawsug-niigata.connpass.com/event/275002/
お話し
ECSハンズオン
https://ecsworkshop.com/
Amplifyハンズオン
https://amplify-sns.workshop.aws/ja/
https://docs.amplify.aws/start/
AmplifyでのNext.js SSR機能はLambda@Edge使っているみたい
https://dev.classmethod.jp/articles/amplify-javascript-adds-server-side-rendering-support-frameworks-next-js-nuxt-js/
裏でServerless FrameworkのServerless Next.js Plugin使っているらしい
https://www.serverless.com/plugins/serverless-nextjs-plugin
2023#8 2023/02/23 (木) https://jawsug-niigata.connpass.com/event/275673/
もくもく会
Glue for Rayを試す
まずはお試しでひたすらサンプルコードを写経
使用感は良いので、Rayをもっと触っておきたい。
参考:
https://dev.classmethod.jp/articles/aws-glue-ray-reinvent-2022/
https://docs.aws.amazon.com/glue/latest/dg/ray-using.html
https://aws.amazon.com/jp/blogs/big-data/introducing-aws-glue-for-ray-scaling-your-data-integration-workloads-using-python/
後日、Rayのドキュメントも参考にしてより触っていく予定
https://docs.ray.io/en/latest/ray-overview/index.html
2023#9 2023/03/02 (木) https://jawsug-niigata.connpass.com/event/276331/
気になる記事
Amazon Lightsail for Research
https://dev.classmethod.jp/articles/amazon-lightsail-research/
ECSタスク定義リビジョンの削除をサポート
https://dev.classmethod.jp/articles/amazon-ecs-task-definition-deletion/
お悩み相談
ECS FargateのコンテナビルドをCodeBuildで実施。うまくECS Execができない。
一応、CodeBuildでビルドしてるが、そこではECS Execはできている。
ビルドの際のコンテナへのインストールはDockerfileに記載しよう
buildspec.yml の install に記載してもコンテナには反映されない (CodeBuildの環境へのインストールだから)
Docker Hubからのイメージダウンロードでリミットに引っかかる
IPアドレスガチャがあるから、ログインしてダウンロードすると安全
https://dev.classmethod.jp/articles/codebuild-has-to-use-dockerhub-login-to-avoid-ip-gacha/
ECR Publicにあるイメージであれば、ECR Publicからダウンロードする方法もあり
https://dev.classmethod.jp/articles/docker-official-images-on-ecr/
https://gallery.ecr.aws/
2023#10 2023/03/09 (木) https://jawsug-niigata.connpass.com/event/277027/
気になる記事
Amazon RDSがAWS Secrets Managerとの統合をサポート
https://dev.classmethod.jp/articles/aws-rds-integration-aws-secrets-manager/
Single AZなRedshift Clusterを、あとからMulti AZに再配置
https://dev.classmethod.jp/articles/possible_redshift_cluster_relocation_later/
Application ComposerがGA
https://dev.classmethod.jp/articles/application-composer-ga/
その他
CloudFront + WAFのログをS3に配置
東京リージョンにバケット置くか、バージニア北部にバケット置くか
東京リージョンにバケット置くと、リージョン間通信が発生しそう。一回試してみると良いかも
Amplify SNSワークショップ試したが、最新バージョンのNodeなど入れたら色々動かなくて苦戦。
https://amplify-sns.workshop.aws/ja/
バージョンは資料に記載あるもので指定しよう
Aurora クラスタの Performance Insights 有効化
クラスタに有効化すると、配下のインスタンスが有効化される
Application Composerを実際に試す
ローカルPC上のディレクトリと同期して、Application Composerで作成した構成内容の雛形Lambdaソースが自動作成されたり、SAMテンプレートが作成されたり。
デプロイはAWS CLI + AWS SAM CLIを使って、sam build & sam deploy で行う
GUI上でサーバーレス構成をサクッと構築できるのは面白い
2023#11 2023/03/16 (木) https://jawsug-niigata.connpass.com/event/277726/
気になる記事
S3 インターフェースエンドポイントでプライベート DNS 名を使用可能に
https://dev.classmethod.jp/articles/amazon-s3-private-connectivity-on-premises-networks/
Amazon Linux 2023がGA
https://dev.classmethod.jp/articles/amazon-linux-2023-ga/
CfnでAurora作成時にResourcesのDBInstance側で設定してはならないプロパティまとめ
https://dev.classmethod.jp/articles/cloudformaion-aurora-dbinstance-not-use-property/
他
ECSでコンテナ間の通信をする際はロードバランサを挟んだ方がいい?
Cloud Map や App Mesh もある
シンプルなものであれば、ロードバランサを使うのも良い
App Mesh: https://dev.classmethod.jp/articles/reintroduction-aws-app-mesh-with-fargate/
Local Zonesってどのような時に使うの?
低レイテンシが必要なケース
https://dev.classmethod.jp/articles/aws-local-zones-feature/
他にもOutposts や Wavelength もある
2023#12 2023/03/23 (木) https://jawsug-niigata.connpass.com/event/278339/
気になる記事
Clean RoomsがGA
https://dev.classmethod.jp/articles/aws-clean-rooms-generally-available/
Clean Rooms用のData Connectorテンプレートもあるみたい
https://docs.aws.amazon.com/solutions/latest/data-connectors-for-aws-clean-rooms/aws-cloudformation-templates.html
AWS ChatbotがMicrosoft Teamsをサポート
https://aws.amazon.com/about-aws/whats-new/2023/03/aws-chatbot-available-microsoft-teams/
他
ECSのBlue/Greenデプロイメントで、Blue側リスナーを80番、Green側リスナーを8080番にした際に対応するターゲットグループとかも8080番にしてたけど動かなくて、結局Blue/Green側のターゲットグループとも80番に揃えた。分ける必要がないのはなぜだろう?
参考: https://qiita.com/sugimount-a/items/b7bce32531947e80abe3
リスナーさえ分かれていれば、ターゲットグループ配下はポートを統一しておけば問題なく動く
分ける必要なく動くということ
2023#13 2023/03/30 (木) https://jawsug-niigata.connpass.com/event/278995/
Tips
Timestreamで大量の結果を取得すると、Rowが空で返ってくる
https://nixeneko.hatenablog.com/entry/2022/04/12/224741
NextTokenが渡ってくるので、それを使って再度リクエストを繰り返す必要がある
https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/timestream-query/client/query.html#
https://docs.aws.amazon.com/timestream/latest/developerguide/API_query_Query.html
QuickSightの無料枠
30日間無料トライアルあり
https://aws.amazon.com/jp/quicksight/pricing/
RDSのスロークエリログ
https://qiita.com/yokoo-an209/items/155944345b78e63067d8
設定し、クエリを流してしばらくするとロググループが出来上がる
Security Hub
https://aws.amazon.com/jp/security-hub/
セキュリティチェックの自動化とアラートの一元管理ができるらしい
まだ使ったことはない
Former2などを使って既存リソースからCfnテンプレート作成したことある?
作成したことはない
既存リソースからCfnテンプレート作成しなきゃならない場面にまだ遭遇した事がない。
アーキテクチャ構成図自動生成ツール
https://dev.classmethod.jp/articles/gettingstart-aws-perspective/
使ったことはない
基本はVS Code上でdraw.ioのアドオン入れて、VS Code上で作図する事が多い
https://marketplace.visualstudio.com/items?itemName=hediet.vscode-drawio
2023#14 2023/04/06 (木) https://jawsug-niigata.connpass.com/event/279756/
気になる記事
VPC Lattice が GA
https://dev.classmethod.jp/articles/amazon-vpc-lattice-ga/
他 VPC Lattice の記事
https://dev.classmethod.jp/articles/set-custom-domain-for-vpc-lattice/
https://dev.classmethod.jp/articles/set-fixed-response-to-vpc-lattice/
https://dev.classmethod.jp/articles/use-prefix-lists-for-security-grouops-of-vpc-lattice/
VPC内でリバースプロキシ使いたい場合にALBではなくVPC Latticeを使うと簡潔に使えそう
ヘルスチェックもできそう
https://docs.aws.amazon.com/vpc-lattice/latest/ug/target-group-health-checks.html
他
Application Managerとは何か?
https://dev.classmethod.jp/articles/new-features-ssm-reinvent2020/
関連するリソース群の情報を集約して可視化できる
Cfnスタックにあるリソースの情報を可視化できたり、リソースグループでまとめられたリソースの情報を可視化できたり
2023#15 2023/04/13 (木) https://jawsug-niigata.connpass.com/event/280573/
もくもく会
Mountpoint for Amazon S3を試す
https://aws.amazon.com/about-aws/whats-new/2023/03/mountpoint-amazon-s3/
https://github.com/awslabs/mountpoint-s3
OSSで構築された、Linuxファイルシステム上にS3バケットをマウントできるツール
アルファリリースのため、まだRead-Onlyしかできない → 今後に期待
現状はソースをビルドしてインストールする
2023#16 2023/04/20 (木) https://jawsug-niigata.connpass.com/event/281094/
気になる記事
AWS Summit Tokyo 2023
カプコンのクラウド活用事例
https://dev.classmethod.jp/articles/aws_summit_2023_cus19/
他は記事やアーカイブを見てみます
CodeCatalystを触ってみる
https://zenn.dev/devcamp/articles/bb14739fd603ee
CloudFormation の Fn::FindInMap 関数の言語拡張強化
https://aws.amazon.com/jp/about-aws/whats-new/2023/01/aws-cloudformation-fnfindinmap-language-extension-default-values-additional-intrinsic-functions/
https://dev.classmethod.jp/articles/cloudformation-fnfindinmap-language-extension/
Cloudformation テンプレートに Transform: AWS::LanguageExtensions の記載が必要。
他
Nodejs v18 で aws-sdk を使った際のハマりポイント
https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/modules/_aws_sdk_rds_signer.html
@aws-sdk/rds-signerのように、 @aws-sdk で指定しなければならない
credentials: fromNodeCredentialProvider(), の箇所は、 fromNodeCredentialProvider() が Promise返すようになったため、 await fromNodeCredentialProvider() にしなければならなかった
最終的にIAMロールから認証情報もらうようにしたので、 credentials: await fromEnv() と記述した
2023#17 2023/04/27 (木) https://jawsug-niigata.connpass.com/event/281740/
気になる
Finch https://aws.amazon.com/jp/blogs/news/introducing-finch-an-open-source-client-for-container-development/
はまった話
S3のデフォルトが変わった話
https://www.sunnycloud.jp/column/20221227-02/
terraformで引っかかった
https://github.com/hashicorp/terraform-provider-aws/issues/28353
AWS落ちた
スキルビルダー4日間落ちてる
https://aws.amazon.com/jp/training/digital/
AWSレイオフ
Cloudflare
https://cfm-cts.connpass.com/event/276517/
Lambdaで6MB以上のレスポンスを返せるようになった
https://dev.classmethod.jp/articles/aws-lambda-response-streaming-api-gateway/
2023#18 2023/05/04 (木) https://jawsug-niigata.connpass.com/event/282767/
気になる記事
新サービス AWS User Notifications
https://dev.classmethod.jp/articles/aws-user-notifications-release/
Glue Visual ETLがネイティブにRedshift機能をサポート
https://dev.classmethod.jp/articles/aws-glue-amazon-redshift-integration-for-apache-spark/
Glue StudioのVisual Editorから、Glue Data Catalogを使わなくても直接アクセスが可能になってる
Lambda で Python 3.10 ランタイムサポート
https://dev.classmethod.jp/articles/aws_lambda_support_python310/
2023#19 2023/05/11 (木) https://jawsug-niigata.connpass.com/event/283074/
気になる記事
AWSマネジメントコンソールへのプライベートアクセス
https://imiky.hatenablog.com/entry/2023/05/11/130922
https://dev.classmethod.jp/articles/aws-management-console-private-access/
VPCエンドポイント経由でAPIアクセスできるだけで、静的コンテンツ等はインターネットから取得する
AWS Glue 大規模インスタンスタイプがGA
https://dev.classmethod.jp/articles/20230510-aws-glue-g4x-and-g8x/
AWS Verified Access
https://dev.classmethod.jp/articles/aws-verified-access-request/
他
git-secrets
https://dev.classmethod.jp/articles/startup-git-secrets/
https://github.com/awslabs/git-secrets
https://ceblog.mediba.jp/post/638125766874415104/aws-access-keyを外部に公開してしまった話
2023#20 2023/05/18 (木) https://jawsug-niigata.connpass.com/event/283766/
もくもく会
サーバーレスWebアプリを個々のサービスでの構築とAmplifyでの構築で試す
参考: https://github.com/harunobukameda/AWS-Amplify-AWS-Lambda-Amazon-DynamoDB-AWS-API-Gateway-Amazon-Cognito
Amplify Studioが面白い
https://sandbox.amplifyapp.com/getting-started/
2023#21 2023/05/25 (木) https://jawsug-niigata.connpass.com/event/284560/
もくもく会
前回の続き
サーバーレスWebアプリを個々のサービスでの構築とAmplifyでの構築で試す
参考: https://github.com/harunobukameda/AWS-Amplify-AWS-Lambda-Amazon-DynamoDB-AWS-API-Gateway-Amazon-Cognito
次回はApp Runner版を試したい
2023#22 2023/06/01 (木) https://jawsug-niigata.connpass.com/event/285587/
気になる記事
高I/Oワークロード向けのAurora DBクラスタ「Aurora I/O-Optimized」がサポート
https://dev.classmethod.jp/articles/amazon-aurora-io-optimized/
お悩み相談
CloudFront等のログを保管するS3バケットをCloudformationで作成しようとしたが、以下のようなエラーが出力される
Bucket cannot have ACLs set with ObjectOwnership's BucketOwnerEnforced setting.
以下の記事はCDKでの対処法だが、CDKでCloudformationテンプレートのyaml出力を出せるので、それを参考にすると良いかも。
https://qiita.com/rm0063vpedc15/items/9971218e79ba6616c8b5
他
Cloudcraftは、既存のAWSリソースを元に構成図が作れるらしい
https://www.cloudcraft.co/
Amazon Security Lake試してみた
https://dev.classmethod.jp/articles/release-amazon-security-lake-preview/
https://zenn.dev/devcamp/articles/a5ca143e906ae6
2023#23 2023/06/08 (木) https://jawsug-niigata.connpass.com/event/286055/
気になる記事
Glue Data Quality が GA
https://dev.classmethod.jp/articles/aws-glue-data-quality-generally-available/
Glue for Ray が GA
https://aws.amazon.com/jp/about-aws/whats-new/2023/06/aws-glue-ray-generally-available/
新潟県とAWSの提携
https://aws.amazon.com/jp/about-aws/whats-new/2023/05/niigata-prefecture-and-aws-collaborate-for-regional-revitalization/
CloudWatch Logs の Live Tail 機能
https://dev.classmethod.jp/articles/live-tail-amazon-cloudwatch-logs/
他
S3のデフォルト ObjectOwnership が BucketOwnerEnforced に変更
https://zenn.dev/devcamp/articles/39ce7fd0272926
クロスアカウントでのVPC Peering
https://zenn.dev/devcamp/articles/808380c45d328c
2023#24 2023/06/15 (木) https://jawsug-niigata.connpass.com/event/286815/
気になる記事
EC2 Instance Connect Endpoint
https://aws.amazon.com/jp/about-aws/whats-new/2023/06/amazon-ec2-instance-connect-ssh-rdp-public-ip-address/
https://dev.classmethod.jp/articles/how-to-connect-rds-instance-via-eic-endpoint/
https://dev.classmethod.jp/articles/rdp-connection-to-windows-server-using-ec2-instance-connect-endpoint-eic/
https://dev.classmethod.jp/articles/ec2-instance-connect-endpoint-vpcpeering/
Verified Permissions が GA
https://dev.classmethod.jp/articles/amazon-verified-permissions-ga/
他
Webサーバーの移行
他社VPSからAWSへ移行
移行期間2週間
EC2にMySQL入れて動かす
移行後にRDS導入してデータを移行予定
Application Load Balancerを入れる
2023#25 2023/06/22 (木) https://jawsug-niigata.connpass.com/event/287542/
もくもく会
Glue for Rayの外部モジュール導入を試す
https://docs.aws.amazon.com/glue/latest/dg/edit-script-ray-env-dependencies.html
PyPIの場合: "--pip-install", "scikit-learn==0.21.3"のように引数で渡してあげればOK
S3配布の場合: "--s3-python-modules", "s3://s3bucket/pythonPackage.zip" のように引数でパスを指定すればOK
S3配布を試したが、実行時にうまく読み取れなかったので、また別途試します。
2023#26 2023/06/29 (木) https://jawsug-niigata.connpass.com/event/288391/
もくもく会
App RunnerのRDSアクセスを試す
https://aws.amazon.com/jp/blogs/news/new-for-app-runner-vpc-support/
他参考
https://dev.classmethod.jp/articles/aws-app-runner-for-vpc/
https://dev.classmethod.jp/articles/cdk-app-runner/
マネコンから設定して、問題なくアクセスできた。
CDKでサクッと環境構築できるように構成中に時間切れで終了したので、続きはまた別途行います。
2023#27 2023/07/06 (木) https://jawsug-niigata.connpass.com/event/289138/
気になる記事
EC2 Instance Connect Endpoint利用可能なポートに制限
https://dev.classmethod.jp/articles/how-to-connect-rds-instance-via-eic-endpoint/
お悩み相談
RDS (PostgreSQL) をシングルAZでやるか、マルチAZ (1スタンバイ) でやるか
コスト面で選ぶか
メンテナンス作業面で選ぶか
スナップショットの保持
https://repost.aws/ja/knowledge-center/rds-automated-snapshot-retain-longer
PostgreSQLの自動フェイルオーバー
https://qiita.com/sawada_masahiko/items/3b1776af52b95b318a5d
WAFでIP制限とbot制限かけたい
https://dev.classmethod.jp/articles/aws-bot-control/
2023#28 2023/07/13 (木) https://jawsug-niigata.connpass.com/event/289826/
気になる記事
Mountpoint for Amazon S3
https://dev.classmethod.jp/articles/mountpoint-for-amazon-s3/
https://github.com/awslabs/mountpoint-s3
4月に試した時より、新規作成が可能になった
他
SESのDKIM問題
https://docs.aws.amazon.com/ja_jp/ses/latest/dg/troubleshoot-dkim.html
検証で最大72時間待つ
CfnのGuard 3.0
https://aws.amazon.com/jp/about-aws/whats-new/2023/06/aws-cloudformation-guard-3-0-stateful-rules/
Cfnテンプレート等が、事前定義ルールに従っているか検証可能
AWS認定取得のモチベーション
https://aws.amazon.com/jp/certification/
2023#29 2023/07/20 (木) https://jawsug-niigata.connpass.com/event/290579/
気になる記事
IVSの高頻度サムネイル生成をサポート
https://dev.classmethod.jp/articles/amazon-ivs-higher-frequency-thumbnails-record-s3-feature/
Lambdaの再起ループを検出して停止
https://aws.amazon.com/jp/about-aws/whats-new/2023/07/aws-lambda-detects-recursive-loops-lambda-functions/
https://dev.classmethod.jp/articles/detecting-and-stopping-recursive-loops-in-aws-lambda-functions/
現状はS3イベントはまだ検知できない。
RedshiftでQUALIFY句がサポート
https://dev.classmethod.jp/articles/amazon-redshift-supports-qualify-calify-clause/
DynamoDB Shell
https://qiita.com/yoshii0110/items/e76d74848376b0e9309a
2023#30 2023/07/26 (水) https://jawsug-niigata.connpass.com/event/290908/
もくもく会
次週実施のハンズオン資料の見直し
Amazon LightsailとAWS App Runnerを実施
2023#31 2023/08/03 (木) https://jawsug-niigata.connpass.com/event/291471/
気になる記事
パブリックIPv4アドレスの利用料金
https://dev.classmethod.jp/articles/try-public-ip-insights/
Glue for Ray
https://dev.classmethod.jp/articles/devio2023-video-25-glue-for-ray/
他
What's new AWS (非公式)
https://twitter.com/awswhatsnew_jp
育休中に見ている
Parquetの他のデータ形式として「Apache Iceberg」
https://aws.amazon.com/jp/what-is/apache-iceberg/
トランザクションサポートしてる
2023#32 2023/08/10 (木) https://jawsug-niigata.connpass.com/event/292373/
もくもく会
Glue for Rayで、Redshift Data APIを使ってRedshiftにアクセスしてみる
Glue for Rayは現在VPC内への接続ができないが、VPC内への接続をしなくてもRedshift Data APIを使えば、VPC内にあるRedshiftクラスタにアクセスできるのではないかと思い、実際にやってみた。
Redshift Data APIを簡単に扱うために、AWS SDK for Pandas (AWS Wrangler) の Data API機能を利用
https://aws-sdk-pandas.readthedocs.io/en/stable/tutorials/030%20-%20Data%20Api.html
思いの外簡単にアクセスできたので、後でブログにまとめる。
2023#33 2023/08/17 (木) https://jawsug-niigata.connpass.com/event/293160/
もくもく会
Redshift Data APIで、別アカウントからのアクセスを試す
参考: https://dev.classmethod.jp/articles/redshift-datapia-from-lambda-crossaccount/
署名v4でのAPIアクセスを試す
参考: https://docs.aws.amazon.com/ja_jp/IAM/latest/UserGuide/create-signed-request.html
参考: https://qiita.com/sivertigo/items/e5d877c36ea034412437
参考: https://qiita.com/ototo/items/dab78254efd67c2bd110
2023#34 2023/08/24 (木) https://jawsug-niigata.connpass.com/event/293698/
気になる記事
SageMaker Model Cardsがクロスアカウントでmodel cardsを共有可能
https://aws.amazon.com/jp/about-aws/whats-new/2023/08/amazon-sagemaker-model-cards-cross-account-sharing-model-cards/
Cloudformationの Fn::ForEach
https://dev.classmethod.jp/articles/cloudformation-foreach/
2023#35 2023/08/31 (木) https://jawsug-niigata.connpass.com/event/294459/
お悩み相談
最近AWS触れてない。8月のJAWS-UG新潟のハンズオン会に参加したかったけど、参加できなかった。また学び直していきたい。
ハンズオン資料を見ながら、内容を振り返る
資料: https://github.com/kasacchiful/jawsug-niigata_20230805/
初期設定・Lightsail・App Runnerのふりかえり
2023#36 2023/09/07 (木) https://jawsug-niigata.connpass.com/event/295136/
もくもく会
Redshift Data APIの最大クエリ実行数 200 に到達した時のエラー内容確認
boto3上で ActiveStatementsExceededException例外が発生
実行数200を達成するためにbatch_execute_statementを多重実行するなどして、なんとか発生させた。
2023#37 2023/09/14 (木) https://jawsug-niigata.connpass.com/event/295853/
もくもく会
DynamoDBのクロスアカウントアクセスを試す
https://docs.aws.amazon.com/ja_jp/prescriptive-guidance/latest/patterns/configure-cross-account-access-to-amazon-dynamodb.html
https://dev.classmethod.jp/articles/other-aws-account-access-dynamodb-for-lambda/
DynamoDBのTransactionを試す
https://docs.aws.amazon.com/ja_jp/amazondynamodb/latest/developerguide/transaction-apis.html
https://dev.classmethod.jp/articles/dynamodb-transactions-multiple-tables/
https://dev.classmethod.jp/articles/reinvent2018-dynamodb-transactions/
2023#38 2023/09/21 (木) https://jawsug-niigata.connpass.com/event/296619/
もくもく会
AWS SDK for Pandas (awswrangler) を使って、TimeStreamにアクセスを試す
https://github.com/aws/aws-sdk-pandas
https://aws-sdk-pandas.readthedocs.io/en/3.2.1/tutorials/026%20-%20Amazon%20Timestream.html
https://aws-sdk-pandas.readthedocs.io/en/3.2.1/tutorials/027%20-%20Amazon%20Timestream%202.html
VPCエンドポイントの設定は、以下で可能
wr.config.timestream_query_endpoint_url
wr.config.timestream_write_endpoint_url
2023#39 2023/09/28 (木) https://jawsug-niigata.connpass.com/event/297160/
気になる記事
AWS Certified Data Engineer - Associate 認定試験が新設
https://dev.classmethod.jp/articles/aws-certified-data-engineer-associate-beta-exam/
DynamoDBの増分エキスポート機能が追加
https://dev.classmethod.jp/articles/update-amazon-dynamodb-incremental-exports/
他
AWS認定試験
Associate試験はどこから取得した方が良いか?
Solutions Architect - Associateが、AWSサービスを広く学び、全体像を掴めるので、おすすめ
Associateチャレンジで認定試験50%割引
https://pages.awscloud.com/jp-traincert-certification-challenge-associate-2023-reg.html
チャレンジ申し込みは9/29(金)まで、試験は10/31(火)まで割引対象
Glueを使って、BigQueryにアクセスする方法
Glue Connector for Google BigQueryを用いる
https://aws.amazon.com/marketplace/pp/prodview-w2ranrogj3xmm
https://aws.amazon.com/jp/blogs/news/migrating-data-from-google-bigquery-to-amazon-s3-using-aws-glue-custom-connectors/
AWS AI Week For Developers
https://pages.awscloud.com/AIW4Dev.html
10/17 (火) - 10/19 (木) の3日間
2023#40 2023/10/05 (木) https://jawsug-niigata.connpass.com/event/297877/
気になる記事
Amazon BedrockがGA
https://dev.classmethod.jp/articles/amazon-bedrock-ga/
https://dev.classmethod.jp/articles/breaing-news-amazon-bedrock-was-released/
https://dev.classmethod.jp/articles/python-boto3-amazon-bedrock-get-started/
LangChainからも使えるよ
https://dev.classmethod.jp/articles/get-start-bedrock-with-langchain/
東京リージョンでも使えるよ
https://dev.classmethod.jp/articles/bedrock-tokyo-region/
Stable Diffusionで画像生成もできるよ
https://dev.classmethod.jp/articles/bedrock-lambda-stable-diffusion/
VPCエンドポイント経由でアクセスできるよ
https://dev.classmethod.jp/articles/using-amazon-bedrock-privately-with-interface-type-vpc-endpoints/
Google Cloud Enterprise SearchとRetrieveReadCompose方式RAGを利用して社内公式情報を全部質問できるようにしてみた
https://dev.classmethod.jp/articles/qa-with-google-cloud-enterprise-search-and-retrieve-read-compose-rag/
記事ではGoogle Cloud使ってるけど、AWSやAzureでも同様のサービス使えば実現できそう
2023#41 2023/10/12 (木) https://jawsug-niigata.connpass.com/event/298618/
もくもく会
SageMaker Studio Labのノートブック上から、Amazon Bedrockを利用してみた
アクセスキーの設定とIAMポリシー設定さえ上手くやれば、何とかなりそう
boto3は %pip install で最新版をインストール
2023#42 2023/10/19 (木) https://jawsug-niigata.connpass.com/event/299311/
もくもく会
SageMaker Studioから、Amazon BedrockのWorkshopを試してみた
https://catalog.us-east-1.prod.workshops.aws/workshops/a4bdb007-5600-4368-81c5-ff5b4154f518/en-US
結構ハマりどころが多い
pipのバージョン互換性で、足りないモジュールやバージョン違いにハマる
実行ロールにbedrockへの権限がないので、IAMロール設定にハマる
Amazon Titanがまだpreviewで使えないため、Workshopに記載のモデル(Titan)を変更すると、入力プロンプトが異なるのでハマる
初心者向けに、現状で少しでもハマらないように、ある程度カスタマイズしたノートブックを用意した方が良さそう
2023#43 2023/10/26 (木) https://jawsug-niigata.connpass.com/event/299964/
気になる記事
SQSのFIFOキュー高スループットモードの制限が引き上げ
https://dev.classmethod.jp/articles/update-amazon-sqs-high-throughput-mode-quota/
管理ポリシー CloudWatchFullAccess が非推奨 => CloudWatchFullAccessV2 への置き換えが推奨
https://dev.classmethod.jp/articles/aws-managed-policy-is-deprecating-cloudwatchfullaccess/
他
RDSでの証明書変更
https://dev.classmethod.jp/articles/check-certification-authority-settings-building-new-rds/
https://dev.classmethod.jp/articles/rds-new-ca-2023-g1/
Step Functionsのエラー・リトライ処理
https://dev.classmethod.jp/articles/wait_time_and_params_in_step_function_retry/
https://dev.classmethod.jp/articles/step-functions-retry-option-jitter/
Bedrock Workshopのおさらい
2023#44 2023/11/02 (木) https://jawsug-niigata.connpass.com/event/300626/
雑談
AWS認定でSAA無事取得した話
AWS認定で新試験ベータ版登場と廃止についてのお話
ベータ版: AWS Certified Data Engineer - Associate
https://aws.amazon.com/jp/certification/certified-data-engineer-associate/
2024年4月に一般公開
廃止: AWS Certified Data Analytics - Specialty
https://aws.amazon.com/jp/certification/certified-data-analytics-specialty/
2024年4月に廃止
生成AIの話
OpenAI / Amazon Bedrock / Google Bard
JAWS FESTA 2023 in Kyushuの話
https://jft2023.jaws-ug.jp/
2023#45 2023/11/09 (木) https://jawsug-niigata.connpass.com/event/301310/
もくもく会
Amazon BedrockをLangChainを使って会話してみた
参考 https://dev.classmethod.jp/articles/get-start-bedrock-with-langchain/
意外と使える。boto3直接叩くより楽。
今度は簡単なRAGも試してみようと思う。
2023#46 2023/11/16 (木) https://jawsug-niigata.connpass.com/event/301969/
雑談
生成AIについて
Amazon BedrockやOpenAI、LangChainなど
Control Tower上でのAmazon Config課金について
1ルール作成して適用したけど、思いの外料金かかってる
理由がわからないので、一旦サポートに問い合わせてみると良いかも
AWSサポートは、Basicだと技術的なことが聞けないので、一時的にDeveloperにレベルを上げるのもあり。Developerレベルの期間で日割り料金にはなる。
Amazon Kendraについて
ドキュメント検索でうまく使いたい
Developer Editionでも、使いっぱなしだと課金額が結構かかる
2023#47 2023/11/23 (木) https://jawsug-niigata.connpass.com/event/302673/
もくもく会
Amazon BedrockからStable Diffusionを使って画像生成してみた
まだv0.8までしか使えない
アニメタッチな画像はそこそこ良い絵ができている
画像に文字を入れたり、日本語のプロンプトはこれからに期待
2023#48 2023/11/30 (木) https://jawsug-niigata.connpass.com/event/303420/
気になる記事
AWS re:Invent 2023
Amazon Q関連
Amazon Q
https://dev.classmethod.jp/articles/reinvent2023-updata-amazon-q/
Amazon Q Code Transformation
https://dev.classmethod.jp/articles/new-feature-amazon-q-code-transformation-now-available-preview/
Amazon Q in QuickSight
https://dev.classmethod.jp/articles/amazon-q-quicksight-data-exploration-generative-bi-capabilities/
Amazon Q in Connect
https://dev.classmethod.jp/articles/preview-amazon-q-in-connect/
Amazon Bedrock関連
Agents for Amazon Bedrock
https://dev.classmethod.jp/articles/agents-for-amazon-bedrock-ga/
Knowledge Base
https://dev.classmethod.jp/articles/update-reinvent2023-bedrock-rag/
https://dev.classmethod.jp/articles/try-bedrock-knowledge-base/
Fine tuning & pre-training
https://dev.classmethod.jp/articles/customize-models-in-amazon-bedrock-with-your-own-data-using-fine-tuning-and-continued-pre-training/
Guardrails for Amazon bedrock
https://dev.classmethod.jp/articles/20231129-amazon-athena-with-s3-express-one-zone-2/
Amazon Aurora Limitless Database
https://dev.classmethod.jp/articles/amazon-aurora-limitless-database-with-automatic-horizontal-scaling-now-in-preview/
Amazon S3 Express One Zone
https://dev.classmethod.jp/articles/new-amazon-s3-express-one-zone-high-performance-storage-class/
https://dev.classmethod.jp/articles/20231129-amazon-athena-with-s3-express-one-zone-2/
Amazon ElastiCache Serverless
https://dev.classmethod.jp/articles/reinvent2023-elasticache-serverless/
2023#49 2023/12/07 (木) https://jawsug-niigata.connpass.com/event/304065/
気になる記事
AWS re:Invent 2023
AWS Management Console myApplications
https://dev.classmethod.jp/articles/aws-management-console-my-applications-ga/
Amazon CloudWatch Application Signals
https://dev.classmethod.jp/articles/amazon-cloudwatch-application-signals-public-preview/
SageMaker Studio VSCode-OSS CodeEditor
https://dev.classmethod.jp/articles/breaking-sagemaker-studio-code-editor/
AWS Application Composer in VS Code
https://dev.classmethod.jp/articles/update-reinvent23-application-composer-in-vs-code/
Amazon Inspector CI/CD Container Scanning
https://dev.classmethod.jp/articles/reinvent2023-inspector-image-scanning-cicd-support/
Lambdaの同期呼び出しのスケールアウトが12倍高速化
https://dev.classmethod.jp/articles/lambda-scaleout-improved-by-12times/
generative-ai-cdk-constructs
https://github.com/awslabs/generative-ai-cdk-constructs
2023#50 2023/12/14 (木) https://jawsug-niigata.connpass.com/event/304683/
気になる記事
AWS re:Invent 2023 ふりかえり
Amazon Q
https://dev.classmethod.jp/articles/reinvent2023-updata-amazon-q/
https://dev.classmethod.jp/articles/set-entra-id-into-amazon-q-for-business-use/
Amazon Bedrock
https://dev.classmethod.jp/articles/agents-for-amazon-bedrock-ga/
https://dev.classmethod.jp/articles/update-reinvent2023-bedrock-rag/
Vector Store
https://dev.classmethod.jp/articles/breaking-vector-engine-for-opensearch-service-serverless/
https://dev.classmethod.jp/articles/new-preview-vector-search-for-amazon-memorydb-for-redis/
https://dev.classmethod.jp/articles/vector-search-capabilites-amazon-documentdb-amazon-dynamodb-ga/
RDS for Db2
https://dev.classmethod.jp/articles/update-amazon-rds-for-db2/
Application Composer
https://dev.classmethod.jp/articles/update-reinvent23-application-composer-in-vs-code/
https://dev.classmethod.jp/articles/update-reinvent23-application-composer-in-step-functions-workflow-studio/
Application Composerを実際に触る
Step Functions Workflow Studioも起動
Serverless開発初心者やIaC初心者には結構扱いやすいサービスの印象がある
2023#51 2023/12/21 (木) https://jawsug-niigata.connpass.com/event/305319/
もくもく会
VS Code上でApplication ComposerとStep Functions Workflow Studioを使う
最初、VS Code上での起動の仕方が分からず、迷った
Lambda関数の雛形ファイルが出来上がるが、ファイル名が固定なのが気になる
SAMに慣れれば、より使いやすくなる可能性が高い
2023/12/28 (木) はお休み