Skip to content

kqns91/terraform-prac

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

terraform-prac

準備

git-secrets 設定

brew install git-secrets
gti secrets --install
git secrets --register-aws --global

aws コマンド

brew install awscli
$ aws --version                             
aws-cli/2.17.1 Python/3.11.9 Darwin/23.5.0 source/arm64

アクセスキーとシークレットキーを設定する

$ aws configure
AWS Access Key ID [None]: Access Key ID
AWS Secret Access Key [None]: Secret Access Key
Default region name [None]: ap-northeast-1
Default output format [None]: 未入力
export AWS_ACCESS_KEY_ID=Access Key ID
export AWS_SECRET_ACCESS_KEY=Secret Access Key
export AWS_DEFAULT_REGION=ap-northeast-1

アカウントIDを取得する

aws sts get-caller-identity --query Account --output text
123456789012

terraform コマンド

brew install asdf
asdf plugin add terraform
asdf list-all terraform
asdf install terraform 1.9.1
asdf local terraform 1.9.1
$ terraform --version
Terraform v1.9.1
on darwin_arm64

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages