-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Description
Describe the bug
When using the construct to lookup an IdentityPool from a SSM StringParameter. The construct throws validation errors because it is expecting an actual string of two parts separated by a ':'.
Expected Behavior
Should be able to lookup an Identity pool with a SSM StringParameter stringValue.
Current Behavior
Code at lines 118 of the Identitypool.js file throws
// if (!(idParts.length === 2)) // throw new Error('Invalid Identity Pool Id: Identity Pool Ids must follow the format <region>:<id>'); // if (idParts[0] !== pool.region) // throw new Error('Invalid Identity Pool Id: Region in Identity Pool Id must match stack region');
Reproduction Steps
const identityPool = IdentityPool.fromIdentityPoolArn(this, 'some-identityPool', indentityPoolStringParameter.stringValue)
Possible Solution
Review other constructs best practices for allowing SSM StringParameter lookup stringValue strings.
Additional Information/Context
No response
CDK CLI Version
2.135.0
Framework Version
No response
Node.js Version
20.12.0
OS
Linux
Language
TypeScript
Language Version
Typescript 5.4.4
Other information
No response