You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am having a difficulty setting AWS profile with serverless-compse
We have a Makefile that basically loads up the AWS credentials inside a profile and then use it to deploy.
The following approaches were taken when running the CD:
Using aws-profile in the serverless cli params didn't work since it isn't yet supported by sls-compose.
Setting the profile name on serverless.yml in the subpackages didn't load the profile but rather used the default one; even though when echoing using @aws sts get-caller-identity --profile serverless inside the Makefile , the correct credentials were loaded.
Setting env var with AWS_PROFILE= also does not work and serverless assumes the default profile.
I have the same issue and a similar setup as described above.
My issue was due to the proflle not resolving properly in the serverless.yml file, and the default value for an unset environment variable being default:
I was statically setting a value for it. Anyway we have moved away from this and decided to stick with pnpm and handle shared infrastructure in terraform and export the needed resources ARNs to serverless env.
I am having a difficulty setting AWS profile with
serverless-compse
We have a Makefile that basically loads up the AWS credentials inside a profile and then use it to deploy.
The following approaches were taken when running the CD:
@aws sts get-caller-identity --profile serverless
inside theMakefile
, the correct credentials were loaded.Originally posted by @muddahany in #120 (comment)
The text was updated successfully, but these errors were encountered: