AWS re:Post을(를) 사용하면 다음에 동의하게 됩니다. AWS re:Post 이용 약관

Greengrass v2 component dependencies

0

I have a top-level component that I call com.mycompany.Dependencies. This component houses our in-house SDK built in Python.

Our GG components that are built in Python, use that as a dependency, as defined below:

ComponentDependencies:
  com.mycompany.Dependencies:
    VersionRequirement: "1.0.25"
    DependencyType: HARD

We have about 3 components that are currently using the com.mycompany.Dependencies as a dependency.

When we update the Dependencies lib (i.e. add new features to the core SDK lib, we naturally build and publish, which will create an incremental version. i.e. 1.0.26.

Is there a way that, when the new Dependencies version has been published, for all of the components to automatically download the new lib, such that we don't have to increment the VersionRequirement every time there is a new version?

so, it would be something along the lines of (note latest):

ComponentDependencies:
  com.mycompany.Dependencies:
    VersionRequirement: "latest"
    DependencyType: HARD

I have tried with latest but I don't think it worked.

This way, the GG runtime would pick up that there is a latest version of Dependencies and pull it onto the device, install it, and restart the components.

Is this the right way to do it? What would you suggest if this is not possible, or an alternative way?

질문됨 3년 전962회 조회
1개 답변
0

Hello Sash,

Version requirement can accept a range of versions.

VersionRequirement:

The npm-style semantic version constraint that defines the compatible component versions for this dependency. You can specify a version or a range of versions.

https://docs.aws.amazon.com/greengrass/v2/developerguide/component-recipe-reference.html#:~:text=The%20npm%2Dstyle%20semantic%20version%20constraint%20that%20defines%20the%20compatible%20component%20versions%20for%20this%20dependency.%20You%20can%20specify%20a%20version%20or%20a%20range%20of%20versions.

AWS
전문가
답변함 3년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠