2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

【Terraform】「Error configuring Terraform AWS Provider: failed to get shared config profile」のエラーの対処法

Posted at

TerraformCloudで、terraform planすると、ただprovider.awsに指定していたprofileをコメントアウトしたら普通に動きました。そんだけか。。

main.tf
provider "aws" {
  #profile = "my-profile"  # terraform cloudではprofileを指定するとエラー
  region  = "ap-northeast-1"
}

terraform {
  cloud {
    organization = "MyOrganization"
    workspaces {
      name = "MyWorkspace"
    }
  }
}

参考

2
1
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
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?