flat-appointment-12338
11/04/2022, 3:50 PMerror: unable to validate AWS credentials
after my ECS task deployments, but they seem to have completed correctly:
awsx:x:ecs:EC2TaskDefinition$aws:ecs/taskDefinition:TaskDefinition (QaWeb)
error: unable to validate AWS credentials. Make sure you have:
• Set your AWS region, e.g. `pulumi config set aws:region us-west-2`
• Configured your AWS credentials as per <https://pulumi.io/install/aws.html>
You can also set these via cli using `aws configure`.
aws sts get-caller-identity
just before pulumi up
and it does in fact return the expected role. And I can see in the Pulumi diagnostics page for this update that the sts:GetCallerIdentity
also return the same role so I feel confident that the credentials are being loaded properly (no profile, just env vars)millions-furniture-75402
11/04/2022, 3:52 PMflat-appointment-12338
11/04/2022, 3:52 PMmillions-furniture-75402
11/04/2022, 3:53 PMflat-appointment-12338
11/04/2022, 3:53 PMmillions-furniture-75402
11/04/2022, 3:54 PMflat-appointment-12338
11/04/2022, 3:55 PMAWS_ACCESS_KEY_ID
and AWS_SECRET_ACCESS_KEY
millions-furniture-75402
11/04/2022, 3:56 PMaws:region
in your Stack config?flat-appointment-12338
11/04/2022, 3:56 PMaws-native:region
millions-furniture-75402
11/04/2022, 3:57 PMaws:region
and try using AWS_PROFILE
as an environment variable and see if that worksflat-appointment-12338
11/04/2022, 3:57 PMmillions-furniture-75402
11/04/2022, 3:57 PMflat-appointment-12338
11/07/2022, 9:28 PMawslogs
on my ECS tasks (even though I was never even customizing the logConfiguration). Simplest solution was to just downgrade to an older version of the aws package for nowmillions-furniture-75402
11/07/2022, 10:01 PMaws.sdk
at all?