LoginSignup
0
0

Terraform importブロックでError: Too many command line argumentsが出る

Posted at

概要

以下のimportブロックで

import {
  to = aws_iam_openid_connect_provider.github_actions_cicd_provider
  id = "arn:aws:iam::${var.AWS_ACCOUNT_ID}:oidc-provider/token.actions.githubusercontent.com"
}

以下のコマンドを実行すると

terraform plan -generate-config-out=generated.tf

以下のエラーが出てしまう

terraform plan -generate-config-out=generated.tf
╷
│ Error: Too many command line arguments
│
│ To specify a working directory for the plan, use the global -chdir flag.
╵

For more help on using this command, run:
  terraform plan -help

解決策

VScodeでpowershellだと発生する事象なのでCMDを使う

参考

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0