-
BUILD_CONTAINER_UNABLE_TO_PULL_IMAGE
aws CodePipelineを使って、コードをビルドする際に「BUILD_CONTAINER_UNABLE_TO_PULL_IMAGE」のエラーに遭遇したので解決方法を紹介します。 原因: CodeBuildからリポジトリへのアクセス権限がない 「BUILD_CONTAINER_UNABLE_TO_PULL_IMAGE」となってしま... -
ResourceInitializationError: unable to pull secrets or registry auth: execution resource retrieval failed: unable to retrieve secrets from ssm: service call has been retried 1 time
terraformを使ってecsでサービスを作ろうとしたのですが、「ResourceInitializationError: unable to pull secrets or registry auth: execution resource retrieval failed: unable to retrieve secrets from ssm: service call has been retried 1 time... -
terraformのvpc = trueでuse domain attribute insteadのwarning
terraformでAWS VPCを作るときに、構文内にvpc = trueを使用したら、warningが出たので解決方法をまとめます。 問題 AWS VPCを作りたかったので、natをこのように定義。 resource "aws_eip" "nat_1a" { vpc = true tags = { Name = &q... -
prismaのcreateManyでは200レコードまでしか登録できない
prismaのcreateManyを使って約1000件のデータを保存したかったのですが、データベースには200件までしか登録されませんでした。 問題 prismaのcreateManyに1000件のデータを突っ込んで保存。 const data = await fetch(url); const items: itemType[] = aw... -
tfenvをインストールしてterraformを使えるようにする
tfenvをインストール(mac) terraformはバージョンが頻繁に更新されるので、tfenvを使ってバージョン管理をします。 brewを使ってtfenv をインストール。 $ brew install tfenv tfenvは3をインストールしました。 $ tfenv -v tfenv 3.0.0 次に現在使用可... -
Error: Error creating VPC: UnauthorizedOperation: You are not authorized to perform this operation.
はじめに 初めてterraformを使用したときに、「Error: Error creating VPC: UnauthorizedOperation: You are not authorized to perform this operation.」というエラーがでました。 その解決方法をまとめます。 問題 terraform applyをすると次のようなエ... -
Parsing error: DeprecationError: ‘originalKeywordKind’ has been deprecated since v5.0.0 and can no longer be used. Use ‘identifierToKeywordKind(identifier)’ instead.
Next.js13のtypescriptのバージョンをアップグレードしたら、 Parsing error: DeprecationError: 'originalKeywordKind' has been deprecated since v5.0.0 and can no longer be used. Use 'identifierToKeywordKind(identifier)' instea... -
Next.js13のApp RouterでMaterial UI を使う
Material UIのバージョン5.14.0からNext.jsのApp Routerがサポートされたので、Material UIを使用するために"use client"を書く必要はありません。 このきじはこちらのgitリポジトリを参考にしています。 muiをインストール まずはmuiをインストールします... -
Next.js13のapp routerのapiにPOSTしたbodyデータを取得する
postしたデータはconst res = await request.json();することによってbodyデータを取得することができる。 import { NextResponse, NextRequest } from "next/server"; export async function POST(request: NextRequest) { const res = await r... -
Next.js13のapp routerのapiでgetパラメータを取得
getパラメータはrequest.nextUrl.searchParamsで取得できる。 https://nextjs.org/docs/app/api-reference/functions/next-request#nexturl import { NextResponse, NextRequest } from "next/server"; import prisma from "@/lib/prisma&q...