Open uyrussell21 opened 7 months ago
This is also true if using an SSM parameter.
I'm pretty sure the static methods are completely broken. Im not sure how it's possible, but if I hardcode the ARN value directly into identity_pool_arn
, it works.
If i pass a variable of any kind (even if that variable is hardcoded), it errors RuntimeError: Error: ARNs must start with "arn:" and have at least 6 components:
For example, this works:
self._cognito_identity_pool = IdentityPool.from_identity_pool_arn(
self,
"CognitoIdentityPool",
identity_pool_arn="XXXXXXX",
)
This does not work:
identity_pool_arn="XXXXXXX"
self._cognito_identity_pool = IdentityPool.from_identity_pool_arn(
self,
"CognitoIdentityPool",
identity_pool_arn=identity_pool_arn,
)
How is it possible to achieve without hardcoding value? Tried SSM and cfnExport
dummy-value-for-identityPoolId
is what's set which is against validation
Describe the bug
Using
Fn.importValue
method fromaws-cdk-lib
as input forIdentityPool.fromIdentityPoolArn
orIdentityPool.fromIdentityPoolId
will error out:Expected Behavior
I expected for Fn.importValue to be a supported argument for
fromIdentityPoolArn
orfromIdentityPoolId
static methodsCurrent Behavior
Using
Fn.importValue('outputName')
as ARN or Id arg throws out:Reproduction Steps
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.110.1-1
Framework Version
No response
Node.js Version
18.13.0
OS
Windows 10
Language
TypeScript
Language Version
No response
Other information
No response