#✅ - GEN 2 package replacement @aws-amplify/cli-extensibility-helper
4 messages · Page 1 of 1 (latest)
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.
Thank you very much!
✅ - GEN 2 package replacement @aws-amplify/cli-extensibility-helper