aws / codecatalyst-blueprints

Apache License 2.0
50 stars 19 forks source link

Versions of actions referenced are not available in my CodeCatalyst workflow environment #477

Open Lock128 opened 8 months ago

Lock128 commented 8 months ago

Describe the bug

As part of our projen-pipelines implementation I am making use of the Workflows SDK

When using image

I am getting the following error message when executing the generated workflow: image

I think the error is in here and I dont really know if thats intended or not: https://github.com/aws/codecatalyst-blueprints/blob/6e4e870fc9b6c818158d447a2e0a6552c940eff6/packages/components/workflows/src/actions/action.ts#L25

Lock128 commented 8 months ago

Tried to workaround it by setting this.context.environmentId = 'prod';

But thats not possible as its readonly 👎

Lock128 commented 8 months ago

A potential workaround for me could be to set process.env.CONTEXT_ENVIRONMENTID=prod but that doesnt feel to be correct?

Lock128 commented 8 months ago

A potential workaround for me could be to set process.env.CONTEXT_ENVIRONMENTID=prod but that doesnt feel to be correct?

That worked as a workaround...

alexforsyth commented 8 months ago

process.env.CONTEXT_ENVIRONMENTID=prod

Is currently the way blueprints deal with this problem. But yes, I agree this doesnt seem quite right. I'll take it back to the team and give it a review

Lock128 commented 8 months ago

Maybe it might make sense to switch it - the "default" is the "prod" version and if you want to use the other possible type you need to explicitely set it?