terraform init

    [Terraform] terraform init Error 해결

    terraform init을 할때 backend로 설정한 s3 버킷이 없거나 버킷명이 잘못 되었을 경우 아래와 같은 메시지가 발생합니다. Initializing the backend... Successfully configured the backend "s3"! Terraform will automatically use this backend unless the backend configuration changes. Error refreshing state: BucketRegionError: incorrect region, the bucket is not in 'ap-northeast-2' region at endpoint '' status code: 301, request ..