I have a problem with SSO configuration and tfstate plugin on ecspresso v2.6.5.
I guess that requires tfstate-lookup update to 1.8.0.
Error
$ AWS_PROFILE=service DEPLOY_TARGET_ENV=dev ecspresso status --config=.ecspresso/config.yml
2025-12-03T13:01:31.651+09:00 [INFO] ecspresso version: v2.6.5
2025-12-03T13:01:32.299+09:00 [ERROR] FAILED. failed to load config file .ecspresso/config.yml: failed to setup plugins: failed to read tfstate from s3://tfstates/dev.tfstate: failed to get bucket region: operation error S3: HeadBucket, failed to resolve service endpoint, endpoint rule error, A region must be set when sending requests to S3.
Config
~/.aws/config
It works fine when using profile service2.
[default]
[profile service]
sso_session = fusagiko-sso
sso_account_id = 123456789012
sso_role_name = sso_policy
[sso-session fusagiko-sso]
sso_start_url = https://d-1234567890.awsapps.com/start/#
sso_region = ap-northeast-1
sso_registration_scopes = sso:account:access
[profile service2]
sso_account_id = 123456789012
sso_role_name = sso_policy
sso_start_url = https://d-1234567890.awsapps.com/start/#
sso_region = ap-northeast-1
sso_registration_scopes = sso:account:access
[profile service3]
sso_session = fusagiko-sso
sso_account_id = 123456789012
sso_role_name = sso_policy
region = ap-northeast-1
.ecspresso/config.yml
region: ap-northeast-1
cluster: "hoge_dev"
service: fuga
service_definition: "service-definition.json"
task_definition: "dev/fuga-task-definition.json"
timeout: 10m0s
plugins:
- name: tfstate
config:
url: "s3://tfstates/dev.tfstate"
I have a problem with SSO configuration and tfstate plugin on ecspresso v2.6.5.
I guess that requires tfstate-lookup update to 1.8.0.
Error
Config
~/.aws/config
It works fine when using profile service2.
.ecspresso/config.yml