My AWS profile is configured to default to eu-west-1, however when I run an AWS CLI command, it is executing in us-east-1:
>aws configure get region
eu-west-1
>aws events put-rule --name hourly_trigger --schedule-expression "rate(60 minutes)"
{
"RuleArn": "arn:aws:events:us-east-1:588237033746:rule/hourly_trigger"
}
I've looked into profiles and config options and can't determine why this is. My profile is set as follows:
[default]
region = eu-west-1
And this command works in the intended region if I add --region
>aws events put-rule --name hourly_trigger --schedule-expression "rate(60 mi
nutes)" --region eu-west-1
{
"RuleArn": "arn:aws:events:eu-west-1:588237033746:rule/hourly_trigger"
}