Closed Gireeshjobz closed 3 years ago
Hi @Gireeshjobz - Thanks for reporting this. We will look into shortening the topic names for the next release.
Do you mind sharing how you deployed the solution (i.e. using the AWS CLI or CloudFormation consonle) and what regions you used as primary and secondary?
I deployed using ap-northeast-1 / ap-southeast-1 as primary / secondary and while I do see that the resulting topic names are long & above 100 characters, I didn't get an error during deployment.
Hi @ericquinones -
Context:
The solution has
https://github.com/awslabs/cognito-user-profiles-export-reference-architecture/blob/master/deployment/stack-set-template.yaml#L1176
DisplayName:
!Sub "Cognito User Profiles Export Reference Architecture: ${AWS::Region} (${StackSetConstantsCustomResource.ParentStackName})"`
Our ParentStackName is PBCentralUserManagementInfrastructure. After concatenation, the total length for displayName is exceeding 100 max cap.
Do you mind sharing how you deployed the solution (i.e. using the AWS CLI or CloudFormation consonle) and what regions you used as primary and secondary?
I deployed in us-west-2 (as primary) and us-west-1 (as secondary) regions using AWS Cloudformation template + (sam package/deploy)
I deployed using ap-northeast-1 / ap-southeast-1 as primary / secondary and while I do see that the resulting topic names are long & above 100 characters, I didn't get an error during deployment.
The property that its failing on is DisplayName (max 100 chars). The Topic Name can be max 256 chars. Below is the screenshot of createTopic console.
Fixed in version 1.0.1
This solution is setting a very long name for the displayName attribute of SNS CreateTopic request. The displayName has a constraint - 100 max char length.
Is it possible to cut down on the topic name hardcoded string ?