Closed m0un10 closed 1 year ago
Hi m0un10. Thanks for your interest in our project!
It looks like something is not quite right with your Backstage user session. The error message you are seeing that says "No user context provided for
Did you have any issues logging in or with the identity provider configurations? You could try logging out and logging in again.
I switched out the Okta part and I'm using Guest for evaluation. If my configuration is wrong, maybe the prior step could fail with an error rather than sending a null/empty value to the next step?
Any suggestions for bumping up the logging around the baws:get-env-providers
or baws:deploy-boilerplate
actions to get more insights? They both seem to fail to grab the user context and if that's the root cause, it would be good to get more feedback to help with a resolution.
Hi @m0un10 Thanks for your feedback. The solution needs an identity provider(Okta/AD etc..) configured in order to resolve your user associated groups. those groups are associated with permitted IAM roles(In a dynamodb security table) which is necessary in order to provision resources on your AWS account.
Please review our videos and follow the readMe instructions and let us know if you managed to resolve the issue.
As for the error handling: We relay on backstage user context and API to provide us information about the user, which is why the error isn't descriptive. but we will work on improving the errors messaging to handle scenarios like this.
Cool project! I just finished watching the videos and tried to take it for a spin with the serverless app.
Given these inputs
it fails with
The error in the log is as follows
The log of
bawsGetAwsEnvProviders
step which is supposed to provide theenvProviders
isIt's using the latest template (at the time of writing).. https://github.com/awslabs/app-development-for-backstage-io-on-aws/blob/b4ca094/backstage-reference/templates/example-serverless-rest-api/template.yaml
I get similar issues from the
baws:deploy-boilerplate
action in the other templates. Similarly, it succeeds but fails on the next actions (e.g.baws:create-secret
) which has to use it's outputs. The error isInvalid input passed to action baws:create-secret, instance requires property "accountId", instance requires property "region"
.For what it's worth, the default Node template worked fine. It's the one that just creates the node repo in github and doesn't use any of the AWS plugins.
In summary, I don't think we're able to use this extension to Backstage in any meaningful way yet. But we would love to!