Open fagiani opened 3 years ago
@efekarakus I am facing the same issue. I'm trying to retrieve a specific JSON key from a secret and it fails.
After looking through the source code it seems like it cannot handle references to a specific field in a secret, it can only fetch the whole secret value.
Summary
It throws an error when trying to run
ecs-cli local up
with a Task Definition that retrieves data from AWS Secrets ManagerDescription
Which specific command was run?
Which version of the CLI you are using? (Run:
ecs-cli --version
)ecs-cli version 1.21.0 (bb0b8f0)
Which version of Go are you using? (Run:
go version
)Command go not found
What platform are you using to run ECS CLI commands? (E.g. Linux, macOS, Windows)
Linux version 5.4.0-1029-aws (buildd@lcy01-amd64-022) (gcc version 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04)) #30-Ubuntu SMP Tue Oct 20 10:06:38 UTC 2020
Config files
docker-compose.yml
ecs-params.yml N/A
~/.ecs/config
Expected Behavior
Execute the
docker-compose
and have a container runningObserved Behavior
I was unable to find where the invalid characters are. One of my hypothesis would be that somehow a required permission is not being given to the IAM role and therefore it is unable to retrieve the value and fails validation but if that is the case I am not sure which one it should be and I've tried to allow all Secrets Manager's permissions without success.
If I hardcode label values, then it works but not with Secrets Manager.
Am I missing anything obvious here? Any clues on this are highly appreciated!