2020-01-01から1年間の記事一覧

100MBを超えるファイルを間違えてコミットしてgit pushできない、、

gitignoreの設定をせずにcommitしていたら、100MBを超えるファイルをコミットしてしまい、 githunにpushができなくなってしまった、、 $ git push Counting objects: 29, done. Delta compression using up to 4 threads. Compressing objects: 100% (24/24)…

Terraformの基本的な構文

variable 変数を定義することができる。 variable "example_instancetype" { default = "t3.micro" } resource "aws_instance" "example" { ami = "ami-0c3fd0f5d33134a76" instance_type = var.example_instancetype } variableで定義した変数は実行する際…

MacにTerraformとtfenvをインストールする

Terraformのインストール brew installするだけ $brew install terraform # インストールできたらバージョンを確認 $ terraform --version Terraform v0.12.25 tfenvのインストール tfenvはTerraformのバージョンマネージャ。 tfenvを使うと、Terraformのバ…