#✅ - GEN 2 package replacement @aws-amplify/cli-extensibility-helper

4 messages · Page 1 of 1 (latest)

twin widget
#

Hi, is there some package replacement for the @aws-amplify/cli-extensibility-helper on GEN 2?

Or, how can I get the project Info on Gen 2?

I'm trying to define names for custom resources that wont clash when deploying on different environments (including Sandbox)

sharp oxide
#

hey, this appears to be similar to https://github.com/aws-amplify/amplify-backend/issues/1094 which is being tracked as feature request.

Similar to the issue you should be able to access the context information.

const amplifyBackendType = backend.auth.resources.userPool.node.tryGetContext(
  "amplify-backend-type"
);
const amplifyBackendNamespace =
  backend.auth.resources.userPool.node.tryGetContext(
    "amplify-backend-namespace"
  );
const amplifyBackendName = backend.auth.resources.userPool.node.tryGetContext(
  "amplify-backend-name"
);

the amplifyBackendName should be unique to each user on sandbox deployments.

GitHub

Environment information N/A Description I would like to get the values of amplify-deploy-type, amplify-backend-namespace and amplify-backend-name in the CDK Context to create a name or URL for the ...

twin widget
#

Thank you very much!

dense parrotBOT
#

✅ - GEN 2 package replacement @aws-amplify/cli-extensibility-helper