aws/codecatalyst-blueprints

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

Opened this issue · 5 comments

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:

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

But thats not possible as its readonly 👎

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

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...

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

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?