Closed hybby closed 6 years ago
I'll get this fixed to properly typecast the variable and generate a useful error. In the meantime, you can set the attribute in your .sfn configuration file:
Configuration.new do
credentials do
provider :aws
aws_sts_session_token ENV["AWS_SESSION_TOKEN"]
end
end
It appears as though the recent release of
miasma-aws
0.3.18 has broken thesfn validate
command:When I downgrade my version of
miasma-aws
to 0.3.16, functionality is restored:Looking at the changelog and referenced PR (#49), I believe this may be caused by the change to this line:
https://github.com/miasma-rb/miasma-aws/pull/49/files#diff-e10f20b08f97e415929ebc03b633cb19L349
From what I can tell, we're currently setting the environment variable
AWS_SESSION_TOKEN
and I presume the value of that is making its way toattribute :aws_sts_session_token
in earlier versions ofmiasma-aws
. The update's presumably broken that behavior.Is there some better way for us to pull in the session token rather than relying on this environment variable? Happy to take your advice.