terraform– tag –
-
AWS Secrets Managerの値をECSとRDSで使う
まずはSecrets Managerでシークレットを作成して、シークレットの名前を「project/prod」として作成します。 そして、project/prodシークレットの中に環境変数を入れていきます。今回は、コンソールからシークレットの変数を保存したことを想定します。 す... -
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... -
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をすると次のようなエ...
1