Error: Error loading state:
AccessDenied: Access Denied
status code: 403, request id: xxxxxxxxx, host id: xxxxxxx
Terraform failed to load the default state from the "s3" backend.
State migration cannot occur unless the state can be loaded. Backend
modification and state migration has been aborted. The state in both the
source and the destination remain unmodified. Please resolve the
above error and try again.
やりたいこと
tfstateの保管場所を別アカウント作成済みのs3バケットに指定したい
When
AWS Organizationsのマスター側のCloud9のAdminRole(Ec2InstanceMetadata)から、terraform initするとき
Why
AWS OrganizationsでIaC専用のアカウントを作り、そこにtfstateを集約したい
How
.aws/config? ./aws/credentials
backend.tf
エラー内容
は動く