AWS: EFS: バックアップ

EFS バックアップ AWS Backup https://github.com/hdknr/awsform/blob/main/terraform/modules/backups/main.tf AWS DataSync AWS DataSync を使って S3 から EFS へデータを転送する!

2024年1月5日 · 1 分

MySQL: CDC

MySQL: CDC(Change Data Capture) AWS Database Migration Service による Change Data Capture: 前編 AWS Database Migration Service による Change Data Capture: 後編 AWS DatabaseMigrationService での DB 移行構築ハンズオン RDS MySQL AWS DMS のソースとして AWS が管理する MySQL 互換データベースの使用 バイナリログ(binlog_format == ROW) binlog_row_image == Full binlog_checksum == NONE DMS AWS Database Migration Service DMS で AWS RDS へ継続的に移行してみた DMS Endpoint Connection Test Failed with Secret Manager Manage your AWS DMS endpoint credentials with AWS Secrets Manager How to connect to AWS Secrets Manager service within a Virtual Private Cloud AWS Database Migration Service (AWS DMS) の CDC レプリケーションを使ってみた サーバーレス: ...

2023年12月28日 · 2 分

AWS RDS EBSByteBalance%

EBSByteBalance% AWS: EBS 最適化 RDS インスタンスクラスを使用している場合は、CloudWatch のグラフを使用して IOPS またはスループットのスロットリングがないかを確認します。 バーストキャパシティを備えたインスタンスクラスの場合は、CloudWatch のグラフで EBSIOBalance% および EBSByteBalance% のメトリクスを表示します。 EBSIOBalance% または EBSByteBalance% の常に低い値は、インスタンスレベルで IOPS またはスループットのボトルネックが発生していることを示唆しています。 資料 Amazon RDS インスタンスの IOPS のボトルネックによって引き起こされた Amazon EBS ボリュームのレイテンシーをトラブルシューティングするにはどうすればよいですか?

2023年7月25日 · 1 分

Google Cloud Run

Google Cloud Run Kubernetes から Cloud Run に移行する Google Cloud なんもわからないマンが、Cloud Run の凄さをあれこれ調べてみた AWS App Runner https://aws.amazon.com/jp/apprunner/

2023年7月16日 · 1 分

Managed k8s

Managed k8s Provider Service Product AWS EKS(Elastic Kubernetes Service) GCP GKE(Google Kubernetes Engine) Azure AKS(Azure Kubernetes Service) マネージド Kubernetes とは?EKS・AKS・GKE を比較 AWS EKS vs. ECS AWS 自身が考える ECS と EKS の役割 EKS: EKS : 他のプロバイダー/オンプレミスからの移行 ECS: Kubernetes に比べてはるかに運用がしやすく、低コストで、マルチテナントのプラットフォームとしての効率が非常に高い クラスターの起動を無料で行うことができます

2023年7月16日 · 1 分

Celery AWS ECS

Celery on ECS 【Python Celery】本番運用時に知っておくべき 10 のこと https://github.com/Alexmhack/Django-Celery-Redis-AWSEB Redis Celery + AWS Redis で使ってみる クラスターモード Redis >= 3.2 ElastiCache for Redis のクラスターモードについて調べてみる SQS broker としてつかえるが、 backend としては使えない(SQS + RabbitMQ/Redis/SQLAlchemy を考える) Celery + SQS on Django on Elastic Beanstalk Deploying Django on AWS: Setting up Celery and SQS Deploying Django Application on AWS with Terraform. Setting up Celery and SQS ECS running celery tasks and celery beat in ECS with Django docker compose ecs deploy aws tutorial: celery incompatible attribute #8040 AWS Batch を検討したけど AWS Fargate を採用した話 Celery Logging celery.app.log Three Ideas to Customise Celery logging handlers 標準出力: ...

2023年7月13日 · 1 分

EC2 mount EFS

AWS EC2 moutn EFS E2 からマウント 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 #!/bin/bash EFS_ID="fs-0f90bd97a364a6e94" # PKG=amazon-efs-utils RES=$(dpkg --get-selections | grep $PKG) MOUNT_PATH="/efs" if [ -z "${RES}" ]; then apt update && apt upgrade -y && apt autoremove -y apt-get -y install binutils git clone https://github.com/aws/efs-utils cd efs-utils ./build-deb.sh apt-get install -y ./build/amazon-efs-utils*deb fi # if [ ! -d $MOUNT_PATH ]; then mkdir $MOUNT_PATH fi # mount -t efs $EFS_ID:/ $MOUNT_PATH

2023年7月12日 · 1 分

Cloud Function defautl pages

AWS CloudFuntion URL 変更 AWS CloudFront Functions を使用して、ブラウザリクエストの URL を書き換えてオリジンに送信するには、HTTP リクエストを別の URL にリダイレクトする関数を作成する必要があります。 AWS ドキュメントには、CloudFront Functions を使用して HTTP リクエストを別の URL にリダイレクトする方法が記載されています ¹。 また、Classmethod 社の記事には、CloudFront Functions でオリジンに手を加えずに URL リダイレクトを行う方法が記載されています ³。 ご参考までに、以下は CloudFront Functions で HTTP リクエストを別の URL にリダイレクトする例です ²。 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 function handler(event) { var request = event.request; var headers = request.headers; var uri = request.uri; var host = headers.host.value; var newurl = null; // Check the URI is '/abc/sign-up'. if (uri === "/abc/sign-up") { newurl = `https://${host}/sign-up`; } if (newurl !== null) { return { statusCode: 301, statusDescription: "Moved Permanently", headers: { location: { value: newurl }, }, }; } return request; } この例では、URI が/abc/sign-upに一致した場合に、https://${host}/sign-upへリダイレクトしています。この例を参考に、ご自身の環境に合わせた関数を作成してください。 ...

2023年6月26日 · 2 分

AWS Windows

AWS EC2 Windows AWS EC2 で起動した Windows Server を日本語設定にする コマンドプロンプト/英語モード・日本語モードの切り替え方法・chcp ALB のアクセスを CloudFront からだけに許可するように設定してみた Amazon VPC で Amazon CloudFront 用に AWS が管理するプレフィックスリストのサポートを開始 Work with AWS-managed prefix lists EC2Launch v2 を使用した Windows 管理者パスワードのリセット

2023年6月20日 · 1 分

AWS SES Logging

AWS SES ロギング Amazon SES ログにはどのようにアクセスできますか? Amazon SES でのメール送信ログを表示する AWS CloudTrail を使用した Amazon SES API コールのログ作成 SESの送信履歴を確認したい Terrafrom + Firefose Firehoseを使用してSESのログをS3バケットに記録するには、Terraformで以下のように記述することができます。 resource "aws_s3_bucket" "log_bucket" { bucket = "log-bucket" } resource "aws_ses_domain_identity" "example" { domain = "example.com" } resource "aws_ses_domain_identity_verification" "example" { domain = aws_ses_domain_identity.example.domain } resource "aws_ses_configuration_set" "example" { name = "example" } resource "aws_ses_event_destination" "example" { configuration_set_name = aws_ses_configuration_set.example.name name = "example" enabled = true kinesis_firehose_destination { role_arn = aws_iam_role.firehose_role.arn delivery_stream_arn = aws_kinesis_firehose_delivery_stream.firehose.arn } matching_types = [ "send", "reject", "bounce", "complaint", "delivery", "open", "click", ] } このコードでは、S3バケットを作成し、SESドメイン識別子を作成し、検証し、構成セットを作成し、イベント宛先を作成しています。 ...

2023年5月17日 · 1 分